#97 i18n Internationalization

If you have to localize your ember app to multiple languages, ember-i18n is the way to go.

Install:

Put translation files in app/locales/[locale]/translations.js or you can generate it with:

An example translation file looks like:

You can now use translations in your javascript:

Or using a computed macro:

Or you can use it in your template:

You can even pass in variable:

 

For more info, check out the repo.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu