gt-next 6.6.4-alpha.1 → 6.6.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
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# gt-next
|
|
2
2
|
|
|
3
|
+
## 6.6.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#706](https://github.com/generaltranslation/gt/pull/706) [`df39ab3`](https://github.com/generaltranslation/gt/commit/df39ab33c48096a66a7c8843aa24325504176277) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: ignore browser locale
|
|
8
|
+
|
|
9
|
+
## 6.6.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#698](https://github.com/generaltranslation/gt/pull/698) [`9eefc14`](https://github.com/generaltranslation/gt/commit/9eefc14577013fcfa699344c4a950c12d3b3350b) Thanks [@brian-lou](https://github.com/brian-lou)! - Switch monorepo package manager to pnpm (no new features or bugs fixed). Please report issues to https://github.com/generaltranslation/gt
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`9eefc14`](https://github.com/generaltranslation/gt/commit/9eefc14577013fcfa699344c4a950c12d3b3350b)]:
|
|
16
|
+
- @generaltranslation/supported-locales@2.0.14
|
|
17
|
+
- gt-react@10.6.3
|
|
18
|
+
- generaltranslation@7.6.4
|
|
19
|
+
|
|
3
20
|
## 6.6.3
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/dist/gt_swc_plugin.wasm
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNextLocale.d.ts","sourceRoot":"","sources":["../../src/next/getNextLocale.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,aAAa,EAAE,MAAM,YAAK,EAC1B,OAAO,EAAE,MAAM,EAAE,EACjB,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"getNextLocale.d.ts","sourceRoot":"","sources":["../../src/next/getNextLocale.ts"],"names":[],"mappings":"AAIA;;;;;;;;GAQG;AACH,wBAAsB,aAAa,CACjC,aAAa,EAAE,MAAM,YAAK,EAC1B,OAAO,EAAE,MAAM,EAAE,EACjB,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,CA4DjB"}
|
|
@@ -90,7 +90,8 @@ function getNextLocale() {
|
|
|
90
90
|
// preferredLocales.push(pathLocale);
|
|
91
91
|
// }
|
|
92
92
|
// Give an error here
|
|
93
|
-
if (preferredLocales.length === 0
|
|
93
|
+
if (preferredLocales.length === 0 &&
|
|
94
|
+
process.env._GENERALTRANSLATION_IGNORE_BROWSER_LOCALES === 'false') {
|
|
94
95
|
throw new Error(createErrors_1.noLocalesCouldBeDeterminedError);
|
|
95
96
|
}
|
|
96
97
|
// add defaultLocale just in case there are no matches
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNextLocale.js","sourceRoot":"","sources":["../../src/next/getNextLocale.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,
|
|
1
|
+
{"version":3,"file":"getNextLocale.js","sourceRoot":"","sources":["../../src/next/getNextLocale.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,sCAgEC;AA7ED,wCAAgD;AAChD,8EAAwD;AACxD,uDAAyE;AAEzE;;;;;;;;GAQG;AACH,SAAsB,aAAa;wDACjC,aAA0B,EAC1B,OAAiB,EACjB,eAAwB;;QAFxB,8BAAA,EAAA,kBAA0B;;;wBAIS,qBAAM,OAAO,CAAC,GAAG,CAAC,CAAC,IAAA,iBAAO,GAAE,EAAE,IAAA,iBAAO,GAAE,CAAC,CAAC,EAAA;;oBAAtE,KAA6B,SAAyC,EAArE,WAAW,QAA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CAAmC;AACnC,MAAM;AAEN,6DAA6D;AAC7D,oDAAoD;AACpD,iDAAiD;AACjD,mCAAmC;AACnC,MAAM;AAEN,iBAAiB;AACjB,IAAI"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-next",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.5",
|
|
4
4
|
"description": "A Next.js library for automatic internationalization.",
|
|
5
5
|
"main": "dist/index.server.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"CHANGELOG.md"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"generaltranslation": "
|
|
16
|
+
"generaltranslation": "7.6.4",
|
|
17
|
+
"gt-react": "10.6.3",
|
|
18
|
+
"@generaltranslation/supported-locales": "2.0.14"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"patch": "pnpm version patch",
|
|
169
169
|
"transpile": "tsc",
|
|
170
170
|
"build": "pnpm run build:swc-plugin && pnpm run transpile",
|
|
171
|
-
"build:clean": "rm -rf ./swc-plugin/target &&
|
|
171
|
+
"build:clean": "rm -rf ./swc-plugin/target && sh ../../scripts/clean.sh && pnpm run build",
|
|
172
172
|
"build:release": "pnpm run build:clean",
|
|
173
173
|
"build:swc-plugin": "cargo build --release --target wasm32-wasip1 --manifest-path ./swc-plugin/Cargo.toml && node scripts/copy-wasm.js",
|
|
174
174
|
"build:no-swc-plugin": "pnpm run transpile",
|