@xrystal/core 3.21.4 → 3.21.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Yusuf Yasir KAYGUSUZ",
3
3
  "name": "@xrystal/core",
4
- "version": "3.21.4",
4
+ "version": "3.21.6",
5
5
  "description": "Project core for xrystal",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -1,3 +1,4 @@
1
+ import path from "path";
1
2
  import i18next from "i18next";
2
3
  import Backend from 'i18next-fs-backend';
3
4
  import * as middleware from 'i18next-http-middleware';
@@ -12,9 +13,9 @@ export default class LocalizationsService {
12
13
  onInit = ({}) => {
13
14
  const localization = this.#systemService.tmp.configs.loaders.localization;
14
15
  this.i18next({
15
- loadPath: localization.loadPath,
16
+ loadPath: path.join(this.#systemService.tmp.configs.rootFolderPath, localization.loadPath),
16
17
  fallbackLang: localization.fallbackLang,
17
- preloadLang: localization.preloadLang,
18
+ preloadLang: localization.preloadLangs,
18
19
  });
19
20
  };
20
21
  i18next = ({ loadPath, fallbackLang, preloadLang, }) => {