gt-next 6.13.4 → 6.13.5
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 +13 -0
- package/dist/errors/cacheComponents.d.ts +5 -5
- package/dist/errors/cacheComponents.d.ts.map +1 -1
- package/dist/errors/cacheComponents.js +5 -5
- package/dist/errors/cacheComponents.js.map +1 -1
- package/dist/errors/createErrors.d.ts +4 -4
- package/dist/errors/createErrors.d.ts.map +1 -1
- package/dist/errors/createErrors.js +14 -14
- package/dist/errors/createErrors.js.map +1 -1
- package/dist/errors/ssg.d.ts +4 -4
- package/dist/errors/ssg.d.ts.map +1 -1
- package/dist/errors/ssg.js +7 -7
- package/dist/errors/ssg.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# gt-next
|
|
2
2
|
|
|
3
|
+
## 6.13.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1076](https://github.com/generaltranslation/gt/pull/1076) [`19ae4eb`](https://github.com/generaltranslation/gt/commit/19ae4eb0baf7e6f15d19f9fad384621d38d73d57) Thanks [@moss-bryophyta](https://github.com/moss-bryophyta)! - Apply style guide to error messages and warnings: remove "Please", simplify verbose phrasing, fix `in-line` → `inline`.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`dad7824`](https://github.com/generaltranslation/gt/commit/dad78246d164b201d4fc14c89213cc04f21c8b76), [`19ae4eb`](https://github.com/generaltranslation/gt/commit/19ae4eb0baf7e6f15d19f9fad384621d38d73d57)]:
|
|
10
|
+
- generaltranslation@8.1.14
|
|
11
|
+
- @generaltranslation/compiler@1.1.25
|
|
12
|
+
- gt-i18n@0.4.2
|
|
13
|
+
- gt-react@10.11.4
|
|
14
|
+
- @generaltranslation/supported-locales@2.0.47
|
|
15
|
+
|
|
3
16
|
## 6.13.4
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const cacheComponentsLegacySsgConflictError = "gt-next Error: experimentalLocaleResolution and the deprecated experimentalEnableSSG are enabled. Only one of these can be enabled at a time.";
|
|
2
2
|
export declare const experimentalLocaleResolutionError = "gt-next: Error resolving locale via experimentalLocaleResolution. Error: ";
|
|
3
3
|
export declare const cacheComponentsMissingExperimentalLocaleResolutionWarning = "gt-next: cacheComponents is enabled, but experimentalLocaleResolution is not enabled. experimentalLocaleResolution must be enabled for i18n to work inside of cached components.";
|
|
4
|
-
export declare const cacheComponentsExperimentalFeatureWarning = "gt-next:
|
|
5
|
-
export declare const cacheComponentsExperimentalFeatureDisableGetRequestFunctionWarning = "gt-next:
|
|
6
|
-
export declare const cacheComponentsExperimentalLocaleResolutionDisableCustomGetLocaleWarning = "gt-next: experimentalLocaleResolution is enabled.
|
|
7
|
-
export declare const cacheComponentsNonLocalTranslationsWarning = "gt-next Error: cacheComponents is enabled, but
|
|
8
|
-
export declare const experimentalLocaleResolutionWithoutCacheComponentsWarning = "gt-next: experimentalLocaleResolution is enabled, but cacheComponents disabled. experimentalLocaleResolution is meant to be used with cacheComponents. If this is intentional, ignore this warning.";
|
|
4
|
+
export declare const cacheComponentsExperimentalFeatureWarning = "gt-next: experimentalLocaleResolution is an experimental feature.";
|
|
5
|
+
export declare const cacheComponentsExperimentalFeatureDisableGetRequestFunctionWarning = "gt-next: experimentalLocaleResolution is enabled. getRegion and getDomain are disabled.";
|
|
6
|
+
export declare const cacheComponentsExperimentalLocaleResolutionDisableCustomGetLocaleWarning = "gt-next: experimentalLocaleResolution is enabled. The provided getLocale function will be ignored.";
|
|
7
|
+
export declare const cacheComponentsNonLocalTranslationsWarning = "gt-next Error: cacheComponents is enabled, but translations are not stored locally. Prerendering may fail. Store translations locally: https://generaltranslation.com/en-US/docs/next/guides/local-tx";
|
|
8
|
+
export declare const experimentalLocaleResolutionWithoutCacheComponentsWarning = "gt-next: experimentalLocaleResolution is enabled, but cacheComponents is disabled. experimentalLocaleResolution is meant to be used with cacheComponents. If this is intentional, ignore this warning.";
|
|
9
9
|
//# sourceMappingURL=cacheComponents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cacheComponents.d.ts","sourceRoot":"","sources":["../../src/errors/cacheComponents.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qCAAqC,kJAC+F,CAAC;AAElJ,eAAO,MAAM,iCAAiC,8EAC+B,CAAC;AAG9E,eAAO,MAAM,yDAAyD,qLAC8G,CAAC;AAErL,eAAO,MAAM,yCAAyC,
|
|
1
|
+
{"version":3,"file":"cacheComponents.d.ts","sourceRoot":"","sources":["../../src/errors/cacheComponents.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qCAAqC,kJAC+F,CAAC;AAElJ,eAAO,MAAM,iCAAiC,8EAC+B,CAAC;AAG9E,eAAO,MAAM,yDAAyD,qLAC8G,CAAC;AAErL,eAAO,MAAM,yCAAyC,sEACe,CAAC;AAEtE,eAAO,MAAM,kEAAkE,4FACY,CAAC;AAE5F,eAAO,MAAM,wEAAwE,uGACiB,CAAC;AAEvG,eAAO,MAAM,0CAA0C,0MACkJ,CAAC;AAE1M,eAAO,MAAM,yDAAyD,2MACoI,CAAC"}
|
|
@@ -6,9 +6,9 @@ exports.cacheComponentsLegacySsgConflictError = 'gt-next Error: experimentalLoca
|
|
|
6
6
|
exports.experimentalLocaleResolutionError = 'gt-next: Error resolving locale via experimentalLocaleResolution. Error: ';
|
|
7
7
|
// ---- WARNINGS ---- //
|
|
8
8
|
exports.cacheComponentsMissingExperimentalLocaleResolutionWarning = 'gt-next: cacheComponents is enabled, but experimentalLocaleResolution is not enabled. experimentalLocaleResolution must be enabled for i18n to work inside of cached components.';
|
|
9
|
-
exports.cacheComponentsExperimentalFeatureWarning = 'gt-next:
|
|
10
|
-
exports.cacheComponentsExperimentalFeatureDisableGetRequestFunctionWarning = 'gt-next:
|
|
11
|
-
exports.cacheComponentsExperimentalLocaleResolutionDisableCustomGetLocaleWarning = 'gt-next: experimentalLocaleResolution is enabled.
|
|
12
|
-
exports.cacheComponentsNonLocalTranslationsWarning = 'gt-next Error: cacheComponents is enabled, but
|
|
13
|
-
exports.experimentalLocaleResolutionWithoutCacheComponentsWarning = 'gt-next: experimentalLocaleResolution is enabled, but cacheComponents disabled. experimentalLocaleResolution is meant to be used with cacheComponents. If this is intentional, ignore this warning.';
|
|
9
|
+
exports.cacheComponentsExperimentalFeatureWarning = 'gt-next: experimentalLocaleResolution is an experimental feature.';
|
|
10
|
+
exports.cacheComponentsExperimentalFeatureDisableGetRequestFunctionWarning = 'gt-next: experimentalLocaleResolution is enabled. getRegion and getDomain are disabled.';
|
|
11
|
+
exports.cacheComponentsExperimentalLocaleResolutionDisableCustomGetLocaleWarning = 'gt-next: experimentalLocaleResolution is enabled. The provided getLocale function will be ignored.';
|
|
12
|
+
exports.cacheComponentsNonLocalTranslationsWarning = 'gt-next Error: cacheComponents is enabled, but translations are not stored locally. Prerendering may fail. Store translations locally: https://generaltranslation.com/en-US/docs/next/guides/local-tx';
|
|
13
|
+
exports.experimentalLocaleResolutionWithoutCacheComponentsWarning = 'gt-next: experimentalLocaleResolution is enabled, but cacheComponents is disabled. experimentalLocaleResolution is meant to be used with cacheComponents. If this is intentional, ignore this warning.';
|
|
14
14
|
//# sourceMappingURL=cacheComponents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cacheComponents.js","sourceRoot":"","sources":["../../src/errors/cacheComponents.ts"],"names":[],"mappings":";;;AAAA,sBAAsB;AACT,QAAA,qCAAqC,GAChD,+IAA+I,CAAC;AAErI,QAAA,iCAAiC,GAC5C,2EAA2E,CAAC;AAE9E,wBAAwB;AACX,QAAA,yDAAyD,GACpE,kLAAkL,CAAC;AAExK,QAAA,yCAAyC,GACpD
|
|
1
|
+
{"version":3,"file":"cacheComponents.js","sourceRoot":"","sources":["../../src/errors/cacheComponents.ts"],"names":[],"mappings":";;;AAAA,sBAAsB;AACT,QAAA,qCAAqC,GAChD,+IAA+I,CAAC;AAErI,QAAA,iCAAiC,GAC5C,2EAA2E,CAAC;AAE9E,wBAAwB;AACX,QAAA,yDAAyD,GACpE,kLAAkL,CAAC;AAExK,QAAA,yCAAyC,GACpD,mEAAmE,CAAC;AAEzD,QAAA,kEAAkE,GAC7E,yFAAyF,CAAC;AAE/E,QAAA,wEAAwE,GACnF,oGAAoG,CAAC;AAE1F,QAAA,0CAA0C,GACrD,uMAAuM,CAAC;AAE7L,QAAA,yDAAyD,GACpE,wMAAwM,CAAC"}
|
|
@@ -6,9 +6,9 @@ export declare const createUnresolvedReactVersionError: (error: Error) => string
|
|
|
6
6
|
export declare const createStringTranslationError: (string: string, id?: string, functionName?: string) => string;
|
|
7
7
|
export declare const createDictionaryTranslationError: (id: string) => string;
|
|
8
8
|
export declare const createRequiredPrefixError: (id: string, requiredPrefix: string) => string;
|
|
9
|
-
export declare const devApiKeyIncludedInProductionError = "gt-next Error:
|
|
9
|
+
export declare const devApiKeyIncludedInProductionError = "gt-next Error: Production builds cannot use a development API key. Replace it with a production API key.";
|
|
10
10
|
export declare const createDictionarySubsetError: (id: string, functionName: string) => string;
|
|
11
|
-
export declare const dictionaryDisabledError = "gt-next Error:
|
|
11
|
+
export declare const dictionaryDisabledError = "gt-next Error: Dictionaries require the withGTConfig() plugin. Add withGTConfig() to your app. For more information, visit generaltranslation.com/docs";
|
|
12
12
|
export declare const unresolvedCustomLoadDictionaryError = "gt-next Error: loadDictionary() was resolved by plug-in but could not be resolved at run time. This usually means that the file was found, but the loadDictionary() function itself could not be resolved.";
|
|
13
13
|
export declare const unresolvedCustomLoadTranslationsError = "gt-next Error: loadTranslations() was resolved by plug-in but could not be resolved at run time. This usually means that the file was found, but the loadTranslations() function itself could not be resolved.";
|
|
14
14
|
export declare const unresolvedLoadDictionaryBuildError: (path: string) => string;
|
|
@@ -46,7 +46,7 @@ export declare const standardizedCanonicalLocalesWarning: (locales: string[]) =>
|
|
|
46
46
|
export declare const deprecatedLocaleMappingWarning = "gt-next: You are using the deprecated localeMapping configuration. Please move \"customMapping\" to your gt.config.json file.";
|
|
47
47
|
export declare const createGTCompilerUnresolvedWarning: (type: "babel" | "swc") => string;
|
|
48
48
|
export declare const createGTCompilerUnavailableWarning: (type: "babel" | "swc") => "gt-next (plugin): The GT swc compiler is compatible with < next@16.1.0. Skipping compiler optimizations." | "gt-next (plugin): The GT babel compiler is compatible with turbopack or < react@17.0.0. Skipping compiler optimizations.";
|
|
49
|
-
export declare const disablingCompileTimeHashWarning = "gt-next (plugin):
|
|
49
|
+
export declare const disablingCompileTimeHashWarning = "gt-next (plugin): Compile-time hash is disabled. Compiler optimizations are inactive.";
|
|
50
50
|
export declare const createStringRenderWarning: (message: string, id: string | undefined) => string;
|
|
51
|
-
export declare const swcPluginCompatibilityChangeWarning = "gt-next (plugin): As of gt-next@6.12.4, SWC plugin support
|
|
51
|
+
export declare const swcPluginCompatibilityChangeWarning = "gt-next (plugin): As of gt-next@6.12.4, SWC plugin support is disabled for Next.js versions prior to 16.1.0. Update to the latest version of Next.js.";
|
|
52
52
|
//# sourceMappingURL=createErrors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createErrors.d.ts","sourceRoot":"","sources":["../../src/errors/createErrors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,gDACW,CAAC;AAEhD,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAW,
|
|
1
|
+
{"version":3,"file":"createErrors.d.ts","sourceRoot":"","sources":["../../src/errors/createErrors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,uBAAuB,gDACW,CAAC;AAEhD,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAW,WACwF,CAAC;AAExJ,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAW,WACkG,CAAC;AAElK,eAAO,MAAM,gCAAgC,GAAI,OAAO,KAAK,WACM,CAAC;AAEpE,eAAO,MAAM,i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MAAM,EACf,IAAI,MAAM,GAAG,SAAS,WAE0E,CAAC;AAEnG,eAAO,MAAM,mCAAmC,0JAAyK,CAAC"}
|
|
@@ -7,12 +7,12 @@ var constants_1 = require("../plugin/constants");
|
|
|
7
7
|
exports.remoteTranslationsError = 'gt-next Error: fetching remote translation.';
|
|
8
8
|
var customLoadTranslationsError = function (locale) {
|
|
9
9
|
if (locale === void 0) { locale = ''; }
|
|
10
|
-
return "gt-next Error:
|
|
10
|
+
return "gt-next Error: Failed to fetch locally stored translations. If using a custom loadTranslations(\"".concat(locale, "\"), make sure it is correctly implemented.");
|
|
11
11
|
};
|
|
12
12
|
exports.customLoadTranslationsError = customLoadTranslationsError;
|
|
13
13
|
var customLoadDictionaryWarning = function (locale) {
|
|
14
14
|
if (locale === void 0) { locale = ''; }
|
|
15
|
-
return "gt-next Warning:
|
|
15
|
+
return "gt-next Warning: Failed to fetch locally stored translation dictionary. If using a custom loadDictionary(\"".concat(locale, "\"), make sure it is correctly implemented.");
|
|
16
16
|
};
|
|
17
17
|
exports.customLoadDictionaryWarning = customLoadDictionaryWarning;
|
|
18
18
|
var createUnresolvedNextVersionError = function (error) {
|
|
@@ -33,15 +33,15 @@ var createDictionaryTranslationError = function (id) {
|
|
|
33
33
|
};
|
|
34
34
|
exports.createDictionaryTranslationError = createDictionaryTranslationError;
|
|
35
35
|
var createRequiredPrefixError = function (id, requiredPrefix) {
|
|
36
|
-
return "gt-next Error:
|
|
36
|
+
return "gt-next Error: <GTProvider> has prefix id \"".concat(requiredPrefix, "\", but a child has id \"").concat(id, "\". Change the <GTProvider> id prop or your dictionary structure to proceed.");
|
|
37
37
|
};
|
|
38
38
|
exports.createRequiredPrefixError = createRequiredPrefixError;
|
|
39
|
-
exports.devApiKeyIncludedInProductionError = "gt-next Error:
|
|
39
|
+
exports.devApiKeyIncludedInProductionError = "gt-next Error: Production builds cannot use a development API key. Replace it with a production API key.";
|
|
40
40
|
var createDictionarySubsetError = function (id, functionName) {
|
|
41
|
-
return "gt-next Error: ".concat(functionName, " with id: \"").concat(id, "\". Invalid dictionary entry
|
|
41
|
+
return "gt-next Error: ".concat(functionName, " with id: \"").concat(id, "\". Invalid dictionary entry. Make sure the ID maps to the correct subroute of the dictionary.");
|
|
42
42
|
};
|
|
43
43
|
exports.createDictionarySubsetError = createDictionarySubsetError;
|
|
44
|
-
exports.dictionaryDisabledError = "gt-next Error:
|
|
44
|
+
exports.dictionaryDisabledError = "gt-next Error: Dictionaries require the withGTConfig() plugin. Add withGTConfig() to your app. For more information, visit generaltranslation.com/docs";
|
|
45
45
|
exports.unresolvedCustomLoadDictionaryError = "gt-next Error: loadDictionary() was resolved by plug-in but could not be resolved at run time. This usually means that the file was found, but the loadDictionary() function itself could not be resolved.";
|
|
46
46
|
exports.unresolvedCustomLoadTranslationsError = "gt-next Error: loadTranslations() was resolved by plug-in but could not be resolved at run time. This usually means that the file was found, but the loadTranslations() function itself could not be resolved.";
|
|
47
47
|
var unresolvedLoadDictionaryBuildError = function (path) {
|
|
@@ -57,7 +57,7 @@ var unresolvedGetLocaleBuildError = function (path) {
|
|
|
57
57
|
};
|
|
58
58
|
exports.unresolvedGetLocaleBuildError = unresolvedGetLocaleBuildError;
|
|
59
59
|
var conflictingConfigurationBuildError = function (conflicts) {
|
|
60
|
-
return "gt-next Error: Conflicting configuration".concat(conflicts.length > 1 ? 's' : '', " detected.
|
|
60
|
+
return "gt-next Error: Conflicting configuration".concat(conflicts.length > 1 ? 's' : '', " detected. Resolve the following conflicts before building your app:\n").concat(conflicts.join('\n'));
|
|
61
61
|
};
|
|
62
62
|
exports.conflictingConfigurationBuildError = conflictingConfigurationBuildError;
|
|
63
63
|
exports.typesFileError = "gt-next Error: There is no scenario in which you should be seeing this error.";
|
|
@@ -76,13 +76,13 @@ var createStringRenderError = function (message, id) {
|
|
|
76
76
|
};
|
|
77
77
|
exports.createStringRenderError = createStringRenderError;
|
|
78
78
|
var invalidLocalesError = function (locales) {
|
|
79
|
-
return "gt-next Error:
|
|
80
|
-
"
|
|
81
|
-
"
|
|
79
|
+
return "gt-next Error: Invalid locale codes in your configuration. " +
|
|
80
|
+
"Specify a list of valid locales or use \"customMapping\" to " +
|
|
81
|
+
"define aliases for the following invalid locales: ".concat(locales.join(', '), ".");
|
|
82
82
|
};
|
|
83
83
|
exports.invalidLocalesError = invalidLocalesError;
|
|
84
84
|
var invalidCanonicalLocalesError = function (locales) {
|
|
85
|
-
return "gt-next Error:
|
|
85
|
+
return "gt-next Error: Invalid canonical locale codes in your configuration: ".concat(locales.join(', '), ".");
|
|
86
86
|
};
|
|
87
87
|
exports.invalidCanonicalLocalesError = invalidCanonicalLocalesError;
|
|
88
88
|
var createInvalidIcuDictionaryEntryError = function (id) {
|
|
@@ -95,7 +95,7 @@ var createInvalidIcuDictionaryEntryWarning = function (id) {
|
|
|
95
95
|
};
|
|
96
96
|
exports.createInvalidIcuDictionaryEntryWarning = createInvalidIcuDictionaryEntryWarning;
|
|
97
97
|
var createBadFilepathWarning = function (filename, dir) {
|
|
98
|
-
return "gt-next: Found ".concat(filename, " in ").concat(dir.join(' or '), " directory. This is not supported.
|
|
98
|
+
return "gt-next: Found ".concat(filename, " in ").concat(dir.join(' or '), " directory. This is not supported. Move it to your root directory.");
|
|
99
99
|
};
|
|
100
100
|
exports.createBadFilepathWarning = createBadFilepathWarning;
|
|
101
101
|
exports.usingDefaultsWarning = 'gt-next: Unable to access gt-next configuration. Using defaults.';
|
|
@@ -162,10 +162,10 @@ var createGTCompilerUnavailableWarning = function (type) {
|
|
|
162
162
|
: "gt-next (plugin): The GT babel compiler is compatible with turbopack or < react@".concat(constants_1.BABEL_PLUGIN_SUPPORT, ". Skipping compiler optimizations.");
|
|
163
163
|
};
|
|
164
164
|
exports.createGTCompilerUnavailableWarning = createGTCompilerUnavailableWarning;
|
|
165
|
-
exports.disablingCompileTimeHashWarning = "gt-next (plugin):
|
|
165
|
+
exports.disablingCompileTimeHashWarning = "gt-next (plugin): Compile-time hash is disabled. Compiler optimizations are inactive.";
|
|
166
166
|
var createStringRenderWarning = function (message, id) {
|
|
167
167
|
return "gt-next: failed to render string ".concat(id ? "for id: \"".concat(id, "\"") : '', " original message: \"").concat(message, "\"");
|
|
168
168
|
};
|
|
169
169
|
exports.createStringRenderWarning = createStringRenderWarning;
|
|
170
|
-
exports.swcPluginCompatibilityChangeWarning = "gt-next (plugin): As of gt-next@6.12.4, SWC plugin support
|
|
170
|
+
exports.swcPluginCompatibilityChangeWarning = "gt-next (plugin): As of gt-next@6.12.4, SWC plugin support is disabled for Next.js versions prior to ".concat(constants_1.SWC_PLUGIN_SUPPORT, ". Update to the latest version of Next.js.");
|
|
171
171
|
//# sourceMappingURL=createErrors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createErrors.js","sourceRoot":"","sources":["../../src/errors/createErrors.ts"],"names":[],"mappings":";AAAA,sBAAsB;;;AAEtB,yDAAyD;AACzD,iDAA+E;AAElE,QAAA,uBAAuB,GAClC,6CAA6C,CAAC;AAEzC,IAAM,2BAA2B,GAAG,UAAC,MAAmB;IAAnB,uBAAA,EAAA,WAAmB;IAC7D,OAAA,
|
|
1
|
+
{"version":3,"file":"createErrors.js","sourceRoot":"","sources":["../../src/errors/createErrors.ts"],"names":[],"mappings":";AAAA,sBAAsB;;;AAEtB,yDAAyD;AACzD,iDAA+E;AAElE,QAAA,uBAAuB,GAClC,6CAA6C,CAAC;AAEzC,IAAM,2BAA2B,GAAG,UAAC,MAAmB;IAAnB,uBAAA,EAAA,WAAmB;IAC7D,OAAA,2GAAmG,MAAM,gDAA4C;AAArJ,CAAqJ,CAAC;AAD3I,QAAA,2BAA2B,+BACgH;AAEjJ,IAAM,2BAA2B,GAAG,UAAC,MAAmB;IAAnB,uBAAA,EAAA,WAAmB;IAC7D,OAAA,qHAA6G,MAAM,gDAA4C;AAA/J,CAA+J,CAAC;AADrJ,QAAA,2BAA2B,+BAC0H;AAE3J,IAAM,gCAAgC,GAAG,UAAC,KAAY;IAC3D,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AnG,CAAmG,CAAC;AADzF,QAAA,iCAAiC,qCACwD;AAE/F,IAAM,kCAAkC,GAAG,UAAC,IAAqB;IACtE,OAAA,IAAI,KAAK,KAAK;QACZ,CAAC,CAAC,0EAAmE,8BAAkB,uCAAoC;QAC3H,CAAC,CAAC,0FAAmF,gCAAoB,uCAAoC;AAF/I,CAE+I,CAAC;AAHrI,QAAA,kCAAkC,sCAGmG;AAErI,QAAA,+BAA+B,GAAG,uFAAuF,CAAC;AAEhI,IAAM,yBAAyB,GAAG,UACvC,OAAe,EACf,EAAsB;IAEtB,OAAA,2CAAoC,EAAE,CAAC,CAAC,CAAC,oBAAY,EAAE,OAAG,CAAC,CAAC,CAAC,EAAE,kCAAuB,OAAO,OAAG;AAAhG,CAAgG,CAAC;AAJtF,QAAA,yBAAyB,6BAI6D;AAEtF,QAAA,mCAAmC,GAAG,+GAAwG,8BAAkB,+CAA4C,CAAC"}
|
package/dist/errors/ssg.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DEPRECATED_REQUEST_FUNCTION_TO_CONFIG_KEY } from '../config-dir/props/withGTConfigProps';
|
|
2
2
|
import { RequestFunctions, StaticRequestFunctions } from '../request/types';
|
|
3
|
-
export declare const ssgMissingGetStaticLocaleFunctionError = "gt-next:
|
|
4
|
-
export declare const noLocalesCouldBeDeterminedWarning = "gt-next:
|
|
3
|
+
export declare const ssgMissingGetStaticLocaleFunctionError = "gt-next: SSG is enabled, but no custom getStaticLocale() function is configured. Visit https://generaltranslation.com/en/docs/next/guides/ssg to configure SSG.";
|
|
4
|
+
export declare const noLocalesCouldBeDeterminedWarning = "gt-next: No locales could be determined for this request. If using SSG, follow setup instructions here: https://generaltranslation.com/en/docs/next/guides/ssg#ssg-custom-get-locale";
|
|
5
5
|
export declare const createSsgMissingCustomFunctionWarning: (functionName: StaticRequestFunctions) => string;
|
|
6
|
-
export declare const invalidSSGConfigurationWarning = "gt-next:
|
|
6
|
+
export declare const invalidSSGConfigurationWarning = "gt-next: SSG is in use, but not configured in withGTConfig(). Visit https://generaltranslation.com/en/docs/next/guides/ssg to configure SSG.";
|
|
7
7
|
export declare const createGetRequestFunctionWarning: (functionName: RequestFunctions | StaticRequestFunctions) => string;
|
|
8
8
|
export declare const createCustomGetRequestFunctionWarning: (functionName: RequestFunctions | StaticRequestFunctions) => string;
|
|
9
9
|
export declare const createSsrFunctionDuringSsgWarning: (functionName: RequestFunctions) => string;
|
|
10
10
|
export declare const ssrDetectionFailedWarning = "gt-next: Unable to determine if runtime is SSR or SSG. Falling back to SSR behavior.";
|
|
11
|
-
export declare const deprecatedExperimentalEnableSSGWarning = "gt-next:
|
|
11
|
+
export declare const deprecatedExperimentalEnableSSGWarning = "gt-next: The experimentalEnableSSG configuration is deprecated and will be removed in a future version.";
|
|
12
12
|
export declare const createDeprecatedGetStaticLocaleFunctionWarning: (functionName: keyof typeof DEPRECATED_REQUEST_FUNCTION_TO_CONFIG_KEY) => string;
|
|
13
13
|
//# sourceMappingURL=ssg.d.ts.map
|
package/dist/errors/ssg.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../../src/errors/ssg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI5E,eAAO,MAAM,sCAAsC,
|
|
1
|
+
{"version":3,"file":"ssg.d.ts","sourceRoot":"","sources":["../../src/errors/ssg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yCAAyC,EAAE,MAAM,uCAAuC,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAI5E,eAAO,MAAM,sCAAsC,oKACgH,CAAC;AAKpK,eAAO,MAAM,iCAAiC,yLAC0I,CAAC;AAKzL,eAAO,MAAM,qCAAqC,GAChD,cAAc,sBAAsB,WAIyF,CAAC;AAEhI,eAAO,MAAM,8BAA8B,iJACqG,CAAC;AAEjJ,eAAO,MAAM,+BAA+B,GAC1C,cAAc,gBAAgB,GAAG,sBAAsB,WACE,CAAC;AAE5D,eAAO,MAAM,qCAAqC,GAChD,cAAc,gBAAgB,GAAG,sBAAsB,WACS,CAAC;AAEnE,eAAO,MAAM,iCAAiC,GAC5C,cAAc,gBAAgB,WAI2E,CAAC;AAE5G,eAAO,MAAM,yBAAyB,yFACkD,CAAC;AAEzF,eAAO,MAAM,sCAAsC,4GACwD,CAAC;AAE5G,eAAO,MAAM,8CAA8C,GACzD,cAAc,MAAM,OAAO,yCAAyC,WAEwB,CAAC"}
|
package/dist/errors/ssg.js
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createDeprecatedGetStaticLocaleFunctionWarning = exports.deprecatedExperimentalEnableSSGWarning = exports.ssrDetectionFailedWarning = exports.createSsrFunctionDuringSsgWarning = exports.createCustomGetRequestFunctionWarning = exports.createGetRequestFunctionWarning = exports.invalidSSGConfigurationWarning = exports.createSsgMissingCustomFunctionWarning = exports.noLocalesCouldBeDeterminedWarning = exports.ssgMissingGetStaticLocaleFunctionError = void 0;
|
|
4
4
|
// ========== ERRORS ========== //
|
|
5
|
-
exports.ssgMissingGetStaticLocaleFunctionError = 'gt-next:
|
|
5
|
+
exports.ssgMissingGetStaticLocaleFunctionError = 'gt-next: SSG is enabled, but no custom getStaticLocale() function is configured. Visit https://generaltranslation.com/en/docs/next/guides/ssg to configure SSG.';
|
|
6
6
|
// ========== WARNINGS ========== //
|
|
7
7
|
// This was (1) triggered by SSG without running middleware, or (2) triggered by a request with no locale headers (also no middleware).
|
|
8
|
-
exports.noLocalesCouldBeDeterminedWarning = 'gt-next:
|
|
8
|
+
exports.noLocalesCouldBeDeterminedWarning = 'gt-next: No locales could be determined for this request. If using SSG, follow setup instructions here: https://generaltranslation.com/en/docs/next/guides/ssg#ssg-custom-get-locale';
|
|
9
9
|
var createCustomSSGFunctionSuffix = function (functionName) {
|
|
10
|
-
return "
|
|
10
|
+
return "To use ".concat(functionName.replace('Static', ''), " during SSG, define a custom ").concat(functionName.replace('Static', ''), "() function. For more information, visit https://generaltranslation.com/en/docs/next/guides/ssg. To disable this warning, set \"disableSSGWarnings\" to true.");
|
|
11
11
|
};
|
|
12
12
|
var createSsgMissingCustomFunctionWarning = function (functionName) {
|
|
13
13
|
return process.env._GENERALTRANSLATION_DISABLE_SSG_WARNINGS === 'true'
|
|
@@ -15,7 +15,7 @@ var createSsgMissingCustomFunctionWarning = function (functionName) {
|
|
|
15
15
|
: "gt-next: ".concat(functionName.replace('Static', ''), "() was invoked during SSG. ").concat(createCustomSSGFunctionSuffix(functionName));
|
|
16
16
|
};
|
|
17
17
|
exports.createSsgMissingCustomFunctionWarning = createSsgMissingCustomFunctionWarning;
|
|
18
|
-
exports.invalidSSGConfigurationWarning = 'gt-next:
|
|
18
|
+
exports.invalidSSGConfigurationWarning = 'gt-next: SSG is in use, but not configured in withGTConfig(). Visit https://generaltranslation.com/en/docs/next/guides/ssg to configure SSG.';
|
|
19
19
|
var createGetRequestFunctionWarning = function (functionName) { return "gt-next: Unable to resolve ".concat(functionName, " function."); };
|
|
20
20
|
exports.createGetRequestFunctionWarning = createGetRequestFunctionWarning;
|
|
21
21
|
var createCustomGetRequestFunctionWarning = function (functionName) { return "gt-next: Unable to resolve custom ".concat(functionName, " function."); };
|
|
@@ -23,13 +23,13 @@ exports.createCustomGetRequestFunctionWarning = createCustomGetRequestFunctionWa
|
|
|
23
23
|
var createSsrFunctionDuringSsgWarning = function (functionName) {
|
|
24
24
|
return process.env._GENERALTRANSLATION_DISABLE_SSG_WARNINGS === 'true'
|
|
25
25
|
? ''
|
|
26
|
-
: "gt-next: ".concat(functionName, "() was invoked during SSG. Rendering will
|
|
26
|
+
: "gt-next: ".concat(functionName, "() was invoked during SSG. Rendering will likely fall back to SSR behavior.");
|
|
27
27
|
};
|
|
28
28
|
exports.createSsrFunctionDuringSsgWarning = createSsrFunctionDuringSsgWarning;
|
|
29
29
|
exports.ssrDetectionFailedWarning = 'gt-next: Unable to determine if runtime is SSR or SSG. Falling back to SSR behavior.';
|
|
30
|
-
exports.deprecatedExperimentalEnableSSGWarning = 'gt-next:
|
|
30
|
+
exports.deprecatedExperimentalEnableSSGWarning = 'gt-next: The experimentalEnableSSG configuration is deprecated and will be removed in a future version.';
|
|
31
31
|
var createDeprecatedGetStaticLocaleFunctionWarning = function (functionName) {
|
|
32
|
-
return "gt-next:
|
|
32
|
+
return "gt-next: ".concat(functionName, " is deprecated. Use ").concat(functionName.replace('Static', ''), " instead.");
|
|
33
33
|
};
|
|
34
34
|
exports.createDeprecatedGetStaticLocaleFunctionWarning = createDeprecatedGetStaticLocaleFunctionWarning;
|
|
35
35
|
//# sourceMappingURL=ssg.js.map
|
package/dist/errors/ssg.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssg.js","sourceRoot":"","sources":["../../src/errors/ssg.ts"],"names":[],"mappings":";;;AAGA,kCAAkC;AAErB,QAAA,sCAAsC,GACjD,
|
|
1
|
+
{"version":3,"file":"ssg.js","sourceRoot":"","sources":["../../src/errors/ssg.ts"],"names":[],"mappings":";;;AAGA,kCAAkC;AAErB,QAAA,sCAAsC,GACjD,iKAAiK,CAAC;AAEpK,oCAAoC;AAEpC,uIAAuI;AAC1H,QAAA,iCAAiC,GAC5C,sLAAsL,CAAC;AAEzL,IAAM,6BAA6B,GAAG,UAAC,YAAoC;IACzE,OAAA,iBAAU,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,0CAAgC,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,kKAA6J;AAA3Q,CAA2Q,CAAC;AAEvQ,IAAM,qCAAqC,GAAG,UACnD,YAAoC;IAEpC,OAAA,OAAO,CAAC,GAAG,CAAC,wCAAwC,KAAK,MAAM;QAC7D,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,mBAAY,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,wCAA8B,6BAA6B,CAAC,YAAY,CAAC,CAAE;AAF7H,CAE6H,CAAC;AALnH,QAAA,qCAAqC,yCAK8E;AAEnH,QAAA,8BAA8B,GACzC,8IAA8I,CAAC;AAE1I,IAAM,+BAA+B,GAAG,UAC7C,YAAuD,IACpD,OAAA,qCAA8B,YAAY,eAAY,EAAtD,CAAsD,CAAC;AAF/C,QAAA,+BAA+B,mCAEgB;AAErD,IAAM,qCAAqC,GAAG,UACnD,YAAuD,IACpD,OAAA,4CAAqC,YAAY,eAAY,EAA7D,CAA6D,CAAC;AAFtD,QAAA,qCAAqC,yCAEiB;AAE5D,IAAM,iCAAiC,GAAG,UAC/C,YAA8B;IAE9B,OAAA,OAAO,CAAC,GAAG,CAAC,wCAAwC,KAAK,MAAM;QAC7D,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,mBAAY,YAAY,gFAA6E;AAFzG,CAEyG,CAAC;AAL/F,QAAA,iCAAiC,qCAK8D;AAE/F,QAAA,yBAAyB,GACpC,sFAAsF,CAAC;AAE5E,QAAA,sCAAsC,GACjD,yGAAyG,CAAC;AAErG,IAAM,8CAA8C,GAAG,UAC5D,YAAoE;IAEpE,OAAA,mBAAY,YAAY,iCAAuB,YAAY,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,cAAW;AAA5F,CAA4F,CAAC;AAHlF,QAAA,8CAA8C,kDAGoC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-next",
|
|
3
|
-
"version": "6.13.
|
|
3
|
+
"version": "6.13.5",
|
|
4
4
|
"description": "A Next.js library for automatic internationalization.",
|
|
5
5
|
"main": "dist/index.server.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"CHANGELOG.md"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@generaltranslation/supported-locales": "2.0.
|
|
17
|
-
"@generaltranslation/compiler": "1.1.
|
|
16
|
+
"@generaltranslation/supported-locales": "2.0.47",
|
|
17
|
+
"@generaltranslation/compiler": "1.1.25",
|
|
18
18
|
"@generaltranslation/next-internal": "0.1.0",
|
|
19
|
-
"generaltranslation": "8.1.
|
|
20
|
-
"gt-react": "10.11.
|
|
21
|
-
"gt-i18n": "0.4.
|
|
19
|
+
"generaltranslation": "8.1.14",
|
|
20
|
+
"gt-react": "10.11.4",
|
|
21
|
+
"gt-i18n": "0.4.2"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|