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 Nov 5, 2024. It is now read-only.
importTranslationsfrom'boxture/translations';importmomentfrom'boxture/utils/shims/moment';//import numeral from 'boxture/utils/shims/numeral';exportdefault{default: 'en',current: null,set: function(app,locale){// TODO or userLocale from localStoragelocale=window.navigator.userLanguage||window.navigator.language;if(locale){locale=locale.split('-')[0];}locale=locale||this.default;this.current=locale;moment.lang(locale);// numeral.language(locale);// CLDR.defaultLanguage = locale;this.setTranslations(locale);},setTranslations: function(locale){Em.I18n.translations=Translations[locale];}};
Now what is left out is how to load the JSON files into a hash you can actually use in the setTranslations (here it is Translations) but that should just be a little ajax.
Given that I know the locale, e.g. "en", "fr ", how do instruct my ember cli app which compiled handlebars templates to use?
The text was updated successfully, but these errors were encountered: