Is there a way to localize a component using vue-loader with single-file components and a .pug template?
Here's an example:
<template lang="pug">
div.container {{ test }}
div.content
h1 Proof of concept app
b Vue.js + TypeScript + Webpack
div.logos
img(src="assets/logo-vue.png")
img(src="assets/logo-ts.png")
img(src="assets/logo-webpack.png")
div.description Application is loading, please wait
div.progress {{ percent }}%
</template>
How do I implement string localization or pass the "test" variable?
I've searched online and through the documentation of loaders like pug-loader, pug-html-loader, and vue-loader, but haven't found a clear solution (besides "It should work, but it doesn't).
I'm aware of connecting templates with Vue instances, but is that the ideal way to handle localization?
My setup includes webpack 3.8.1, vue-loader, and .vue files.