gt-react 2.0.122 → 2.0.127
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerI18N.d.ts","sourceRoot":"","sources":["../../src/server/ServerI18N.tsx"],"names":[],"mappings":"AASA,KAAK,eAAe,GAAG;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAA8B,UAAU,CAAC,EACrC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"ServerI18N.d.ts","sourceRoot":"","sources":["../../src/server/ServerI18N.tsx"],"names":[],"mappings":"AASA,KAAK,eAAe,GAAG;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAA;AAED;;;;;;;;GAQG;AACH,wBAA8B,UAAU,CAAC,EACrC,QAAQ,EAAE,YAA8C,EAAE,GAAG,KAAK,EACrE,EAAE,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CA+DhC"}
|
|
@@ -42,7 +42,7 @@ const I18NResolver_1 = __importDefault(require("./resolvers/I18NResolver"));
|
|
|
42
42
|
*/
|
|
43
43
|
function ServerI18N(_a) {
|
|
44
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
var { children, userLanguage } = _a, props = __rest(_a, ["children", "userLanguage"]);
|
|
45
|
+
var { children, userLanguage = I18NConfig_1.default.getDefaultLanguage() } = _a, props = __rest(_a, ["children", "userLanguage"]);
|
|
46
46
|
// Handle case where translation is not required, for example if the user's browser is in the defaultLanguage
|
|
47
47
|
const translationRequired = (children && I18NConfig_1.default.translationRequired(userLanguage)) ? true : false;
|
|
48
48
|
if (!translationRequired) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerI18N.js","sourceRoot":"","sources":["../../src/server/ServerI18N.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,6BAiEC;;AAxFD,sEAA8C;AAC9C,sFAA2D;AAC3D,oGAAyE;AACzE,gFAAqD;AACrD,sEAA8C;AAC9C,4EAAoD;AASpD;;;;;;;;GAQG;AACH,SAA8B,UAAU,CAAC,EAEvB;;YAFuB,EACrC,QAAQ,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"ServerI18N.js","sourceRoot":"","sources":["../../src/server/ServerI18N.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyBA,6BAiEC;;AAxFD,sEAA8C;AAC9C,sFAA2D;AAC3D,oGAAyE;AACzE,gFAAqD;AACrD,sEAA8C;AAC9C,4EAAoD;AASpD;;;;;;;;GAQG;AACH,SAA8B,UAAU,CAAC,EAEvB;;YAFuB,EACrC,QAAQ,EAAE,YAAY,GAAG,oBAAU,CAAC,kBAAkB,EAAE,OAC1C,EAD+C,KAAK,cAD7B,4BAExC,CADqE;QAGlE,6GAA6G;QAC7G,MAAM,mBAAmB,GAAY,CAAC,QAAQ,IAAI,oBAAU,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;QAC/G,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACvB,OAAO,CACH,2DACK,QAAQ,GACV,CACN,CAAA;QACL,CAAC;QAED,MAAM,cAAc,GAAG,IAAA,4BAAe,EAAC,QAAQ,CAAC,CAAC;QACjD,MAAM,iBAAiB,GAAG,IAAA,mCAAsB,EAAC,cAAc,CAAC,CAAC;QACjE,MAAM,IAAI,GAAW,MAAM,IAAA,yBAAY,EAAC,iBAAiB,CAAC,CAAC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|
+
"version": "2.0.127",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/general-translation/
|
|
17
|
+
"url": "git+https://github.com/general-translation/gt-react.git"
|
|
18
18
|
},
|
|
19
19
|
"author": "General Translation, Inc.",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"bugs": {
|
|
22
|
-
"url": "https://github.com/general-translation/
|
|
22
|
+
"url": "https://github.com/general-translation/gt-react/issues"
|
|
23
23
|
},
|
|
24
|
-
"homepage": "https://github.com/general-translation/
|
|
24
|
+
"homepage": "https://github.com/general-translation/gt-react#readme",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^20.14.9",
|
|
27
27
|
"@types/react": "^18.3.3",
|