gt-next 6.0.9 → 6.0.11
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,23 @@
|
|
|
1
1
|
# gt-next
|
|
2
2
|
|
|
3
|
+
## 6.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#537](https://github.com/generaltranslation/gt/pull/537) [`2c690df`](https://github.com/generaltranslation/gt/commit/2c690dfcd47498133c8be2235da342ae684f7663) Thanks [@SamEggert](https://github.com/SamEggert)! - Update branch prop type to accept strings, numbers, and booleans
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`2c690df`](https://github.com/generaltranslation/gt/commit/2c690dfcd47498133c8be2235da342ae684f7663)]:
|
|
10
|
+
- gt-react@10.0.9
|
|
11
|
+
|
|
12
|
+
## 6.0.10
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#529](https://github.com/generaltranslation/gt/pull/529) [`c77c83d`](https://github.com/generaltranslation/gt/commit/c77c83d33237c72ef13c6b6762b99ba150773de1) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - fix: use gt client side
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [[`c77c83d`](https://github.com/generaltranslation/gt/commit/c77c83d33237c72ef13c6b6762b99ba150773de1)]:
|
|
19
|
+
- gt-react@10.0.8
|
|
20
|
+
|
|
3
21
|
## 6.0.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"Branch.d.ts","sourceRoot":"","sources":["../../src/branches/Branch.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,iBAAS,MAAM,CAAC,EACd,QAAQ,EACR,MAAM,EACN,GAAG,QAAQ,EACZ,EAAE;IACD,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAQpB;kBAhBQ,MAAM;;;AAmBf,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GTProvider.d.ts","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GTProvider.d.ts","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,wBAA8B,UAAU,CAAC,EACvC,QAAQ,EACR,EAAE,EAAE,QAAQ,EACZ,MAAM,EAAE,OAAO,GAChB,EAAE,eAAe,oDAwEjB"}
|
|
@@ -94,7 +94,7 @@ var createErrors_1 = require("../errors/createErrors");
|
|
|
94
94
|
var ClientProviderWrapper_1 = __importDefault(require("./ClientProviderWrapper"));
|
|
95
95
|
function GTProvider(_a) {
|
|
96
96
|
return __awaiter(this, arguments, void 0, function (_b) {
|
|
97
|
-
var I18NConfig, locale, _c, defaultLocale, _d, translationRequired, dialectTranslationRequired, dictionaryTranslations, cachedTranslationsPromise, dictionary, _e, prefixPath, translations;
|
|
97
|
+
var I18NConfig, locale, _c, defaultLocale, _d, translationRequired, dialectTranslationRequired, dictionaryTranslations, cachedTranslationsPromise, dictionary, _e, prefixPath, translations, translationsStatus;
|
|
98
98
|
var children = _b.children, prefixId = _b.id, _locale = _b.locale;
|
|
99
99
|
return __generator(this, function (_f) {
|
|
100
100
|
switch (_f.label) {
|
|
@@ -145,7 +145,10 @@ function GTProvider(_a) {
|
|
|
145
145
|
return [4 /*yield*/, cachedTranslationsPromise];
|
|
146
146
|
case 7:
|
|
147
147
|
translations = _f.sent();
|
|
148
|
-
|
|
148
|
+
translationsStatus = translationRequired
|
|
149
|
+
? I18NConfig.getCachedTranslationsStatus(locale)
|
|
150
|
+
: {};
|
|
151
|
+
return [2 /*return*/, ((0, jsx_runtime_1.jsx)(ClientProviderWrapper_1.default, __assign({ dictionary: dictionary, initialTranslations: translations, initialTranslationsStatus: translationsStatus, locale: locale, locales: I18NConfig.getLocales(), defaultLocale: defaultLocale, translationRequired: translationRequired, dialectTranslationRequired: dialectTranslationRequired, gtServicesEnabled: process.env._GENERALTRANSLATION_GT_SERVICES_ENABLED === 'true' }, I18NConfig.getClientSideConfig(), { children: children })))];
|
|
149
152
|
}
|
|
150
153
|
});
|
|
151
154
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GTProvider.js","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GTProvider.js","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,6BA4EC;;AA1FD,8CAI2B;AAC3B,+BAAuC;AACvC,8EAAwD;AACxD,kDAAiD;AACjD,2EAAgF;AAEhF,uDAAqE;AACrE,kFAAqD;AAGrD,SAA8B,UAAU;wDAAC,EAIvB;;YAHhB,QAAQ,cAAA,E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AAE,CAAC;wBACjD,UAAU,GAAG,UAAU,CAAC,MAAM,CAAa,UAAC,GAAG,EAAE,MAAM;;4BACrD,gBAAS,GAAC,MAAM,IAAG,GAAG,KAAG;wBAC3B,CAAC,EAAE,UAAwB,CAAC,CAAC;oBAC/B,CAAC;oBAED,gDAAgD;oBAChD,UAAU,GAAG,IAAA,4BAAiB,EAAC,UAAU,EAAE,sBAAsB,CAAC,CAAC;oBAG9C,qBAAM,yBAAyB,EAAA;;oBAA9C,YAAY,GAAG,SAA+B;oBAC9C,kBAAkB,GAAuB,mBAAmB;wBAChE,CAAC,CAAC,UAAU,CAAC,2BAA2B,CAAC,MAAM,CAAC;wBAChD,CAAC,CAAE,EAAU,CAAC;oBAEhB,sBAAO,CACL,uBAAC,+BAAc,aACb,UAAU,EAAE,UAAU,EACtB,mBAAmB,EAAE,YAAY,EACjC,yBAAyB,EAAE,kBAAkB,EAC7C,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,UAAU,CAAC,UAAU,EAAE,EAChC,aAAa,EAAE,aAAa,EAC5B,mBAAmB,EAAE,mBAAmB,EACxC,0BAA0B,EAAE,0BAA0B,EACtD,iBAAiB,EACf,OAAO,CAAC,GAAG,CAAC,uCAAuC,KAAK,MAAM,IAE5D,UAAU,CAAC,mBAAmB,EAAE,cAEnC,QAAQ,IACM,CAClB,EAAC;;;;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-next",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.11",
|
|
4
4
|
"description": "A Next.js library for automatic internationalization.",
|
|
5
5
|
"main": "dist/index.server.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@generaltranslation/supported-locales": "^2.0.13",
|
|
17
17
|
"generaltranslation": "^7.1.1",
|
|
18
|
-
"gt-react": "^10.0.
|
|
18
|
+
"gt-react": "^10.0.9"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"patch": "npm version patch",
|