@nubitio/core 0.11.4 → 1.0.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.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -29,7 +29,7 @@ let i18next = require("i18next");
|
|
|
29
29
|
i18next = __toESM(i18next, 1);
|
|
30
30
|
//#region packages/core/config/CoreConfig.tsx
|
|
31
31
|
const _coreConfig = {
|
|
32
|
-
locale: "
|
|
32
|
+
locale: "en",
|
|
33
33
|
timezone: "UTC",
|
|
34
34
|
apiBaseUrl: "/api/",
|
|
35
35
|
currency: void 0,
|
|
@@ -1047,7 +1047,7 @@ var CoreHttpClient = class {
|
|
|
1047
1047
|
headers(extraHeaders) {
|
|
1048
1048
|
const browserLocale = typeof navigator !== "undefined" ? navigator.language?.split("-")[0] : void 0;
|
|
1049
1049
|
return {
|
|
1050
|
-
"Accept-Language": this.config.locale ?? browserLocale ?? "
|
|
1050
|
+
"Accept-Language": this.config.locale ?? browserLocale ?? "en",
|
|
1051
1051
|
...extraHeaders
|
|
1052
1052
|
};
|
|
1053
1053
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
|
|
|
4
4
|
import i18next from "i18next";
|
|
5
5
|
//#region packages/core/config/CoreConfig.tsx
|
|
6
6
|
const _coreConfig = {
|
|
7
|
-
locale: "
|
|
7
|
+
locale: "en",
|
|
8
8
|
timezone: "UTC",
|
|
9
9
|
apiBaseUrl: "/api/",
|
|
10
10
|
currency: void 0,
|
|
@@ -1022,7 +1022,7 @@ var CoreHttpClient = class {
|
|
|
1022
1022
|
headers(extraHeaders) {
|
|
1023
1023
|
const browserLocale = typeof navigator !== "undefined" ? navigator.language?.split("-")[0] : void 0;
|
|
1024
1024
|
return {
|
|
1025
|
-
"Accept-Language": this.config.locale ?? browserLocale ?? "
|
|
1025
|
+
"Accept-Language": this.config.locale ?? browserLocale ?? "en",
|
|
1026
1026
|
...extraHeaders
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|