@ampatspell/ember-cli-strings
v0.0.13
Published
Simple internationalization addon for ember-cli
Downloads
31
Maintainers
Readme
ember-cli-strings
Simple internationalization addon for ember-cli
Install
$ ember install @ampatspell/ember-cli-strings
Configuration
Add strings file:
// app/strings.js
export default {
'hey': {
en: 'Hey there',
lv: 'Sveiks'
}
};
Override service:
// app/services/strings.js
import { Service } from 'strings';
import strings from '../strings';
export default Service.extend({
strings: strings,
available: ['en', 'lv'],
localeLocalStorageKey: '52f.locale',
});