@next-core/brick-kit 2.197.3 → 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.esm.js CHANGED
@@ -3956,8 +3956,9 @@ class Runtime {
3956
3956
  // deprecated
3957
3957
  }
3958
3958
  applyPageTitle(pageTitle) {
3959
+ var _kernel$currentApp;
3959
3960
  var baseTitle = this.getBrandSettings().base_title;
3960
- document.title = pageTitle ? "".concat(pageTitle, " - ").concat(baseTitle) : baseTitle;
3961
+ document.title = pageTitle ? ((_kernel$currentApp = kernel.currentApp) === null || _kernel$currentApp === void 0 ? void 0 : _kernel$currentApp.localeTitle) || "".concat(pageTitle, " - ").concat(baseTitle) : baseTitle;
3961
3962
  }
3962
3963
  }
3963
3964
 
@@ -7110,12 +7111,14 @@ function setAppLocales(app) {
7110
7111
  });
7111
7112
  // Use `app.name` as the fallback `app.localeName`.
7112
7113
  app.localeName = i18next.getFixedT(null, ns)("name", app.name);
7114
+ app.localeTitle = i18next.getFixedT(null, ns)("title", "");
7113
7115
  // Remove the temporary i18n resource bundles.
7114
7116
  Object.keys(locales).forEach(lang => {
7115
7117
  i18next.removeResourceBundle(lang, ns);
7116
7118
  });
7117
7119
  } else {
7118
7120
  app.localeName = app.name;
7121
+ app.localeTitle = "";
7119
7122
  }
7120
7123
  }
7121
7124