@next-core/brick-kit 2.197.2 → 2.198.0
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/dist/index.bundle.js
CHANGED
|
@@ -3954,8 +3954,9 @@
|
|
|
3954
3954
|
// deprecated
|
|
3955
3955
|
}
|
|
3956
3956
|
applyPageTitle(pageTitle) {
|
|
3957
|
+
var _kernel$currentApp;
|
|
3957
3958
|
var baseTitle = this.getBrandSettings().base_title;
|
|
3958
|
-
document.title = pageTitle ? "".concat(pageTitle, " - ").concat(baseTitle) : baseTitle;
|
|
3959
|
+
document.title = pageTitle ? ((_kernel$currentApp = kernel.currentApp) === null || _kernel$currentApp === void 0 ? void 0 : _kernel$currentApp.localeTitle) || "".concat(pageTitle, " - ").concat(baseTitle) : baseTitle;
|
|
3959
3960
|
}
|
|
3960
3961
|
}
|
|
3961
3962
|
|
|
@@ -7108,12 +7109,14 @@
|
|
|
7108
7109
|
});
|
|
7109
7110
|
// Use `app.name` as the fallback `app.localeName`.
|
|
7110
7111
|
app.localeName = i18next__default["default"].getFixedT(null, ns)("name", app.name);
|
|
7112
|
+
app.localeTitle = i18next__default["default"].getFixedT(null, ns)("title", "");
|
|
7111
7113
|
// Remove the temporary i18n resource bundles.
|
|
7112
7114
|
Object.keys(locales).forEach(lang => {
|
|
7113
7115
|
i18next__default["default"].removeResourceBundle(lang, ns);
|
|
7114
7116
|
});
|
|
7115
7117
|
} else {
|
|
7116
7118
|
app.localeName = app.name;
|
|
7119
|
+
app.localeTitle = "";
|
|
7117
7120
|
}
|
|
7118
7121
|
}
|
|
7119
7122
|
|