gt-next 6.16.25 → 6.16.27
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/CHANGELOG.md +29 -0
- package/dist/branches/Branch.d.ts +3 -2
- package/dist/branches/Branch.d.ts.map +1 -1
- package/dist/branches/Branch.js.map +1 -1
- package/dist/branches/Plural.d.ts +3 -2
- package/dist/branches/Plural.d.ts.map +1 -1
- package/dist/branches/Plural.js.map +1 -1
- package/dist/config-dir/DictionaryManager.d.ts.map +1 -1
- package/dist/config-dir/DictionaryManager.js +3 -3
- package/dist/config-dir/DictionaryManager.js.map +1 -1
- package/dist/config-dir/I18NConfiguration.d.ts +3 -2
- package/dist/config-dir/I18NConfiguration.d.ts.map +1 -1
- package/dist/config-dir/I18NConfiguration.js.map +1 -1
- package/dist/config-dir/getI18NConfig.d.ts.map +1 -1
- package/dist/config-dir/getI18NConfig.js.map +1 -1
- package/dist/config-dir/loadTranslation.d.ts.map +1 -1
- package/dist/config-dir/loadTranslation.js +2 -2
- package/dist/config-dir/loadTranslation.js.map +1 -1
- package/dist/config-dir/props/withGTConfigProps.d.ts +2 -2
- package/dist/config-dir/props/withGTConfigProps.d.ts.map +1 -1
- package/dist/config.d.ts +12 -5
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +40 -31
- package/dist/config.js.map +1 -1
- package/dist/dictionary/getDictionary.d.ts.map +1 -1
- package/dist/dictionary/getDictionary.js +4 -4
- package/dist/dictionary/getDictionary.js.map +1 -1
- package/dist/errors/createErrors.js +2 -2
- package/dist/errors/createErrors.js.map +1 -1
- package/dist/index.server.d.ts +1 -1
- package/dist/index.server.d.ts.map +1 -1
- package/dist/index.types.d.ts +2 -2
- package/dist/index.types.d.ts.map +1 -1
- package/dist/middleware-dir/createNextMiddleware.d.ts.map +1 -1
- package/dist/middleware-dir/createNextMiddleware.js +13 -7
- package/dist/middleware-dir/createNextMiddleware.js.map +1 -1
- package/dist/middleware-dir/utils.d.ts.map +1 -1
- package/dist/middleware-dir/utils.js +3 -3
- package/dist/middleware-dir/utils.js.map +1 -1
- package/dist/provider/ClientProviderWrapper.d.ts.map +1 -1
- package/dist/provider/ClientProviderWrapper.js +2 -1
- package/dist/provider/ClientProviderWrapper.js.map +1 -1
- package/dist/provider/GTProvider.js +1 -1
- package/dist/provider/GTProvider.js.map +1 -1
- package/dist/server-dir/buildtime/T.d.ts +13 -7
- package/dist/server-dir/buildtime/T.d.ts.map +1 -1
- package/dist/server-dir/buildtime/T.js.map +1 -1
- package/dist/server-dir/buildtime/getTranslationFunction.d.ts +2 -2
- package/dist/server-dir/buildtime/getTranslationFunction.d.ts.map +1 -1
- package/dist/server-dir/buildtime/getTranslationFunction.js +17 -9
- package/dist/server-dir/buildtime/getTranslationFunction.js.map +1 -1
- package/dist/server-dir/buildtime/getTranslations.d.ts +3 -3
- package/dist/server-dir/buildtime/getTranslations.d.ts.map +1 -1
- package/dist/server-dir/buildtime/getTranslations.js +8 -6
- package/dist/server-dir/buildtime/getTranslations.js.map +1 -1
- package/dist/server-dir/runtime/_Tx.d.ts +3 -2
- package/dist/server-dir/runtime/_Tx.d.ts.map +1 -1
- package/dist/server-dir/runtime/_Tx.js +1 -1
- package/dist/server-dir/runtime/tx.d.ts +9 -5
- package/dist/server-dir/runtime/tx.d.ts.map +1 -1
- package/dist/server-dir/runtime/tx.js +20 -15
- package/dist/server-dir/runtime/tx.js.map +1 -1
- package/dist/server-dir/variables/renderVariable.d.ts.map +1 -1
- package/dist/server-dir/variables/renderVariable.js +14 -3
- package/dist/server-dir/variables/renderVariable.js.map +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/utils/types.d.ts +5 -2
- package/dist/utils/types.d.ts.map +1 -1
- package/dist/variables/Var.d.ts +2 -2
- package/dist/variables/Var.d.ts.map +1 -1
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# gt-next
|
|
2
2
|
|
|
3
|
+
## 6.16.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1408](https://github.com/generaltranslation/gt/pull/1408) [`425d3e4`](https://github.com/generaltranslation/gt/commit/425d3e4e6c61afd108c65c27f7693ba2470b33c6) Thanks [@bgub](https://github.com/bgub)! - Use @generaltranslation/format directly for shared formatting and locale helpers.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`73f3ac1`](https://github.com/generaltranslation/gt/commit/73f3ac1308df11c1e6230c13c1999bfc5f6afc99), [`425d3e4`](https://github.com/generaltranslation/gt/commit/425d3e4e6c61afd108c65c27f7693ba2470b33c6), [`8650ae9`](https://github.com/generaltranslation/gt/commit/8650ae9ced69755bf3eebc1bafdf7743ba0c5136)]:
|
|
10
|
+
- @generaltranslation/format@0.1.0
|
|
11
|
+
- generaltranslation@8.2.14
|
|
12
|
+
- gt-i18n@0.9.2
|
|
13
|
+
- gt-react@10.19.16
|
|
14
|
+
- @generaltranslation/compiler@1.3.22
|
|
15
|
+
- @generaltranslation/supported-locales@2.0.72
|
|
16
|
+
|
|
17
|
+
## 6.16.26
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#1386](https://github.com/generaltranslation/gt/pull/1386) [`f9f97a2`](https://github.com/generaltranslation/gt/commit/f9f97a2c1ce96fd79e50fa4bbd7d27139404bf06) Thanks [@bgub](https://github.com/bgub)! - Preserve user Next config types when wrapping with GT config.
|
|
22
|
+
|
|
23
|
+
- [#1387](https://github.com/generaltranslation/gt/pull/1387) [`95f852a`](https://github.com/generaltranslation/gt/commit/95f852ae086ac79d2c446f4d3072d8fd18688796) Thanks [@bgub](https://github.com/bgub)! - Reduce explicit any usage in core and Next.js types.
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [[`4d77edf`](https://github.com/generaltranslation/gt/commit/4d77edf7cb2bca5c20911c20c58f702803c9acc9), [`feffb35`](https://github.com/generaltranslation/gt/commit/feffb35f75b3deee12e29878792461b8d32fad3e), [`e88fd39`](https://github.com/generaltranslation/gt/commit/e88fd399683868d5af1fe2b0ba2974fe5b17d7a7), [`86263b3`](https://github.com/generaltranslation/gt/commit/86263b3aa8f2d283200515d609d69f570b97a84f), [`95f852a`](https://github.com/generaltranslation/gt/commit/95f852ae086ac79d2c446f4d3072d8fd18688796)]:
|
|
26
|
+
- gt-i18n@0.9.1
|
|
27
|
+
- generaltranslation@8.2.13
|
|
28
|
+
- gt-react@10.19.15
|
|
29
|
+
- @generaltranslation/compiler@1.3.21
|
|
30
|
+
- @generaltranslation/supported-locales@2.0.71
|
|
31
|
+
|
|
3
32
|
## 6.16.25
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* The `<Branch>` component dynamically renders a specified branch of content or a fallback child component.
|
|
3
4
|
* It allows for flexible content switching based on the `branch` prop and an object of possible branches (`...branches`).
|
|
@@ -22,9 +23,9 @@
|
|
|
22
23
|
* @returns {React.JSX.Element} The rendered branch or fallback content.
|
|
23
24
|
*/
|
|
24
25
|
export declare function Branch({ children, branch, ...branches }: {
|
|
25
|
-
children?:
|
|
26
|
+
children?: ReactNode;
|
|
26
27
|
branch?: string | number | boolean;
|
|
27
|
-
[key: string]:
|
|
28
|
+
[key: string]: ReactNode;
|
|
28
29
|
}): React.JSX.Element;
|
|
29
30
|
export declare namespace Branch {
|
|
30
31
|
var _gtt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAWpB;yBAnBe,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.js","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Branch.js","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAyBA,wBAmBC;;AA1CD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,SAAgB,MAAM,CAAC,EAQtB;IAPC,IAAA,QAAQ,cAAA,EACR,MAAM,YAAA,EACH,QAAQ,cAHU,sBAItB,CADY;IAMX,MAAM,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAE,CAAC;IAC5B,2BAA2B;IAC3B,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC7D,MAAM,GAAG,SAAS,CAAC;IACrB,CAAC;IACD,IAAM,cAAc,GAClB,MAAM,IAAI,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,WAAW;QAC/C,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QAClB,CAAC,CAAC,QAAQ,CAAC;IACf,OAAO,2DAAG,cAAc,GAAI,CAAC;AAC/B,CAAC;AACD,gEAAgE;AAChE,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* The `<Plural>` component dynamically renders content based on the plural form of the given number (`n`).
|
|
3
4
|
* It determines which content to display by matching the value of `n` to the appropriate pluralization branch,
|
|
@@ -23,10 +24,10 @@
|
|
|
23
24
|
* @throws {Error} If `n` is not provided or not a valid number.
|
|
24
25
|
*/
|
|
25
26
|
export declare function Plural({ children, n, locales, ...branches }: {
|
|
26
|
-
children?:
|
|
27
|
+
children?: ReactNode;
|
|
27
28
|
n?: number;
|
|
28
29
|
locales?: string[];
|
|
29
|
-
[key: string]:
|
|
30
|
+
[key: string]: ReactNode;
|
|
30
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
export declare namespace Plural {
|
|
32
33
|
var _gtt: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plural.d.ts","sourceRoot":"","sources":["../../src/branches/Plural.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Plural.d.ts","sourceRoot":"","sources":["../../src/branches/Plural.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,CAAC,EACD,OAA2D,EAC3D,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,2CAQA;yBAlBe,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plural.js","sourceRoot":"","sources":["../../src/branches/Plural.tsx"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Plural.js","sourceRoot":"","sources":["../../src/branches/Plural.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AA6BA,wBAkBC;;AA/CD,8CAAoD;AAEpD,6DAA4D;AAC5D,kDAAiD;AAEjD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,SAAgB,MAAM,CAAC,EAUtB;IATC,IAAA,QAAQ,cAAA,EACR,CAAC,OAAA,EACD,eAA2D,EAA3D,OAAO,mBAAG,CAAC,IAAA,qBAAS,GAAE,EAAE,IAAA,6BAAa,GAAE,CAAC,gBAAgB,EAAE,CAAC,KAAA,EACxD,QAAQ,cAJU,4BAKtB,CADY;IAOX,OAAO,CACL,2DACG,CAAC,OAAO,CAAC,KAAK,QAAQ;YACrB,CAAC,CAAC,IAAA,0BAAe,EAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC;YACvC,CAAC,CAAC,QAAQ,CAAC,IAAI,QAAQ,GACxB,CACJ,CAAC;AACJ,CAAC;AACD,gEAAgE;AAChE,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryManager.d.ts","sourceRoot":"","sources":["../../src/config-dir/DictionaryManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,aAAa,CAA0B;IAE/C;;;OAGG;;IAKH;;;;OAIG;IACG,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"DictionaryManager.d.ts","sourceRoot":"","sources":["../../src/config-dir/DictionaryManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI/C;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,aAAa,CAA0B;IAE/C;;;OAGG;;IAKH;;;;OAIG;IACG,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC;IA8BpE;;;;OAIG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU;CAGrD;AAED,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
|
|
@@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.dictionaryManager = exports.DictionaryManager = void 0;
|
|
40
|
-
var
|
|
40
|
+
var format_1 = require("@generaltranslation/format");
|
|
41
41
|
var resolveDictionaryLoader_1 = require("../resolvers/resolveDictionaryLoader");
|
|
42
42
|
var createErrors_1 = require("../errors/createErrors");
|
|
43
43
|
/**
|
|
@@ -63,7 +63,7 @@ var DictionaryManager = /** @class */ (function () {
|
|
|
63
63
|
switch (_a.label) {
|
|
64
64
|
case 0:
|
|
65
65
|
reference = process.env._GENERALTRANSLATION_GT_SERVICES_ENABLED === 'true'
|
|
66
|
-
? (0,
|
|
66
|
+
? (0, format_1.standardizeLocale)(locale)
|
|
67
67
|
: locale;
|
|
68
68
|
result = this.dictionaryMap.get(reference);
|
|
69
69
|
if (result)
|
|
@@ -75,7 +75,7 @@ var DictionaryManager = /** @class */ (function () {
|
|
|
75
75
|
_a.trys.push([1, 3, , 4]);
|
|
76
76
|
return [4 /*yield*/, customLoadDictionary(reference)];
|
|
77
77
|
case 2:
|
|
78
|
-
result = _a.sent();
|
|
78
|
+
result = (_a.sent());
|
|
79
79
|
if (!result)
|
|
80
80
|
return [2 /*return*/, undefined];
|
|
81
81
|
this.dictionaryMap.set(reference, result);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DictionaryManager.js","sourceRoot":"","sources":["../../src/config-dir/DictionaryManager.ts"],"names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AAa,GAAb,UAAc,MAAc,EAAE,UAAsB;QAClD,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC7C,CAAC;IACH,wBAAC;AAAD,CAAC,AAtDD,IAsDC;AAtDY,8CAAiB;AAwDjB,QAAA,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { GT } from 'generaltranslation';
|
|
|
2
2
|
import { RenderMethod } from 'gt-react/internal';
|
|
3
3
|
import type { Dictionary, TranslatedChildren, Translations } from 'gt-react/internal';
|
|
4
4
|
import type { HeadersAndCookies } from './props/withGTConfigProps';
|
|
5
|
-
import type { CustomMapping } from 'generaltranslation/types';
|
|
5
|
+
import type { CustomMapping } from '@generaltranslation/format/types';
|
|
6
6
|
import type { LookupOptions } from 'gt-i18n/internal/types';
|
|
7
7
|
type I18NConfigurationParams = {
|
|
8
8
|
apiKey?: string;
|
|
@@ -24,8 +24,9 @@ type I18NConfigurationParams = {
|
|
|
24
24
|
batchInterval: number;
|
|
25
25
|
headersAndCookies: HeadersAndCookies;
|
|
26
26
|
_usingPlugin: boolean;
|
|
27
|
+
_versionId?: string;
|
|
27
28
|
customMapping?: CustomMapping | undefined;
|
|
28
|
-
[key: string]:
|
|
29
|
+
[key: string]: unknown;
|
|
29
30
|
};
|
|
30
31
|
type RuntimeTranslationParams = {
|
|
31
32
|
source: TranslatedChildren;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18NConfiguration.d.ts","sourceRoot":"","sources":["../../src/config-dir/I18NConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EACL,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,kBAAkB,EAClB,YAAY,EACb,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EAAE,iBAAiB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;4BACxB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;wBACzC,CAAC;wBACD,sBAAO,WAAW,EAAC;;;;KACpB;IACH,wBAAC;AAAD,CAAC,AAlXD,IAkXC;AAlXY,8CAAiB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getI18NConfig.d.ts","sourceRoot":"","sources":["../../src/config-dir/getI18NConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"getI18NConfig.d.ts","sourceRoot":"","sources":["../../src/config-dir/getI18NConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAaxD,wBAAgB,aAAa,IAAI,iBAAiB,CAgEjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getI18NConfig.js","sourceRoot":"","sources":["../../src/config-dir/getI18NConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getI18NConfig.js","sourceRoot":"","sources":["../../src/config-dir/getI18NConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAaA,sCAgEC;AA7ED,yDAAwD;AACxD,6EAA4E;AAC5E,uDAIgC;AAChC,8CAA6D;AAM7D,SAAgB,aAAa;;IAC3B,gCAAgC;IAChC,IAAM,SAAS,GAAG,UAAkC,CAAC;IACrD,IAAI,SAAS,CAAC,wCAAwC,EAAE,CAAC;QACvD,OAAO,SAAS,CAAC,wCAAwC,CAAC;IAC5D,CAAC;IAED,sCAAsC;IACtC,IAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC;IAC5E,IAAI,gBAAgB,EAAE,CAAC;QACrB,SAAS,CAAC,wCAAwC,GAAG,IAAI,qCAAiB,uBACrE,mDAAwB,GACxB,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAC/B,CAAC;I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EAC9D,MAAM,QAAA,EACN,SAAS,WAAA,EACT,SAAS,WAAA,EACT,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,IAAI,EACd,oBAAoB,EAAE,UAAU,EAChC,qBAAqB,EAAE,KAAK,IAC5B,CAAC;IACL,CAAC;IAED,OAAO,SAAS,CAAC,wCAAwC,CAAC;AAC5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadTranslation.d.ts","sourceRoot":"","sources":["../../src/config-dir/loadTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQjD,KAAK,2BAA2B,GAAG;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAMF;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"loadTranslation.d.ts","sourceRoot":"","sources":["../../src/config-dir/loadTranslation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQjD,KAAK,2BAA2B,GAAG;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAMF;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CACpC,KAAK,EAAE,2BAA2B,GACjC,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAiDnC"}
|
|
@@ -70,7 +70,7 @@ function loadTranslations(props) {
|
|
|
70
70
|
case 0:
|
|
71
71
|
_a.trys.push([0, 2, , 3]);
|
|
72
72
|
return [4 /*yield*/, customLoadTranslations(_props.targetLocale)];
|
|
73
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
73
|
+
case 1: return [2 /*return*/, (_a.sent())];
|
|
74
74
|
case 2:
|
|
75
75
|
error_1 = _a.sent();
|
|
76
76
|
console.error((0, createErrors_1.customLoadTranslationsError)(_props.targetLocale), error_1);
|
|
@@ -95,7 +95,7 @@ function loadTranslations(props) {
|
|
|
95
95
|
case 1:
|
|
96
96
|
response = _a.sent();
|
|
97
97
|
return [4 /*yield*/, response.json()];
|
|
98
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
98
|
+
case 2: return [2 /*return*/, (_a.sent())];
|
|
99
99
|
case 3:
|
|
100
100
|
error_2 = _a.sent();
|
|
101
101
|
console.error(createErrors_1.remoteTranslationsError, error_2);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadTranslation.js","sourceRoot":"","sources":["../../src/config-dir/loadTranslation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,
|
|
1
|
+
{"version":3,"file":"loadTranslation.js","sourceRoot":"","sources":["../../src/config-dir/loadTranslation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,4CAmDC;AA5ED,uDAGgC;AAChC,kFAAiF;AACjF,iDAAgD;AAShD,IAAI,wBAEkC,CAAC;AAEvC;;;;;;GAMG;AACH,SAAsB,gBAAgB,CACpC,KAAkC;;;;;;;yBAG9B,wBAAwB,EAAxB,wBAAwB;oBAAS,qBAAM,wBAAwB,CAAC,KAAK,CAAC,EAAA;wBAA5C,sBAAO,SAAqC,EAAC;;oBAKrE,sBAAsB,GAAG,IAAA,mDAAwB,GAAE,CAAC;oBAE1D,IAAI,sBAAsB,EAAE,CAAC;wBAC3B,iDAAiD;wBAEjD,gCAAgC;wBAChC,wBAAwB,GAAG,UAAO,MAAmC;;;;;;wCAGzD,qBAAM,sBAAsB,CAAC,MAAM,CAAC,YAAY,CAAC,EAAA;4CAAzD,sBAAO,CAAC,SAAiD,CAE5C,EAAC;;;wCAEd,OAAO,CAAC,KAAK,CAAC,IAAA,0CAA2B,EAAC,MAAM,CAAC,YAAY,CAAC,EAAE,OAAK,CAAC,CAAC;wCACvE,sBAAO,SAAS,EAAC;;;;6BAEpB,CAAC;oBACJ,CAAC;yBAAM,CAAC;wBACN,2CAA2C;wBAE3C,2CAA2C;wBAC3C,wBAAwB,GAAG,UACzB,MAAmC;;;;;;wCAG3B,EAAE,GAAG,IAAA,6BAAa,GAAE,CAAC,UAAU,EAAE,CAAC;wCAClC,YAAY,GAAG,EAAE,CAAC,sBAAsB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;wCACnD,qBAAM,KAAK,CAC1B,UAAG,MAAM,CAAC,QAAQ,cAAI,MAAM,CAAC,SAAS,cAAI,YAAY,SACpD,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,WAAI,MAAM,CAAC,UAAU,CAAE,CAAC,CAAC,CAAC,EAAE,CAChD,CACH,EAAA;;wCAJK,QAAQ,GAAG,SAIhB;wCACO,qBAAM,QAAQ,CAAC,IAAI,EAAE,EAAA;4CAA7B,sBAAO,CAAC,SAAqB,CAAiB,EAAC;;;wCAE/C,OAAO,CAAC,KAAK,CAAC,sCAAuB,EAAE,OAAK,CAAC,CAAC;wCAC9C,sBAAO,SAAS,EAAC;;;;6BAEpB,CAAC;oBACJ,CAAC;oBAGM,qBAAM,wBAAwB,CAAC,KAAK,CAAC,EAAA;;gBAD5C,sBAAsB;gBACtB,sBAAO,SAAqC,EAAC;;;;CAC9C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomMapping } from 'generaltranslation/types';
|
|
1
|
+
import type { CustomMapping } from '@generaltranslation/format/types';
|
|
2
2
|
import { RenderMethod } from 'gt-react/internal';
|
|
3
3
|
export type HeadersAndCookies = {
|
|
4
4
|
localeHeaderName?: string;
|
|
@@ -43,6 +43,7 @@ export declare const REQUEST_FUNCTION_TO_CONFIG_KEY: {
|
|
|
43
43
|
readonly getDomain: "getDomainPath";
|
|
44
44
|
};
|
|
45
45
|
export type withGTConfigProps = {
|
|
46
|
+
[key: string]: unknown;
|
|
46
47
|
dictionary?: string;
|
|
47
48
|
config?: string;
|
|
48
49
|
loadTranslationsPath?: string;
|
|
@@ -89,6 +90,5 @@ export type withGTConfigProps = {
|
|
|
89
90
|
getStaticRegionPath?: string;
|
|
90
91
|
/** @deprecated use getDomainPath instead */
|
|
91
92
|
getStaticDomainPath?: string;
|
|
92
|
-
[key: string]: any;
|
|
93
93
|
};
|
|
94
94
|
//# sourceMappingURL=withGTConfigProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withGTConfigProps.d.ts","sourceRoot":"","sources":["../../../src/config-dir/props/withGTConfigProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"withGTConfigProps.d.ts","sourceRoot":"","sources":["../../../src/config-dir/props/withGTConfigProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,8BAA8B,CAAC,EAAE,MAAM,CAAC;IACxC,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;;OAGG;IACH,IAAI,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,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OAEG;IACH,4BAA4B,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC7D,2BAA2B,CAAC,EAAE,eAAe,CAAC;IAC9C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,iCAAiC,CAAC,EAAE,MAAM,CAAC;IAC3C,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,4CAA4C;IAC5C,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
|
package/dist/config.d.ts
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import { NextConfig } from 'next';
|
|
1
|
+
import type { NextConfig } from 'next';
|
|
2
2
|
import { type withGTConfigProps } from './config-dir/props/withGTConfigProps';
|
|
3
|
+
type WithGTConfigResult<TNextConfig extends object> = TNextConfig & NextConfig;
|
|
3
4
|
/**
|
|
4
5
|
* Initializes General Translation settings for a Next.js application.
|
|
5
6
|
*
|
|
6
7
|
* Use it in `next.config.js` to enable GT translation functionality as a plugin.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
|
-
* // In next.config.
|
|
10
|
+
* // In next.config.ts
|
|
10
11
|
* import { withGTConfig } from 'gt-next/config';
|
|
12
|
+
* import type { NextConfig } from 'next';
|
|
13
|
+
*
|
|
14
|
+
* const nextConfig = {
|
|
15
|
+
* reactStrictMode: true,
|
|
16
|
+
* } satisfies NextConfig;
|
|
11
17
|
*
|
|
12
18
|
* export default withGTConfig(nextConfig, {
|
|
13
19
|
* projectId: 'abc-123',
|
|
@@ -44,12 +50,13 @@ import { type withGTConfigProps } from './config-dir/props/withGTConfigProps';
|
|
|
44
50
|
* @param {string|undefined} [experimentalLocaleResolutionParam=defaultWithGTConfigProps.experimentalLocaleResolutionParam] - The parameter to use for experimental locale resolution.
|
|
45
51
|
* @param {object} metadata - Additional metadata that can be passed for extended configuration.
|
|
46
52
|
*
|
|
47
|
-
* @param {
|
|
53
|
+
* @param {object} nextConfig - The Next.js configuration object to extend
|
|
48
54
|
* @param {withGTConfigProps} props - General Translation configuration properties
|
|
49
55
|
* @returns {NextConfig} - An updated Next.js config with GT settings applied
|
|
50
56
|
*
|
|
51
57
|
* @throws {Error} If the project ID is missing and default URLs are used, or if the API key is required and missing.
|
|
52
58
|
*/
|
|
53
|
-
export declare function withGTConfig(nextConfig?:
|
|
54
|
-
export declare const initGT: (props: withGTConfigProps) => (nextConfig
|
|
59
|
+
export declare function withGTConfig<TNextConfig extends object = NextConfig>(nextConfig?: TNextConfig, props?: withGTConfigProps): WithGTConfigResult<TNextConfig>;
|
|
60
|
+
export declare const initGT: (props: withGTConfigProps) => <TNextConfig extends object = NextConfig>(nextConfig?: TNextConfig) => WithGTConfigResult<TNextConfig>;
|
|
61
|
+
export {};
|
|
55
62
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKvC,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAuD9E,KAAK,kBAAkB,CAAC,WAAW,SAAS,MAAM,IAAI,WAAW,GAAG,UAAU,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,YAAY,CAAC,WAAW,SAAS,MAAM,GAAG,UAAU,EAClE,UAAU,CAAC,EAAE,WAAW,EACxB,KAAK,GAAE,iBAAsB,GAC5B,kBAAkB,CAAC,WAAW,CAAC,CAsnBjC;AAGD,eAAO,MAAM,MAAM,GAChB,OAAO,iBAAiB,MACxB,WAAW,SAAS,MAAM,GAAG,UAAU,EAAE,aAAa,WAAW,oCACjC,CAAC"}
|
package/dist/config.js
CHANGED
|
@@ -40,7 +40,7 @@ var path_1 = __importDefault(require("path"));
|
|
|
40
40
|
var fs_1 = __importDefault(require("fs"));
|
|
41
41
|
var defaultWithGTConfigProps_1 = require("./config-dir/props/defaultWithGTConfigProps");
|
|
42
42
|
var createErrors_1 = require("./errors/createErrors");
|
|
43
|
-
var
|
|
43
|
+
var format_1 = require("@generaltranslation/format");
|
|
44
44
|
var getStableNextVersionInfo_1 = require("./plugin/getStableNextVersionInfo");
|
|
45
45
|
var validateCompiler_1 = require("./config-dir/utils/validateCompiler");
|
|
46
46
|
var resolveRequestFunctionPaths_1 = require("./config-dir/utils/resolveRequestFunctionPaths");
|
|
@@ -53,8 +53,13 @@ var cacheComponentsChecks_1 = require("./plugin/checks/cacheComponentsChecks");
|
|
|
53
53
|
* Use it in `next.config.js` to enable GT translation functionality as a plugin.
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* // In next.config.
|
|
56
|
+
* // In next.config.ts
|
|
57
57
|
* import { withGTConfig } from 'gt-next/config';
|
|
58
|
+
* import type { NextConfig } from 'next';
|
|
59
|
+
*
|
|
60
|
+
* const nextConfig = {
|
|
61
|
+
* reactStrictMode: true,
|
|
62
|
+
* } satisfies NextConfig;
|
|
58
63
|
*
|
|
59
64
|
* export default withGTConfig(nextConfig, {
|
|
60
65
|
* projectId: 'abc-123',
|
|
@@ -91,17 +96,17 @@ var cacheComponentsChecks_1 = require("./plugin/checks/cacheComponentsChecks");
|
|
|
91
96
|
* @param {string|undefined} [experimentalLocaleResolutionParam=defaultWithGTConfigProps.experimentalLocaleResolutionParam] - The parameter to use for experimental locale resolution.
|
|
92
97
|
* @param {object} metadata - Additional metadata that can be passed for extended configuration.
|
|
93
98
|
*
|
|
94
|
-
* @param {
|
|
99
|
+
* @param {object} nextConfig - The Next.js configuration object to extend
|
|
95
100
|
* @param {withGTConfigProps} props - General Translation configuration properties
|
|
96
101
|
* @returns {NextConfig} - An updated Next.js config with GT settings applied
|
|
97
102
|
*
|
|
98
103
|
* @throws {Error} If the project ID is missing and default URLs are used, or if the API key is required and missing.
|
|
99
104
|
*/
|
|
100
105
|
function withGTConfig(nextConfig, props) {
|
|
101
|
-
// ---------- LOAD GT CONFIG FILE ---------- //
|
|
102
106
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
|
|
103
|
-
if (nextConfig === void 0) { nextConfig = {}; }
|
|
104
107
|
if (props === void 0) { props = {}; }
|
|
108
|
+
var internalNextConfig = (nextConfig !== null && nextConfig !== void 0 ? nextConfig : {});
|
|
109
|
+
// ---------- LOAD GT CONFIG FILE ---------- //
|
|
105
110
|
var loadedConfig = {};
|
|
106
111
|
try {
|
|
107
112
|
var configPath = void 0;
|
|
@@ -148,13 +153,14 @@ function withGTConfig(nextConfig, props) {
|
|
|
148
153
|
var envConfig = __assign(__assign(__assign({}, (projectId ? { projectId: projectId } : {})), (apiKey ? { apiKey: apiKey } : {})), (devApiKey ? { devApiKey: devApiKey } : {}));
|
|
149
154
|
// ---------- CHECK FOR CONFIG CONFLICTS ---------- //
|
|
150
155
|
// Check for conflicts between config and params
|
|
156
|
+
var propsRecord = props;
|
|
151
157
|
var conflicts = Object.entries(loadedConfig)
|
|
152
158
|
.filter(function (_a) {
|
|
153
159
|
var key = _a[0], value = _a[1];
|
|
154
160
|
// Skip if key doesn't exist in props
|
|
155
161
|
if (!(key in props))
|
|
156
162
|
return false;
|
|
157
|
-
var propValue =
|
|
163
|
+
var propValue = propsRecord[key];
|
|
158
164
|
// Handle null/undefined values
|
|
159
165
|
if (value == null || propValue == null) {
|
|
160
166
|
return value !== propValue;
|
|
@@ -173,19 +179,21 @@ function withGTConfig(nextConfig, props) {
|
|
|
173
179
|
}
|
|
174
180
|
// Handle objects
|
|
175
181
|
if (typeof value === 'object' && typeof propValue === 'object') {
|
|
176
|
-
var
|
|
177
|
-
var
|
|
182
|
+
var valueRecord_1 = value;
|
|
183
|
+
var propRecord_1 = propValue;
|
|
184
|
+
var valueKeys = Object.keys(valueRecord_1);
|
|
185
|
+
var propKeys = Object.keys(propRecord_1);
|
|
178
186
|
var keys = new Set(__spreadArray(__spreadArray([], valueKeys, true), propKeys, true));
|
|
179
187
|
// Objects must match exactly (no need to go deeper)
|
|
180
188
|
if (valueKeys.length !== propKeys.length)
|
|
181
189
|
return true;
|
|
182
|
-
return !Array.from(keys).every(function (k) { return
|
|
190
|
+
return !Array.from(keys).every(function (k) { return valueRecord_1[k] === propRecord_1[k]; });
|
|
183
191
|
}
|
|
184
192
|
return false;
|
|
185
193
|
})
|
|
186
194
|
.map(function (_a) {
|
|
187
195
|
var key = _a[0], value = _a[1];
|
|
188
|
-
return "- Key: ".concat(key, " Next Config: ").concat(JSON.stringify(
|
|
196
|
+
return "- Key: ".concat(key, " Next Config: ").concat(JSON.stringify(propsRecord[key]), " does not match GT Config: ").concat(JSON.stringify(value));
|
|
189
197
|
});
|
|
190
198
|
if (conflicts.length) {
|
|
191
199
|
throw new Error((0, createErrors_1.conflictingConfigurationBuildError)(conflicts));
|
|
@@ -229,7 +237,7 @@ function withGTConfig(nextConfig, props) {
|
|
|
229
237
|
resolvedDictionaryFilePath = (0, resolveConfigFilepath_1.resolveConfigFilepath)(mergedConfig.defaultLocale, ['.json']);
|
|
230
238
|
// Check [defaultLanguageCode].json file
|
|
231
239
|
if (!resolvedDictionaryFilePath) {
|
|
232
|
-
var defaultLanguage = (_c = (0,
|
|
240
|
+
var defaultLanguage = (_c = (0, format_1.getLocaleProperties)(mergedConfig.defaultLocale)) === null || _c === void 0 ? void 0 : _c.languageCode;
|
|
233
241
|
if (defaultLanguage && defaultLanguage !== mergedConfig.defaultLocale) {
|
|
234
242
|
resolvedDictionaryFilePath = (0, resolveConfigFilepath_1.resolveConfigFilepath)(defaultLanguage, [
|
|
235
243
|
'.json',
|
|
@@ -286,7 +294,7 @@ function withGTConfig(nextConfig, props) {
|
|
|
286
294
|
var updatedLocales = [];
|
|
287
295
|
mergedConfig.locales = Array.from(new Set(mergedConfig.locales)).map(function (locale) {
|
|
288
296
|
var updatedLocale = gtServicesEnabled
|
|
289
|
-
? (0,
|
|
297
|
+
? (0, format_1.standardizeLocale)(locale)
|
|
290
298
|
: locale;
|
|
291
299
|
if (updatedLocale !== locale) {
|
|
292
300
|
updatedLocales.push("".concat(locale, " -> ").concat(updatedLocale));
|
|
@@ -302,7 +310,7 @@ function withGTConfig(nextConfig, props) {
|
|
|
302
310
|
return [key, value];
|
|
303
311
|
}
|
|
304
312
|
var updatedLocale = gtServicesEnabled
|
|
305
|
-
? (0,
|
|
313
|
+
? (0, format_1.standardizeLocale)(value.code)
|
|
306
314
|
: value.code;
|
|
307
315
|
if (updatedLocale !== value.code) {
|
|
308
316
|
updatedCanonicalLocales.push("".concat(key, " -> ").concat(updatedLocale));
|
|
@@ -318,7 +326,7 @@ function withGTConfig(nextConfig, props) {
|
|
|
318
326
|
// Run cache component checks
|
|
319
327
|
(0, cacheComponentsChecks_1.cacheComponentsChecks)({
|
|
320
328
|
mergedConfig: mergedConfig,
|
|
321
|
-
nextConfig:
|
|
329
|
+
nextConfig: internalNextConfig,
|
|
322
330
|
requestFunctionPaths: requestFunctionPaths,
|
|
323
331
|
localTranslationsEnabled: !!customLoadTranslationsPath,
|
|
324
332
|
localDictionaryEnabled: !!customLoadDictionaryPath,
|
|
@@ -365,7 +373,7 @@ function withGTConfig(nextConfig, props) {
|
|
|
365
373
|
if (!mergedConfig.customMapping && gtServicesEnabled) {
|
|
366
374
|
var invalidLocales_1 = [];
|
|
367
375
|
mergedConfig.locales.forEach(function (locale) {
|
|
368
|
-
if (!(0,
|
|
376
|
+
if (!(0, format_1.isValidLocale)(locale)) {
|
|
369
377
|
invalidLocales_1.push(locale);
|
|
370
378
|
}
|
|
371
379
|
});
|
|
@@ -377,7 +385,7 @@ function withGTConfig(nextConfig, props) {
|
|
|
377
385
|
if (mergedConfig.customMapping && gtServicesEnabled) {
|
|
378
386
|
var invalidCanonicalLocales_1 = [];
|
|
379
387
|
mergedConfig.locales.forEach(function (locale) {
|
|
380
|
-
if (!(0,
|
|
388
|
+
if (!(0, format_1.isValidLocale)(locale, mergedConfig.customMapping)) {
|
|
381
389
|
invalidCanonicalLocales_1.push(locale);
|
|
382
390
|
}
|
|
383
391
|
});
|
|
@@ -427,11 +435,9 @@ function withGTConfig(nextConfig, props) {
|
|
|
427
435
|
var autoderiveStrings = typeof rawAutoderive === 'boolean'
|
|
428
436
|
? rawAutoderive
|
|
429
437
|
: ((_o = rawAutoderive.strings) !== null && _o !== void 0 ? _o : false);
|
|
438
|
+
var swcPluginOptions = __assign(__assign({}, compilerOptions), { autoderiveJsx: autoderiveJsx, autoderiveStrings: autoderiveStrings });
|
|
430
439
|
var swcPluginEntry = ((_p = mergedConfig.experimentalCompilerOptions) === null || _p === void 0 ? void 0 : _p.type) === 'swc'
|
|
431
|
-
? [
|
|
432
|
-
resolvedWasmFilePath,
|
|
433
|
-
__assign(__assign({}, compilerOptions), { autoderiveJsx: autoderiveJsx, autoderiveStrings: autoderiveStrings }),
|
|
434
|
-
]
|
|
440
|
+
? [resolvedWasmFilePath, swcPluginOptions]
|
|
435
441
|
: null;
|
|
436
442
|
var turboAliases = __assign({ 'gt-next/_dictionary': resolvedDictionaryFilePath || '', 'gt-next/_load-translations': customLoadTranslationsPath || '', 'gt-next/_load-dictionary': customLoadDictionaryPath || '' }, Object.fromEntries(Object.entries(requestFunctionPaths).map(function (_a) {
|
|
437
443
|
var functionName = _a[0], path = _a[1];
|
|
@@ -444,8 +450,9 @@ function withGTConfig(nextConfig, props) {
|
|
|
444
450
|
// Check for experimental.turbo. If we write to turbopack field, experimental fields will be ignored.
|
|
445
451
|
// Yet, if there are other resolveAlias fields, we don't want to be ignored either.
|
|
446
452
|
var experimentalTurbopack = !(getStableNextVersionInfo_1.turboConfigStable &&
|
|
447
|
-
(!((_q =
|
|
448
|
-
|
|
453
|
+
(!((_q = internalNextConfig.experimental) === null || _q === void 0 ? void 0 : _q.turbo) ||
|
|
454
|
+
((_r = internalNextConfig.turbopack) === null || _r === void 0 ? void 0 : _r.resolveAlias)));
|
|
455
|
+
var config = __assign(__assign(__assign(__assign({}, internalNextConfig), { env: __assign(__assign(__assign(__assign({}, internalNextConfig.env), { _GENERALTRANSLATION_I18N_CONFIG_PARAMS: I18NConfigParams }), (resolvedDictionaryFilePathType && {
|
|
449
456
|
_GENERALTRANSLATION_DICTIONARY_FILE_TYPE: resolvedDictionaryFilePathType,
|
|
450
457
|
})), { _GENERALTRANSLATION_LOCAL_DICTIONARY_ENABLED: mergedConfig.loadDictionaryEnabled.toString(), _GENERALTRANSLATION_LOCAL_TRANSLATION_ENABLED: (mergedConfig.loadTranslationsType === 'custom').toString(), _GENERALTRANSLATION_DEFAULT_LOCALE: (mergedConfig.defaultLocale ||
|
|
451
458
|
defaultWithGTConfigProps_1.defaultWithGTConfigProps.defaultLocale ||
|
|
@@ -453,12 +460,12 @@ function withGTConfig(nextConfig, props) {
|
|
|
453
460
|
((_t = defaultWithGTConfigProps_1.defaultWithGTConfigProps.ignoreBrowserLocales) === null || _t === void 0 ? void 0 : _t.toString()) ||
|
|
454
461
|
'false', _GENERALTRANSLATION_CUSTOM_GET_LOCALE_ENABLED: requestFunctionPaths.getLocale ? 'true' : 'false', _GENERALTRANSLATION_CUSTOM_GET_REGION_ENABLED: requestFunctionPaths.getRegion ? 'true' : 'false', _GENERALTRANSLATION_CUSTOM_GET_DOMAIN_ENABLED: requestFunctionPaths.getDomain ? 'true' : 'false', _GENERALTRANSLATION_STATIC_GET_LOCALE_ENABLED: requestFunctionPaths.getStaticLocale ? 'true' : 'false', _GENERALTRANSLATION_STATIC_GET_REGION_ENABLED: requestFunctionPaths.getStaticRegion ? 'true' : 'false', _GENERALTRANSLATION_STATIC_GET_DOMAIN_ENABLED: requestFunctionPaths.getStaticDomain ? 'true' : 'false', _GENERALTRANSLATION_DISABLE_SSG_WARNINGS: ((_u = mergedConfig.disableSSGWarnings) === null || _u === void 0 ? void 0 : _u.toString()) || 'false', _GENERALTRANSLATION_ENABLE_SSG: ((_v = mergedConfig.experimentalEnableSSG) === null || _v === void 0 ? void 0 : _v.toString()) || 'false', _GENERALTRANSLATION_EXPERIMENTAL_LOCALE_RESOLUTION: ((_w = mergedConfig.experimentalLocaleResolution) === null || _w === void 0 ? void 0 : _w.toString()) || 'false', _GENERALTRANSLATION_EXPERIMENTAL_LOCALE_RESOLUTION_PARAM: mergedConfig.experimentalLocaleResolutionParam }) }), (turboPackEnabled &&
|
|
455
462
|
!experimentalTurbopack && {
|
|
456
|
-
turbopack: __assign(__assign({},
|
|
457
|
-
})), { experimental: __assign(__assign(__assign(__assign({},
|
|
463
|
+
turbopack: __assign(__assign({}, internalNextConfig.turbopack), { resolveAlias: __assign(__assign({}, (_x = internalNextConfig.turbopack) === null || _x === void 0 ? void 0 : _x.resolveAlias), turboAliases) }),
|
|
464
|
+
})), { experimental: __assign(__assign(__assign(__assign({}, internalNextConfig.experimental), (getStableNextVersionInfo_1.rootParamStability === 'experimental' && {
|
|
458
465
|
rootParams: true,
|
|
459
|
-
})), { swcPlugins: __spreadArray(__spreadArray([], (((_y =
|
|
466
|
+
})), { swcPlugins: __spreadArray(__spreadArray([], (((_y = internalNextConfig.experimental) === null || _y === void 0 ? void 0 : _y.swcPlugins) || []), true), (swcPluginEntry ? [swcPluginEntry] : []), true) }), (turboPackEnabled &&
|
|
460
467
|
experimentalTurbopack && {
|
|
461
|
-
turbo: __assign(__assign({}, (_z =
|
|
468
|
+
turbo: __assign(__assign({}, (_z = internalNextConfig.experimental) === null || _z === void 0 ? void 0 : _z.turbo), { resolveAlias: __assign(__assign({}, (_1 = (_0 = internalNextConfig.experimental) === null || _0 === void 0 ? void 0 : _0.turbo) === null || _1 === void 0 ? void 0 : _1.resolveAlias), turboAliases) }),
|
|
462
469
|
})), webpack: function webpack() {
|
|
463
470
|
var _a;
|
|
464
471
|
var _b = [];
|
|
@@ -500,16 +507,18 @@ function withGTConfig(nextConfig, props) {
|
|
|
500
507
|
webpackConfig.resolve.alias[key] = path_1.default.resolve(webpackConfig.context, pathString);
|
|
501
508
|
}
|
|
502
509
|
}
|
|
503
|
-
if (typeof (
|
|
504
|
-
return
|
|
510
|
+
if (typeof (internalNextConfig === null || internalNextConfig === void 0 ? void 0 : internalNextConfig.webpack) === 'function') {
|
|
511
|
+
return internalNextConfig.webpack(webpackConfig, options);
|
|
505
512
|
}
|
|
506
513
|
return webpackConfig;
|
|
507
514
|
} });
|
|
508
515
|
return config;
|
|
509
516
|
}
|
|
510
517
|
// Keep initGT for backward compatibility
|
|
511
|
-
var initGT = function (props) {
|
|
512
|
-
return
|
|
513
|
-
|
|
518
|
+
var initGT = function (props) {
|
|
519
|
+
return function (nextConfig) {
|
|
520
|
+
return withGTConfig(nextConfig, props);
|
|
521
|
+
};
|
|
522
|
+
};
|
|
514
523
|
exports.initGT = initGT;
|
|
515
524
|
//# sourceMappingURL=config.js.map
|