monkey-front-core 0.0.101 → 0.0.105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2004,10 +2004,8 @@ class MonkeyEcxCommonsService {
2004
2004
  });
2005
2005
  }
2006
2006
  geti18n(translateService, keys) {
2007
- console.log('get i18n dentro do core');
2008
- console.log(translateService.translations);
2009
- translateService.getStreamOnTranslationChange(keys).subscribe((translations) => {
2010
- this.__i18n = translations;
2007
+ translateService.onDefaultLangChange.subscribe(() => {
2008
+ this.__i18n = translateService.instant(keys);
2011
2009
  this.__oni18nDataChanged$.next(null);
2012
2010
  });
2013
2011
  }