jamesarosen/ember-i18n

_locale Computed property is not called more than once

Closed this issue · 1 comments

Hi @jamesarosen
_locale computed property is not invoked more than once. so i would like to know when it will be invoked and what would be the problem if not being invoked when the language changed. what is the key part that trigger _locale computed property

in translation-fetcher.js, i'm invoking the this.set('i18n.locale', selectedLanguage);

Hi @jamesarosen
_locale computed property is not invoked more than once. so i would like to know when it will be invoked and what would be the problem if not being invoked when the language changed. what is the key part that trigger _locale computed property

in translation-fetcher.js, i'm invoking the this.set('i18n.locale', selectedLanguage);

@jamesarosen - identified the problem is that Locale object is retained even when switching the languages so it returns the old translations instead of new, so computed property is not invoked. any idea?. i will posting this clarification in stackoverflow.