0.0.13 • Published 9 years ago
@ampatspell/ember-cli-strings v0.0.13
ember-cli-strings
Simple internationalization addon for ember-cli
Install
$ ember install @ampatspell/ember-cli-stringsConfiguration
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',
});