I use ember-i18n for translating my app, but how can I change namespace, when user switches a language, cause i have two different api for each language.
In app/route.js, i do
this.store.adapterFor('application').set('namespace',api/rest/${apiLangPath[this.get('i18n.locale')]}/);
,
when i observe property service i18n.locale and then this.refresh(), cause my app reload for a new api namespace. But, it’s not working.