This addon provides internationalization helpers through https://github.com/fnando/i18n-js.
It requires Ember 1.10+.
ember install:addon ember-locales
Your translation data lives under app/locales
. Locales in this folder will be loaded automatically by the addon.
For starters, let's add a translation table for english in the US. We'll call this file 'en-US.js':
export default {
hello: "Hello, %{user}!"
};
From here, we can use translation helper in our app:
All helpers mirror their JS counterparts. See https://github.com/fnando/i18n-js for more details on how to use helpers.
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
ember test
ember test --server
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.