You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
If you're coming from dockyard/ember-cli-i18n, the following list may be helpful. It's not necessarily comprehensive. If you find other changes, please add them here.
for each language you support, move app/locales/xy.js to app/locales/xy/translations.js
to set the default locale, in config/environment.js, set ENV.i18n = { defaultLocale: 'xy' };
if you set the locale in an initializer, do container.lookup('service:i18n').set('locale', 'yz');
change interpolations from ordered to named -- both in the template strings and in the invocations. Alternatively, see Doc: Translation Compiler for information about overriding the default compiler.
in app code, inject service:i18n in any models, controllers, components, routes, and other objects that need translations: i18n: Ember.inject.service()
in app code, change container.lookup('utils:t')('some.key') to this.get('i18n').t('some.key')