gt-react 2.0.180 → 2.0.182
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":"requestFunctions.d.ts","sourceRoot":"","sources":["../../src/next/requestFunctions.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"requestFunctions.d.ts","sourceRoot":"","sources":["../../src/next/requestFunctions.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,MAAM,CAAC,CAiB3D;AAED;;;;;;;;GAQG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAK5D"}
|
|
@@ -28,13 +28,17 @@ const imports_1 = require("./imports/imports");
|
|
|
28
28
|
function getUserLanguageNext() {
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
var _a;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
try {
|
|
32
|
+
const cookies = yield (0, imports_1.getNextCookies)();
|
|
33
|
+
if (cookies) {
|
|
34
|
+
const cookieStore = cookies();
|
|
35
|
+
const userLanguageCookie = cookieStore.get('generaltranslation-userlanguage');
|
|
36
|
+
if (userLanguageCookie === null || userLanguageCookie === void 0 ? void 0 : userLanguageCookie.value)
|
|
37
|
+
return userLanguageCookie.value;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
console.warn(error);
|
|
38
42
|
}
|
|
39
43
|
const headers = yield (0, imports_1.getNextHeaders)();
|
|
40
44
|
if (!headers)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestFunctions.js","sourceRoot":"","sources":["../../src/next/requestFunctions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAYA,
|
|
1
|
+
{"version":3,"file":"requestFunctions.js","sourceRoot":"","sources":["../../src/next/requestFunctions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAYA,kDAiBC;AAWD,sCAKC;AA7CD,sEAA8C;AAC9C,+CAAmE;AAEnE;;;;;;;;GAQG;AACH,SAAsB,mBAAmB;;;QACrC,IAAI,CAAC;YACD,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAc,GAAE,CAAC;YACvC,IAAI,OAAO,EAAE,CAAC;gBACV,MAAM,WAAW,GAAG,OAAO,EAAE,CAAC;gBAC9B,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;gBAC9E,IAAI,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,KAAK;oBAAE,OAAO,kBAAkB,CAAC,KAAK,CAAC;YACnE,CAAC;QACL,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACxB,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAc,GAAE,CAAC;QACvC,IAAI,CAAC,OAAO;YAAE,OAAO,oBAAU,CAAC,kBAAkB,EAAE,CAAC;QACrD,MAAM,UAAU,GAAG,OAAO,EAAE,CAAC;QAC7B,MAAM,iBAAiB,GAAG,MAAA,UAAU,CAAC,GAAG,CAAC,iBAAiB,CAAC,0CAAE,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE,WAAC,OAAA,MAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,0CAAG,CAAC,EAAE,IAAI,EAAE,CAAA,EAAA,CAAC,CAAC;QACjH,MAAM,YAAY,GAAG,oBAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,CAAC;QACnE,OAAO,YAAY,CAAC;IACxB,CAAC;CAAA;AAED;;;;;;;;GAQG;AACH,SAAsB,aAAa;;QAC/B,MAAM,OAAO,GAAG,MAAM,IAAA,wBAAc,GAAE,CAAC;QACvC,IAAI,CAAC,OAAO;YAAE,OAAO,IAAI,CAAC;QAC1B,MAAM,UAAU,GAAG,OAAO,EAAE,CAAC;QAC7B,OAAO,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC;IAC1C,CAAC;CAAA"}
|