Example project to use the requirejs-handlebars plugin with preprocessing to render translated texts in the templates before precompilation.
The trick is to use a template engine with a different syntax (different delimiters than {{.}}
).
See config.js for the example implementation.
git clone git@github.com:webpro/requirejs-handlebars-i18n-example.git
cd requirejs-handlebars-i18n-example
npm install
/src/index.html
/src/index.html#[en|nl]
r.js -o build.js language=[en|nl]