gt-react 2.0.195 → 2.0.196

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/dist/index.d.ts CHANGED
@@ -8,6 +8,6 @@ import GTProvider from "./client/GTProvider";
8
8
  import CurrencyVariable from "./primitives/variable/currency/CurrencyVariable";
9
9
  import DateVariable from "./primitives/variable/date/DateVariable";
10
10
  import NumberVariable from "./primitives/variable/number/NumberVariable";
11
- import dict from "./dict/dict";
12
- export { ServerI18N as I18N, intl, dict, Private, Numeric, Value, Variable, NumberVariable, DateVariable, CurrencyVariable, GTProvider };
11
+ import getDefaultLanguage from "./server/getDefaultLanguage";
12
+ export { ServerI18N as I18N, intl, getDefaultLanguage, Private, Numeric, Value, Variable, NumberVariable, DateVariable, CurrencyVariable, GTProvider };
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,QAAQ,MAAM,yCAAyC,CAAA;AAC9D,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,gBAAgB,MAAM,iDAAiD,CAAC;AAC/E,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,EACH,UAAU,IAAI,IAAI,EAClB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAAE,KAAK,EACvB,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EACxD,UAAU,EACb,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,QAAQ,MAAM,yCAAyC,CAAA;AAC9D,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAC7C,OAAO,gBAAgB,MAAM,iDAAiD,CAAC;AAC/E,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,kBAAkB,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EACH,UAAU,IAAI,IAAI,EAClB,IAAI,EACJ,kBAAkB,EAClB,OAAO,EAAE,OAAO,EAAE,KAAK,EACvB,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EACxD,UAAU,EACb,CAAC"}
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GTProvider = exports.CurrencyVariable = exports.DateVariable = exports.NumberVariable = exports.Variable = exports.Value = exports.Numeric = exports.Private = exports.dict = exports.intl = exports.I18N = void 0;
6
+ exports.GTProvider = exports.CurrencyVariable = exports.DateVariable = exports.NumberVariable = exports.Variable = exports.Value = exports.Numeric = exports.Private = exports.getDefaultLanguage = exports.intl = exports.I18N = void 0;
7
7
  const ServerI18N_1 = __importDefault(require("./server/ServerI18N"));
8
8
  exports.I18N = ServerI18N_1.default;
9
9
  const Private_1 = __importDefault(require("./primitives/private/Private"));
