acetate icon indicating copy to clipboard operation
acetate copied to clipboard

i18n and localization

Open patrickarlt opened this issue 10 years ago • 0 comments

It looks like everyone in the Node community is using https://github.com/mashpie/i18n-node so we can use that for translation. We can register a custom global to wrap the translation function so you can so {{ __("Hello") }} in your templates. Could also register a custom filter so {{ "Hello" | t }} would also work.

Thats the easy part. The hard part is duplicating all the pages so that index.html becomes index.html and es/index.html and everything still works as expected.

patrickarlt avatar Apr 11 '15 15:04 patrickarlt