gt-next 6.7.7 → 6.7.8
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 +7 -0
- package/dist/errors/createErrors.d.ts +1 -1
- package/dist/errors/createErrors.d.ts.map +1 -1
- package/dist/errors/createErrors.js +3 -2
- package/dist/errors/createErrors.js.map +1 -1
- package/dist/next/getNextLocale.js +1 -1
- package/dist/next/getNextLocale.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# gt-next
|
|
2
2
|
|
|
3
|
+
## 6.7.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#749](https://github.com/generaltranslation/gt/pull/749) [`29d202f`](https://github.com/generaltranslation/gt/commit/29d202f3b674c77310df687deb8e9d8778499c3e) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: erroring when no locale headers were provided
|
|
8
|
+
Thank you to [@bgub](https://github.com/bgub) for pointing this out!
|
|
9
|
+
|
|
3
10
|
## 6.7.7
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const noLocalesCouldBeDeterminedError = "gt-next: Error: no locales could be determined for this request. If you are using SSG, make sure to follow set up instructions here: https://generaltranslation.com/en/docs/next/guides/ssg#ssg-custom-get-locale";
|
|
2
1
|
export declare const remoteTranslationsError = "gt-next Error: fetching remote translation.";
|
|
3
2
|
export declare const customLoadTranslationsError: (locale?: string) => string;
|
|
4
3
|
export declare const customLoadDictionaryWarning: (locale?: string) => string;
|
|
@@ -43,6 +42,7 @@ export declare const dictionaryNotFoundWarning = "gt-next: Dictionary not found.
|
|
|
43
42
|
export declare const standardizedLocalesWarning: (locales: string[]) => string;
|
|
44
43
|
export declare const standardizedCanonicalLocalesWarning: (locales: string[]) => string;
|
|
45
44
|
export declare const deprecatedLocaleMappingWarning = "gt-next: You are using the deprecated localeMapping configuration. Please move \"customMapping\" to your gt.config.json file.";
|
|
45
|
+
export declare const noLocalesCouldBeDeterminedWarning = "gt-next: no locales could be determined for this request. If you are using SSG, make sure to follow set up instructions here: https://generaltranslation.com/en/docs/next/guides/ssg#ssg-custom-get-locale";
|
|
46
46
|
export declare const createGTCompilerUnresolvedWarning: (type: "babel" | "swc") => string;
|
|
47
47
|
export declare const createGTCompilerUnavailableWarning: (type: "babel" | "swc") => "gt-next (plugin): The GT swc compiler is compatible with < next@15.2.0. Skipping compiler optimizations." | "gt-next (plugin): The GT babel compiler is compatible with turbopack or < react@17.0.0. Skipping compiler optimizations.";
|
|
48
48
|
export declare const disablingCompileTimeHashWarning = "gt-next (plugin): You are disabling compile time hash. This will disable the compiler optimizations.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createErrors.d.ts","sourceRoot":"","sources":["../../src/errors/createErrors.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM
|
|
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,WACyF,CAAC;AAEzJ,eAAO,MAAM,2BAA2B,GAAI,SAAQ,MAAW,WACmG,CAAC;AAEnK,eAAO,MAAM,gCAAgC,GAAI,OAAO,KAAK,WACM,CAAC;AAEpE,eAAO,MAAM,iCAAiC,GAAI,OAAO,KAAK,WACM,CAAC;AAErE,eAAO,MAAM,4BAA4B,GACvC,QAAQ,MAAM,EACd,KAAK,MAAM,EACX,qBAAmB,WAIa,CAAC;AAEnC,eAAO,MAAM,gCAAgC,GAAI,IAAI,MAAM,WACuB,CAAC;AAEnF,eAAO,MAAM,yBAAyB,GAAI,IAAI,MAAM,EAAE,gBAAgB,MAAM,WACsJ,CAAC;AAEnO,eAAO,MAAM,kCAAkC,6KAA6K,CAAC;A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AAM,4BAA4B,GACvC,cAAc,MAAM,EACpB,cAAc,MAAM,WAE2L,CAAC;AAElN,eAAO,MAAM,oBAAoB,qMAAqM,CAAC;AAEvO,eAAO,MAAM,YAAY,QAIoE,CAAC;AAE9F,eAAO,MAAM,iBAAiB,QAGqF,CAAC;AAEpH,eAAO,MAAM,+BAA+B,GAAI,8BAI7C;IACD,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,WAK8E,CAAC;AAEhF,eAAO,MAAM,gCAAgC,4CAA4C,CAAC;AAE1F,eAAO,MAAM,yBAAyB,uLAAuL,CAAC;AAE9N,eAAO,MAAM,0BAA0B,GAAI,SAAS,MAAM,EAAE,WAC8B,CAAC;AAE3F,eAAO,MAAM,mCAAmC,GAAI,SAAS,MAAM,EAAE,WAC+B,CAAC;AAErG,eAAO,MAAM,8BAA8B,kIAAgI,CAAC;AAG5K,eAAO,MAAM,iCAAiC,+MACgK,CAAC;AAE/M,eAAO,MAAM,iCAAiC,GAAI,MAAM,OAAO,GAAG,KAAK,WAC8B,CAAC;AAEtG,eAAO,MAAM,kCAAkC,GAAI,MAAM,OAAO,GAAG,KAAK,4OAGyE,CAAC;AAElJ,eAAO,MAAM,+BAA+B,yGAAyG,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// ---- ERRORS ---- //
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.disablingCompileTimeHashWarning = exports.createGTCompilerUnavailableWarning = exports.createGTCompilerUnresolvedWarning = exports.deprecatedLocaleMappingWarning = exports.standardizedCanonicalLocalesWarning = exports.standardizedLocalesWarning = exports.dictionaryNotFoundWarning = exports.runtimeTranslationTimeoutWarning = exports.createTranslationLoadingWarning = exports.APIKeyMissingWarn = exports.noInitGTWarn = exports.projectIdMissingWarn = exports.createMismatchingHashWarning = exports.createUnsupportedLocalesWarning = exports.createInvalidDictionaryTranslationEntryWarning = exports.createInvalidDictionaryEntryWarning = exports.createNoEntryFoundWarning = exports.usingDefaultsWarning = exports.createBadFilepathWarning = exports.invalidCanonicalLocalesError = exports.invalidLocalesError = exports.createStringRenderError = exports.missingVariablesError = exports.txUseClientError = exports.gtProviderUseClientError = exports.typesFileError = exports.conflictingConfigurationBuildError = exports.unresolvedGetLocaleBuildError = exports.unresolvedLoadTranslationsBuildError = exports.unresolvedLoadDictionaryBuildError = exports.unresolvedCustomLoadTranslationsError = exports.unresolvedCustomLoadDictionaryError = exports.dictionaryDisabledError = exports.createDictionarySubsetError = exports.devApiKeyIncludedInProductionError = exports.createRequiredPrefixError = exports.createDictionaryTranslationError = exports.createStringTranslationError = exports.createUnresolvedReactVersionError = exports.createUnresolvedNextVersionError = exports.customLoadDictionaryWarning = exports.customLoadTranslationsError = exports.remoteTranslationsError =
|
|
4
|
+
exports.disablingCompileTimeHashWarning = exports.createGTCompilerUnavailableWarning = exports.createGTCompilerUnresolvedWarning = exports.noLocalesCouldBeDeterminedWarning = exports.deprecatedLocaleMappingWarning = exports.standardizedCanonicalLocalesWarning = exports.standardizedLocalesWarning = exports.dictionaryNotFoundWarning = exports.runtimeTranslationTimeoutWarning = exports.createTranslationLoadingWarning = exports.APIKeyMissingWarn = exports.noInitGTWarn = exports.projectIdMissingWarn = exports.createMismatchingHashWarning = exports.createUnsupportedLocalesWarning = exports.createInvalidDictionaryTranslationEntryWarning = exports.createInvalidDictionaryEntryWarning = exports.createNoEntryFoundWarning = exports.usingDefaultsWarning = exports.createBadFilepathWarning = exports.invalidCanonicalLocalesError = exports.invalidLocalesError = exports.createStringRenderError = exports.missingVariablesError = exports.txUseClientError = exports.gtProviderUseClientError = exports.typesFileError = exports.conflictingConfigurationBuildError = exports.unresolvedGetLocaleBuildError = exports.unresolvedLoadTranslationsBuildError = exports.unresolvedLoadDictionaryBuildError = exports.unresolvedCustomLoadTranslationsError = exports.unresolvedCustomLoadDictionaryError = exports.dictionaryDisabledError = exports.createDictionarySubsetError = exports.devApiKeyIncludedInProductionError = exports.createRequiredPrefixError = exports.createDictionaryTranslationError = exports.createStringTranslationError = exports.createUnresolvedReactVersionError = exports.createUnresolvedNextVersionError = exports.customLoadDictionaryWarning = exports.customLoadTranslationsError = exports.remoteTranslationsError = void 0;
|
|
5
5
|
var generaltranslation_1 = require("generaltranslation");
|
|
6
6
|
var constants_1 = require("../plugin/constants");
|
|
7
|
-
exports.noLocalesCouldBeDeterminedError = 'gt-next: Error: no locales could be determined for this request. If you are using SSG, make sure to follow set up instructions here: https://generaltranslation.com/en/docs/next/guides/ssg#ssg-custom-get-locale';
|
|
8
7
|
exports.remoteTranslationsError = 'gt-next Error: fetching remote translation.';
|
|
9
8
|
var customLoadTranslationsError = function (locale) {
|
|
10
9
|
if (locale === void 0) { locale = ''; }
|
|
@@ -145,6 +144,8 @@ var standardizedCanonicalLocalesWarning = function (locales) {
|
|
|
145
144
|
};
|
|
146
145
|
exports.standardizedCanonicalLocalesWarning = standardizedCanonicalLocalesWarning;
|
|
147
146
|
exports.deprecatedLocaleMappingWarning = "gt-next: You are using the deprecated localeMapping configuration. Please move \"customMapping\" to your gt.config.json file.";
|
|
147
|
+
// This was (1) triggered by SSG without running middleware, or (2) triggered by a request with no locale headers (also no middleware).
|
|
148
|
+
exports.noLocalesCouldBeDeterminedWarning = 'gt-next: no locales could be determined for this request. If you are using SSG, make sure to follow set up instructions here: https://generaltranslation.com/en/docs/next/guides/ssg#ssg-custom-get-locale';
|
|
148
149
|
var createGTCompilerUnresolvedWarning = function (type) {
|
|
149
150
|
return "gt-next (plugin): The GT ".concat(type, " compiler could not be resolved. Skipping compiler optimizations.");
|
|
150
151
|
};
|
|
@@ -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
|
|
1
|
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BACoD;AAEpF,IAAM,mCAAmC,GAAG,UAAC,OAAiB;IACnE,OAAA,oFAA6E,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,MAAG;AAAlG,CAAkG,CAAC;AADxF,QAAA,mCAAmC,uCACqD;AAExF,QAAA,8BAA8B,GAAG,+HAA6H,CAAC;AAE5K,uIAAuI;AAC1H,QAAA,iCAAiC,GAC5C,4MAA4M,CAAC;AAExM,IAAM,iCAAiC,GAAG,UAAC,IAAqB;IACrE,OAAA,mCAA4B,IAAI,sEAAmE;AAAnG,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,sGAAsG,CAAC"}
|
|
@@ -92,7 +92,7 @@ function getNextLocale() {
|
|
|
92
92
|
// Give an error here
|
|
93
93
|
if (preferredLocales.length === 0 &&
|
|
94
94
|
process.env._GENERALTRANSLATION_IGNORE_BROWSER_LOCALES === 'false') {
|
|
95
|
-
|
|
95
|
+
console.warn(createErrors_1.noLocalesCouldBeDeterminedWarning);
|
|
96
96
|
}
|
|
97
97
|
// add defaultLocale just in case there are no matches
|
|
98
98
|
preferredLocales.push(defaultLocale);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNextLocale.js","sourceRoot":"","sources":["../../src/next/getNextLocale.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,sCAgEC;AA7ED,wCAAgD;AAChD,8EAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"getNextLocale.js","sourceRoot":"","sources":["../../src/next/getNextLocale.ts"],"names":[],"mappings":";;;;;;;;;;;;;;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