A simple addon to process i18n source files from .properties
. Provides {{translate}}
helper and a util:translate
.
Install this addon using
ember install pragatheeswarans/ember-bundle-i18n
You can pass options through ember-cli-build.js
var app = new EmberAddon(defaults, {
// Add options here
'ember-bundle-i18n': {
...
}
});
##Options
The locale you set as default will be used as a base for constructing i18n assets. If a key is not available on any other locale, values from default locale will be used.
default value: en
The location of your .properties
files.
default value: app/i18n
This is the directory to which you want to write the output files.
default value: assets/i18n
Use this option to customise the prefix of your i18n asset output files. If you do not want any prefix you can pass '' in the options.
default prefix: 'MessageResources_'
git clone
this repositorynpm install
bower install
ember server
- Visit your app at http://localhost:4200.
npm test
(Runsember try:testall
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit http://ember-cli.com/.