@@ -24,6 +24,6 @@ const DateVariable_1 = __importDefault(require("./primitives/variable/date/DateV
24
24
  exports.DateVariable = DateVariable_1.default;
25
25
  const NumberVariable_1 = __importDefault(require("./primitives/variable/number/NumberVariable"));
26
26
  exports.NumberVariable = NumberVariable_1.default;
27
- const dict_1 = __importDefault(require("./dict/dict"));
28
- exports.dict = dict_1.default;
27
+ const getDefaultLanguage_1 = __importDefault(require("./server/getDefaultLanguage"));
28
+ exports.getDefaultLanguage = getDefaultLanguage_1.default;
29
29
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qEAA6C;AAY3B,eAZX,oBAAU,CAYK;AAXtB,2EAAmD;AAa/C,kBAbG,iBAAO,CAaH;AAZX,2EAAmD;AAYtC,kBAZN,iBAAO,CAYM;AAXpB,qEAA6C;AAWvB,gBAXf,eAAK,CAWe;AAV3B,uFAA8D;AAW1D,mBAXG,kBAAQ,CAWH;AAVZ,uDAA+B;AAQ3B,eARG,cAAI,CAQH;AAPR,qEAA6C;AAUzC,qBAVG,oBAAU,CAUH;AATd,uGAA+E;AAQnC,2BARrC,0BAAgB,CAQqC;AAP5D,2FAAmE;AAOrC,uBAPvB,sBAAY,CAOuB;AAN1C,iGAAyE;AAM3D,yBANP,wBAAc,CAMO;AAL5B,uDAA+B;AAGrB,eAHH,cAAI,CAGG"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qEAA6C;AAY3B,eAZX,oBAAU,CAYK;AAXtB,2EAAmD;AAc/C,kBAdG,iBAAO,CAcH;AAbX,2EAAmD;AAatC,kBAbN,iBAAO,CAaM;AAZpB,qEAA6C;AAYvB,gBAZf,eAAK,CAYe;AAX3B,uFAA8D;AAY1D,mBAZG,kBAAQ,CAYH;AAXZ,uDAA+B;AAQ3B,eARG,cAAI,CAQH;AAPR,qEAA6C;AAWzC,qBAXG,oBAAU,CAWH;AAVd,uGAA+E;AASnC,2BATrC,0BAAgB,CASqC;AAR5D,2FAAmE;AAQrC,uBARvB,sBAAY,CAQuB;AAP1C,iGAAyE;AAO3D,yBAPP,wBAAc,CAOO;AAN5B,qFAA6D;AAIzD,6BAJG,4BAAkB,CAIH"}
@@ -1,3 +1,3 @@
1
- import createNextMiddleware, { defaultMatcher } from "./middleware/createNextMiddleware";
2
- export { createNextMiddleware, defaultMatcher };
1
+ import createNextMiddleware from "./middleware/createNextMiddleware";
2
+ export { createNextMiddleware };
3
3
  //# sourceMappingURL=middleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,EAAE,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACzF,OAAO,EACH,oBAAoB,EAAE,cAAc,EACvC,CAAC"}
1
+ {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,mCAAmC,CAAC;AACrE,OAAO,EACH,oBAAoB,EACvB,CAAC"}
@@ -1,30 +1,9 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
4
  };
25
5
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.defaultMatcher = exports.createNextMiddleware = void 0;
27
- const createNextMiddleware_1 = __importStar(require("./middleware/createNextMiddleware"));
6
+ exports.createNextMiddleware = void 0;
7
+ const createNextMiddleware_1 = __importDefault(require("./middleware/createNextMiddleware"));
28
8
  exports.createNextMiddleware = createNextMiddleware_1.default;
29
- Object.defineProperty(exports, "defaultMatcher", { enumerable: true, get: function () { return createNextMiddleware_1.defaultMatcher; } });
30
9
  //# sourceMappingURL=middleware.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0FAAyF;AAErF,+BAFG,8BAAoB,CAEH;AAAE,+FAFK,qCAAc,OAEL"}
1
+ {"version":3,"file":"middleware.js","sourceRoot":"","sources":["../src/middleware.ts"],"names":[],"mappings":";;;;;;AAAA,6FAAqE;AAEjE,+BAFG,8BAAoB,CAEH"}
@@ -39,9 +39,9 @@ function NextI18N(_a) {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  var { children } = _a, metadata = __rest(_a, ["children"]);
41
41
  // Retrieve the user's language or use the default language from the configuration if not available
42
- const userLanguage = (yield (0, requestFunctions_1.getUserLanguageNext)()) || I18NConfig_1.default.getDefaultLanguage();
42
+ const userLanguage = ((0, requestFunctions_1.getUserLanguageNext)()) || I18NConfig_1.default.getDefaultLanguage();
43
43
  // Retrieve the domain or use an empty string if not available
44
- const domain = (yield (0, requestFunctions_1.getDomainNext)()) || "";
44
+ const domain = ((0, requestFunctions_1.getDomainNext)()) || "";
45
45
  return ( /* @ts-expect-error Server Component */(0, jsx_runtime_1.jsx)(ServerI18N_1.default, Object.assign({ userLanguage: userLanguage, domain: domain }, metadata, { children: children })));
46
46
  });
