nuxeo-development-framework 5.7.0 → 5.7.1
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.
- package/bundles/nuxeo-development-framework.umd.js +2 -6
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
- package/esm2015/lib/core/services/translation/translation.service.js +2 -6
- package/esm2015/lib/core/services/user/user-preferences.service.js +3 -3
- package/fesm2015/nuxeo-development-framework.js +3 -7
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/core/services/user/user-preferences.service.d.ts +5 -4
- package/package.json +1 -1
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
expandedSidenav: true
|
|
793
793
|
};
|
|
794
794
|
this.userPreferenceStatus = this.defaults;
|
|
795
|
-
this.clientCustomTranslateFiles = {
|
|
795
|
+
this.clientCustomTranslateFiles = { ar: {}, en: {} };
|
|
796
796
|
this.onChangeSubject = new rxjs.BehaviorSubject(this.userPreferenceStatus);
|
|
797
797
|
this.onChange = this.onChangeSubject.asObservable();
|
|
798
798
|
}
|
|
@@ -1682,16 +1682,13 @@
|
|
|
1682
1682
|
*/
|
|
1683
1683
|
TranslationService.prototype.loadTranslation = function (lang, fallback) {
|
|
1684
1684
|
var _this = this;
|
|
1685
|
-
var clientTranslation;
|
|
1686
1685
|
if (lang === exports.Lang.Arabic) {
|
|
1687
1686
|
this.renderer.addClass(document.body, 'rtl');
|
|
1688
1687
|
this.isArabic.next(true);
|
|
1689
|
-
clientTranslation = __classPrivateFieldGet(this, _TranslationService_instances, "a", _TranslationService_ClientTranslationFiles_get).arFile;
|
|
1690
1688
|
}
|
|
1691
1689
|
else {
|
|
1692
1690
|
this.renderer.removeClass(document.body, 'rtl');
|
|
1693
1691
|
this.isArabic.next(false);
|
|
1694
|
-
clientTranslation = __classPrivateFieldGet(this, _TranslationService_instances, "a", _TranslationService_ClientTranslationFiles_get).enFile;
|
|
1695
1692
|
}
|
|
1696
1693
|
var arabicFile$ = this.getOrCreateTranslationFile('ar');
|
|
1697
1694
|
var englishFile$ = this.getOrCreateTranslationFile('en');
|
|
@@ -1699,7 +1696,6 @@
|
|
|
1699
1696
|
arabicFile$,
|
|
1700
1697
|
englishFile$,
|
|
1701
1698
|
this.translate.getTranslation(lang),
|
|
1702
|
-
clientTranslation
|
|
1703
1699
|
]).subscribe(function (res) {
|
|
1704
1700
|
_this.arabicFile = res[0];
|
|
1705
1701
|
_this.englishFile = res[1];
|
|
@@ -1707,7 +1703,7 @@
|
|
|
1707
1703
|
var ArorEnFile = lang === 'en'
|
|
1708
1704
|
? JSON.parse(res[1].properties['note:note'])
|
|
1709
1705
|
: JSON.parse(res[0].properties['note:note']);
|
|
1710
|
-
_this.translate.setTranslation(_this.translate.currentLang, Object.assign(Object.assign({}, (
|
|
1706
|
+
_this.translate.setTranslation(_this.translate.currentLang, Object.assign(Object.assign({}, (__classPrivateFieldGet(_this, _TranslationService_instances, "a", _TranslationService_ClientTranslationFiles_get)[lang] || {})), ArorEnFile), true);
|
|
1711
1707
|
_this.onTranslationChanged(lang);
|
|
1712
1708
|
}, function () {
|
|
1713
1709
|
if (fallback && fallback !== lang) {
|