47
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"NextI18N.js","sourceRoot":"","sources":["../../src/next/NextI18N.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,2BAaC;;AA7BD,yDAAwE;AACxE,sEAA8C;AAC9C,sEAA8C;AAO9C;;;;;;GAMG;AACH,SAA8B,QAAQ,CAAC,EAAwC;;YAAxC,EAAE,QAAQ,OAA8B,EAAzB,QAAQ,cAAvB,YAAyB,CAAF;QAE1D,mGAAmG;QACnG,MAAM,YAAY,GAAW,CAAC,MAAM,IAAA,sCAAmB,GAAE,CAAC,IAAI,oBAAU,CAAC,kBAAkB,EAAE,CAAC;QAE9F,8DAA8D;QAC9D,MAAM,MAAM,GAAW,CAAC,MAAM,IAAA,gCAAa,GAAE,CAAC,IAAI,EAAE,CAAC;QAErD,OAAO,EAAE,uCACL,uBAAC,oBAAU,kBAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAM,QAAQ,cAC/D,QAAQ,IACA,CAChB,CAAC;IACN,CAAC;CAAA"}
1
+ {"version":3,"file":"NextI18N.js","sourceRoot":"","sources":["../../src/next/NextI18N.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,2BAaC;;AA7BD,yDAAwE;AACxE,sEAA8C;AAC9C,sEAA8C;AAO9C;;;;;;GAMG;AACH,SAA8B,QAAQ,CAAC,EAAwC;;YAAxC,EAAE,QAAQ,OAA8B,EAAzB,QAAQ,cAAvB,YAAyB,CAAF;QAE1D,mGAAmG;QACnG,MAAM,YAAY,GAAW,CAAC,IAAA,sCAAmB,GAAE,CAAC,IAAI,oBAAU,CAAC,kBAAkB,EAAE,CAAC;QAExF,8DAA8D;QAC9D,MAAM,MAAM,GAAW,CAAC,IAAA,gCAAa,GAAE,CAAC,IAAI,EAAE,CAAC;QAE/C,OAAO,EAAE,uCACL,uBAAC,oBAAU,kBAAC,YAAY,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,IAAM,QAAQ,cAC/D,QAAQ,IACA,CAChB,CAAC;IACN,CAAC;CAAA"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Retrieves the user's current language setting.
3
+ * @returns {string} - The current ISO language code for the user or the default language code.
4
+ */
5
+ export default function getCurrentLanguage(): string;
6
+ //# sourceMappingURL=getCurrentLanguage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentLanguage.d.ts","sourceRoot":"","sources":["../../src/next/getCurrentLanguage.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,MAAM,CAInD"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = getCurrentLanguage;
7
+ const I18NConfig_1 = __importDefault(require("../config/I18NConfig"));
8
+ const requestFunctions_1 = require("./requestFunctions");
9
+ /**
10
+ * Retrieves the user's current language setting.
11
+ * @returns {string} - The current ISO language code for the user or the default language code.
12
+ */
13
+ function getCurrentLanguage() {
14
+ // Retrieve the user's language or use the default language from the configuration if not available
15
+ const currentLanguage = ((0, requestFunctions_1.getUserLanguageNext)()) || I18NConfig_1.default.getDefaultLanguage();
16
+ return currentLanguage;
17
+ }
18
+ //# sourceMappingURL=getCurrentLanguage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentLanguage.js","sourceRoot":"","sources":["../../src/next/getCurrentLanguage.ts"],"names":[],"mappings":";;;;;AAOA,qCAIC;AAXD,sEAA8C;AAC9C,yDAAyD;AAEzD;;;GAGG;AACH,SAAwB,kBAAkB;IACtC,mGAAmG;IACnG,MAAM,eAAe,GAAW,CAAC,IAAA,sCAAmB,GAAE,CAAC,IAAI,oBAAU,CAAC,kBAAkB,EAAE,CAAC;IAC3F,OAAO,eAAe,CAAC;AAC3B,CAAC"}
package/dist/next.d.ts CHANGED
@@ -8,6 +8,7 @@ import Variable from "./primitives/variable/variable/Variable";
8
8
  import CurrencyVariable from "./primitives/variable/currency/CurrencyVariable";
9
9
  import DateVariable from "./primitives/variable/date/DateVariable";
10
10
  import NumberVariable from "./primitives/variable/number/NumberVariable";
11
- import nextDict from "./next/nextDict";
12
- export { NextI18N as I18N, nextIntl as intl, nextDict as dict, NextGTProvider as GTProvider, Numeric, Value, Private, Variable, NumberVariable, DateVariable, CurrencyVariable, };
11
+ import getDefaultLanguage from "./server/getDefaultLanguage";
12
+ import getCurrentLanguage from "./next/getCurrentLanguage";
13
+ export { NextI18N as I18N, nextIntl as intl, NextGTProvider as GTProvider, getDefaultLanguage, getCurrentLanguage, Numeric, Value, Private, Variable, NumberVariable, DateVariable, CurrencyVariable, };
13
14
  //# sourceMappingURL=next.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,gBAAgB,MAAM,iDAAiD,CAAC;AAC/E,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EACH,QAAQ,IAAI,IAAI,EAChB,QAAQ,IAAI,IAAI,EAAE,QAAQ,IAAI,IAAI,EAClC,cAAc,IAAI,UAAU,EAC5B,OAAO,EAAE,KAAK,EAAE,OAAO,EACvB,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,GAE3D,CAAC"}
1
+ {"version":3,"file":"next.d.ts","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,cAAc,MAAM,uBAAuB,CAAC;AACnD,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,0BAA0B,CAAC;AAC7C,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,gBAAgB,MAAM,iDAAiD,CAAC;AAC/E,OAAO,YAAY,MAAM,yCAAyC,CAAC;AACnE,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,kBAAkB,MAAM,6BAA6B,CAAC;AAC7D,OAAO,kBAAkB,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EACH,QAAQ,IAAI,IAAI,EAChB,QAAQ,IAAI,IAAI,EAChB,cAAc,IAAI,UAAU,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,OAAO,EAAE,KAAK,EAAE,OAAO,EACvB,QAAQ,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,GAE3D,CAAC"}
package/dist/next.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.CurrencyVariable = exports.DateVariable = exports.NumberVariable = exports.Variable = exports.Private = exports.Value = exports.Numeric = exports.GTProvider = exports.dict = exports.intl = exports.I18N = void 0;
6
+ exports.CurrencyVariable = exports.DateVariable = exports.NumberVariable = exports.Variable = exports.Private = exports.Value = exports.Numeric = exports.getCurrentLanguage = exports.getDefaultLanguage = exports.GTProvider = exports.intl = exports.I18N = void 0;
7
7
  const NextI18N_1 = __importDefault(require("./next/NextI18N"));
8
8
  exports.I18N = NextI18N_1.default;
9
9
  const intl_1 = __importDefault(require("./next/intl"));
@@ -24,6 +24,8 @@ const DateVariable_1 = __importDefault(require("./primitives/variable/date/DateV
24
24
  exports.DateVariable = DateVariable_1.default;
25
25
  const NumberVariable_1 = __importDefault(require("./primitives/variable/number/NumberVariable"));
26
26
  exports.NumberVariable = NumberVariable_1.default;
27
- const nextDict_1 = __importDefault(require("./next/nextDict"));
28
- exports.dict = nextDict_1.default;
27
+ const getDefaultLanguage_1 = __importDefault(require("./server/getDefaultLanguage"));
28
+ exports.getDefaultLanguage = getDefaultLanguage_1.default;
29
+ const getCurrentLanguage_1 = __importDefault(require("./next/getCurrentLanguage"));
30
+ exports.getCurrentLanguage = getCurrentLanguage_1.default;
29
31
  //# sourceMappingURL=next.js.map
package/dist/next.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAuC;AAavB,eAbT,kBAAQ,CAaK;AAZpB,uDAAmC;AAanB,eAbT,cAAQ,CAaK;AAZpB,2EAAmD;AAa7B,qBAbf,wBAAc,CAaW;AAZhC,2EAAmD;AAa/C,kBAbG,iBAAO,CAaH;AAZX,qEAA6C;AAYhC,gBAZN,eAAK,CAYM;AAXlB,2EAAmD;AAW/B,kBAXb,iBAAO,CAWa;AAV3B,uFAA+D;AAW3D,mBAXG,kBAAQ,CAWH;AAVZ,uGAA+E;AAUnC,2BAVrC,0BAAgB,CAUqC;AAT5D,2FAAmE;AASrC,uBATvB,sBAAY,CASuB;AAR1C,iGAAyE;AAQ3D,yBARP,wBAAc,CAQO;AAP5B,+DAAuC;AAIL,eAJ3B,kBAAQ,CAIuB"}
1
+ {"version":3,"file":"next.js","sourceRoot":"","sources":["../src/next.ts"],"names":[],"mappings":";;;;;;AAAA,+DAAuC;AAavB,eAbT,kBAAQ,CAaK;AAZpB,uDAAmC;AAanB,eAbT,cAAQ,CAaK;AAZpB,2EAAmD;AAa7B,qBAbf,wBAAc,CAaW;AAZhC,2EAAmD;AAc/C,kBAdG,iBAAO,CAcH;AAbX,qEAA6C;AAahC,gBAbN,eAAK,CAaM;AAZlB,2EAAmD;AAY/B,kBAZb,iBAAO,CAYa;AAX3B,uFAA+D;AAY3D,mBAZG,kBAAQ,CAYH;AAXZ,uGAA+E;AAWnC,2BAXrC,0BAAgB,CAWqC;AAV5D,2FAAmE;AAUrC,uBAVvB,sBAAY,CAUuB;AAT1C,iGAAyE;AAS3D,yBATP,wBAAc,CASO;AAR5B,qFAA6D;AAMzD,6BANG,4BAAkB,CAMH;AALtB,mFAA2D;AAKnC,6BALjB,4BAAkB,CAKiB"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @returns {string} The default ISO language code as specified in gt_config.
3
+ */
4
+ export default function getDefaultLanguage(): string;
5
+ //# sourceMappingURL=getDefaultLanguage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultLanguage.d.ts","sourceRoot":"","sources":["../../src/server/getDefaultLanguage.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,IAAI,MAAM,CAEnD"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.default = getDefaultLanguage;
7
+ const I18NConfig_1 = __importDefault(require("../config/I18NConfig"));
8
+ /**
9
+ * @returns {string} The default ISO language code as specified in gt_config.
10
+ */
11
+ function getDefaultLanguage() {
12
+ return I18NConfig_1.default.getDefaultLanguage();
13
+ }
14
+ //# sourceMappingURL=getDefaultLanguage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDefaultLanguage.js","sourceRoot":"","sources":["../../src/server/getDefaultLanguage.ts"],"names":[],"mappings":";;;;;AAKA,qCAEC;AAPD,sEAA8C;AAE9C;;GAEG;AACH,SAAwB,kBAAkB;IACtC,OAAO,oBAAU,CAAC,kBAAkB,EAAE,CAAC;AAC3C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "2.0.195",
3
+ "version": "2.0.196",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",