gt-next 5.1.1 → 5.1.2

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/client.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { useGT, useDefaultLocale, useLocale, LocaleSelector } from 'gt-react/client';
2
- export { useGT, useDefaultLocale, useLocale, LocaleSelector };
1
+ import { useGT, useDefaultLocale, useLocale, LocaleSelector, GTProvider } from 'gt-react/client';
2
+ export { GTProvider as GTClientProvider, useGT, useDefaultLocale, useLocale, LocaleSelector, };
3
3
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,cAAc,EACf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,UAAU,IAAI,gBAAgB,EAC9B,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,cAAc,GACf,CAAC"}
package/dist/client.js CHANGED
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocaleSelector = exports.useLocale = exports.useDefaultLocale = exports.useGT = void 0;
3
+ exports.LocaleSelector = exports.useLocale = exports.useDefaultLocale = exports.useGT = exports.GTClientProvider = void 0;
4
4
  var client_1 = require("gt-react/client");
5
5
  Object.defineProperty(exports, "useGT", { enumerable: true, get: function () { return client_1.useGT; } });
6
6
  Object.defineProperty(exports, "useDefaultLocale", { enumerable: true, get: function () { return client_1.useDefaultLocale; } });
7
7
  Object.defineProperty(exports, "useLocale", { enumerable: true, get: function () { return client_1.useLocale; } });
8
8
  Object.defineProperty(exports, "LocaleSelector", { enumerable: true, get: function () { return client_1.LocaleSelector; } });
9
+ Object.defineProperty(exports, "GTClientProvider", { enumerable: true, get: function () { return client_1.GTProvider; } });
9
10
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;AAAA,0CAKyB;AAEhB,sFANP,cAAK,OAMO;AAAE,iGALd,yBAAgB,OAKc;AAAE,0FAJhC,kBAAS,OAIgC;AAAE,+FAH3C,uBAAc,OAG2C"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;AAAA,0CAMyB;AAIvB,sFATA,cAAK,OASA;AACL,iGATA,yBAAgB,OASA;AAChB,0FATA,kBAAS,OASA;AACT,+FATA,uBAAc,OASA;AAJA,iGAJd,mBAAU,OAIoB"}
@@ -6,13 +6,13 @@ export declare const createRequiredPrefixError: (id: string, requiredPrefix: str
6
6
  export declare const devApiKeyIncludedInProductionError = "gt-next Error: You are attempting a production using a development API key. Replace this API key with a production API key when you build your app for production.";
7
7
  export declare const createDictionarySubsetError: (id: string, functionName: string) => string;
8
8
  export declare const createMissingCustomTranslationLoadedError: (customLoadTranslationPath: string | undefined) => string;
9
- export declare const dictionaryDisabledError = "gt-next Error: You are trying to use a dictionary, but you have not added the initGT() plugin to your app. You must add initGT() to use dictionaries. For more information, visit generaltranslation.com/docs";
9
+ export declare const dictionaryDisabledError = "gt-next Error: You are trying to use a dictionary, but you have not added the withGTConfig() plugin to your app. You must add withGTConfig() to use dictionaries. For more information, visit generaltranslation.com/docs";
10
10
  export declare const unresolvedCustomLoadTranslationError = "gt-next Error: Custom translation loader could not be resolved. This usually means that the file was found, but the translation loader function itself was not exported.";
11
11
  export declare const usingDefaultsWarning = "gt-next: Unable to access gt-next configuration. Using defaults.";
12
12
  export declare const createNoEntryWarning: (id: string) => string;
13
13
  export declare const createUnsupportedLocalesWarning: (locales: string[]) => string;
14
14
  export declare const createMismatchingHashWarning: (expectedHash: string, receivedHash: string) => string;
15
- export declare const projectIdMissingWarn = "gt-next: Project ID missing! Set projectId as GT_PROJECT_ID in your environment or by passing the projectId parameter to initGT(). Find your project ID: generaltranslation.com/dashboard.";
15
+ export declare const projectIdMissingWarn = "gt-next: Project ID missing! Set projectId as GT_PROJECT_ID in your environment or by passing the projectId parameter to withGTConfig(). Find your project ID: generaltranslation.com/dashboard.";
16
16
  export declare const noInitGTWarn: string;
17
17
  export declare const APIKeyMissingWarn: string;
18
18
  //# sourceMappingURL=createErrors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createErrors.d.ts","sourceRoot":"","sources":["../../src/errors/createErrors.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,gDACW,CAAC;AAEhD,eAAO,MAAM,0BAA0B,6IACqG,CAAC;AAE7I,eAAO,MAAM,4BAA4B,YAAa,MAAM,OAAO,MAAM,WAG7D,CAAC;AAEb,eAAO,MAAM,sCAAsC,OAAQ,MAAM,WAC8B,CAAC;AAEhG,eAAO,MAAM,yBAAyB,OAAQ,MAAM,kBAAkB,MAAM,WACsJ,CAAC;AAEnO,eAAO,MAAM,kCAAkC,uKAAuK,CAAC;AAEvN,eAAO,MAAM,2BAA2B,OAAQ,MAAM,gBAAgB,MAAM,WAC2G,CAAC;AAExL,eAAO,MAAM,yCAAyC,8BACzB,MAAM,GAAG,SAAS,WAIkH,CAAC;AAElK,eAAO,MAAM,uBAAuB,kNAAkN,CAAC;AAEvP,eAAO,MAAM,oCAAoC,6KAA6K,CAAC;AAI/N,eAAO,MAAM,oBAAoB,qEACmC,CAAC;AAErE,eAAO,MAAM,oBAAoB,OAAQ,MAAM,WACO,CAAC;AAEvD,eAAO,MAAM,+BAA+B,YAAa,MAAM,EAAE,WAMhD,CAAC;AAElB,eAAO,MAAM,4BAA4B,iBACzB,MAAM,gBACN,MAAM,WAE2L,CAAC;AAElN,eAAO,MAAM,oBAAoB,+LAA+L,CAAC;AAEjO,eAAO,MAAM,YAAY,QAIoE,CAAC;AAE9F,eAAO,MAAM,iBAAiB,QAGqF,CAAC"}
1
+ {"version":3,"file":"createErrors.d.ts","sourceRoot":"","sources":["../../src/errors/createErrors.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,gDACW,CAAC;AAEhD,eAAO,MAAM,0BAA0B,6IACqG,CAAC;AAE7I,eAAO,MAAM,4BAA4B,YAAa,MAAM,OAAO,MAAM,WAG7D,CAAC;AAEb,eAAO,MAAM,sCAAsC,OAAQ,MAAM,WAC8B,CAAC;AAEhG,eAAO,MAAM,yBAAyB,OAAQ,MAAM,kBAAkB,MAAM,WACsJ,CAAC;AAEnO,eAAO,MAAM,kCAAkC,uKAAuK,CAAC;AAEvN,eAAO,MAAM,2BAA2B,OAAQ,MAAM,gBAAgB,MAAM,WAC2G,CAAC;AAExL,eAAO,MAAM,yCAAyC,8BACzB,MAAM,GAAG,SAAS,WAIkH,CAAC;AAElK,eAAO,MAAM,uBAAuB,8NAA8N,CAAC;AAEnQ,eAAO,MAAM,oCAAoC,6KAA6K,CAAC;AAI/N,eAAO,MAAM,oBAAoB,qEACmC,CAAC;AAErE,eAAO,MAAM,oBAAoB,OAAQ,MAAM,WACO,CAAC;AAEvD,eAAO,MAAM,+BAA+B,YAAa,MAAM,EAAE,WAMhD,CAAC;AAElB,eAAO,MAAM,4BAA4B,iBACzB,MAAM,gBACN,MAAM,WAE2L,CAAC;AAElN,eAAO,MAAM,oBAAoB,qMAAqM,CAAC;AAEvO,eAAO,MAAM,YAAY,QAIoE,CAAC;AAE9F,eAAO,MAAM,iBAAiB,QAGqF,CAAC"}
@@ -28,7 +28,7 @@ var createMissingCustomTranslationLoadedError = function (customLoadTranslationP
28
28
  : 'Local translations exist, but no translation loader is found. See generaltranslation.com/docs for more information on how to create a translation loader.';
29
29
  };
30
30
  exports.createMissingCustomTranslationLoadedError = createMissingCustomTranslationLoadedError;
31
- exports.dictionaryDisabledError = "gt-next Error: You are trying to use a dictionary, but you have not added the initGT() plugin to your app. You must add initGT() to use dictionaries. For more information, visit generaltranslation.com/docs";
31
+ exports.dictionaryDisabledError = "gt-next Error: You are trying to use a dictionary, but you have not added the withGTConfig() plugin to your app. You must add withGTConfig() to use dictionaries. For more information, visit generaltranslation.com/docs";
32
32
  exports.unresolvedCustomLoadTranslationError = "gt-next Error: Custom translation loader could not be resolved. This usually means that the file was found, but the translation loader function itself was not exported.";
33
33
  // ---- WARNINGS ---- //
34
34
  exports.usingDefaultsWarning = 'gt-next: Unable to access gt-next configuration. Using defaults.';
@@ -49,9 +49,9 @@ var createMismatchingHashWarning = function (expectedHash, receivedHash) {
49
49
  return "gt-next: Mismatching hashes! Expected hash: ".concat(expectedHash, ", but got hash: ").concat(receivedHash, ". We will still render your translation, but make sure to update to the newest version: generaltranslation.com/docs");
50
50
  };
51
51
  exports.createMismatchingHashWarning = createMismatchingHashWarning;
52
- exports.projectIdMissingWarn = "gt-next: Project ID missing! Set projectId as GT_PROJECT_ID in your environment or by passing the projectId parameter to initGT(). Find your project ID: generaltranslation.com/dashboard.";
53
- exports.noInitGTWarn = "gt-next: You are running General Translation without the initGT() plugin. " +
54
- "This means that you are not translating your app. To activate translation, add the initGT() plugin to your app, " +
52
+ exports.projectIdMissingWarn = "gt-next: Project ID missing! Set projectId as GT_PROJECT_ID in your environment or by passing the projectId parameter to withGTConfig(). Find your project ID: generaltranslation.com/dashboard.";
53
+ exports.noInitGTWarn = "gt-next: You are running General Translation without the withGTConfig() plugin. " +
54
+ "This means that you are not translating your app. To activate translation, add the withGTConfig() plugin to your app, " +
55
55
  "and set the projectId and apiKey in your environment. " +
56
56
  "For more information, visit https://generaltranslation.com/docs/next/tutorials/quickstart";
57
57
  exports.APIKeyMissingWarn = "gt-next: A Development API key is required for runtime translation! " +
@@ -1 +1 @@
1
- {"version":3,"file":"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C,YAAY,6BAAmB,YAAY,wHAAqH;AAA/M,CAA+M,CAAC;AAJrM,QAAA,4BAA4B,gCAIyK;AAErM,QAAA,oBAAoB,GAAG,kMAAkM,CAAC;AAE1N,QAAA,YAAY,GACvB,kFAAkF;IAClF,wHAAwH;IACxH,wDAAwD;IACxD,2FAA2F,CAAC;AAEjF,QAAA,iBAAiB,GAC5B,uEAAuE;IACvE,oEAAoE;IACpE,iHAAiH,CAAC"}
@@ -1,3 +1,3 @@
1
- import { Var, Num, Currency, DateTime, T, Branch, Plural, GTProvider } from 'gt-react/client';
2
- export { GTProvider as PagesRouterGTProvider, T, Var, Num, Currency, DateTime, Branch, Plural, };
1
+ import { Var, Num, Currency, DateTime, T, Branch, Plural } from 'gt-react/client';
2
+ export { T, Var, Num, Currency, DateTime, Branch, Plural };
3
3
  //# sourceMappingURL=index.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,CAAC,EACD,MAAM,EACN,MAAM,EACN,UAAU,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,UAAU,IAAI,qBAAqB,EACnC,CAAC,EACD,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,GACP,CAAC"}
1
+ {"version":3,"file":"index.client.d.ts","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,GAAG,EACH,QAAQ,EACR,QAAQ,EACR,CAAC,EACD,MAAM,EACN,MAAM,EACP,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Plural = exports.Branch = exports.DateTime = exports.Currency = exports.Num = exports.Var = exports.T = exports.PagesRouterGTProvider = void 0;
3
+ exports.Plural = exports.Branch = exports.DateTime = exports.Currency = exports.Num = exports.Var = exports.T = void 0;
4
4
  var client_1 = require("gt-react/client");
5
5
  Object.defineProperty(exports, "Var", { enumerable: true, get: function () { return client_1.Var; } });
6
6
  Object.defineProperty(exports, "Num", { enumerable: true, get: function () { return client_1.Num; } });
@@ -9,5 +9,4 @@ Object.defineProperty(exports, "DateTime", { enumerable: true, get: function ()
9
9
  Object.defineProperty(exports, "T", { enumerable: true, get: function () { return client_1.T; } });
10
10
  Object.defineProperty(exports, "Branch", { enumerable: true, get: function () { return client_1.Branch; } });
11
11
  Object.defineProperty(exports, "Plural", { enumerable: true, get: function () { return client_1.Plural; } });
12
- Object.defineProperty(exports, "PagesRouterGTProvider", { enumerable: true, get: function () { return client_1.GTProvider; } });
13
12
  //# sourceMappingURL=index.client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.client.js","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":";;;AAAA,0CASyB;AAKvB,oFAbA,YAAG,OAaA;AACH,oFAbA,YAAG,OAaA;AACH,yFAbA,iBAAQ,OAaA;AACR,yFAbA,iBAAQ,OAaA;AAJR,kFARA,UAAC,OAQA;AAKD,uFAZA,eAAM,OAYA;AACN,uFAZA,eAAM,OAYA;AAPQ,sGAJd,mBAAU,OAIyB"}
1
+ {"version":3,"file":"index.client.js","sourceRoot":"","sources":["../src/index.client.ts"],"names":[],"mappings":";;;AAAA,0CAQyB;AAEb,oFATV,YAAG,OASU;AAAE,oFARf,YAAG,OAQe;AAAE,yFAPpB,iBAAQ,OAOoB;AAAE,yFAN9B,iBAAQ,OAM8B;AAA/B,kFALP,UAAC,OAKO;AAAgC,uFAJxC,eAAM,OAIwC;AAAE,uFAHhD,eAAM,OAGgD"}
package/dist/server.d.ts CHANGED
@@ -2,6 +2,7 @@ import T from './server-dir/inline/T';
2
2
  import tx from './server-dir/strings/tx';
3
3
  import getLocale from './request/getLocale';
4
4
  import { getGT } from './server-dir/getGT';
5
+ import GTProvider from './provider/GTProvider';
5
6
  export declare function getDefaultLocale(): string;
6
- export { T, tx, getLocale, getGT };
7
+ export { GTProvider, T, tx, getLocale, getGT };
7
8
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,uBAAuB,CAAC;AACtC,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACzC,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,uBAAuB,CAAC;AACtC,OAAO,EAAE,MAAM,yBAAyB,CAAC;AACzC,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAG/C,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,OAAO,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC"}
package/dist/server.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.getGT = exports.getLocale = exports.tx = exports.T = void 0;
6
+ exports.getGT = exports.getLocale = exports.tx = exports.T = exports.GTProvider = void 0;
7
7
  exports.getDefaultLocale = getDefaultLocale;
8
8
  var T_1 = __importDefault(require("./server-dir/inline/T"));
9
9
  exports.T = T_1.default;
@@ -14,6 +14,8 @@ exports.getLocale = getLocale_1.default;
14
14
  var getI18NConfig_1 = __importDefault(require("./config-dir/getI18NConfig"));
15
15
  var getGT_1 = require("./server-dir/getGT");
16
16
  Object.defineProperty(exports, "getGT", { enumerable: true, get: function () { return getGT_1.getGT; } });
17
+ var GTProvider_1 = __importDefault(require("./provider/GTProvider"));
18
+ exports.GTProvider = GTProvider_1.default;
17
19
  // import TX from './server-dir/inline/TX';
18
20
  function getDefaultLocale() {
19
21
  return (0, getI18NConfig_1.default)().getDefaultLocale();
@@ -1 +1 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;;;;AAOA,4CAEC;AATD,4DAAsC;AAW7B,YAXF,WAAC,CAWE;AAVV,+DAAyC;AAU7B,aAVL,YAAE,CAUK;AATd,kEAA4C;AAS5B,oBATT,mBAAS,CASS;AARzB,6EAAuD;AACvD,4CAA2C;AAOhB,sFAPlB,aAAK,OAOkB;AANhC,2CAA2C;AAE3C,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,uBAAa,GAAE,CAAC,gBAAgB,EAAE,CAAC;AAC5C,CAAC"}
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;;;;AAQA,4CAEC;AAVD,4DAAsC;AAYjB,YAZd,WAAC,CAYc;AAXtB,+DAAyC;AAWjB,aAXjB,YAAE,CAWiB;AAV1B,kEAA4C;AAUhB,oBAVrB,mBAAS,CAUqB;AATrC,6EAAuD;AACvD,4CAA2C;AAQJ,sFAR9B,aAAK,OAQ8B;AAP5C,qEAA+C;AAOtC,qBAPF,oBAAU,CAOE;AANnB,2CAA2C;AAE3C,SAAgB,gBAAgB;IAC9B,OAAO,IAAA,uBAAa,GAAE,CAAC,gBAAgB,EAAE,CAAC;AAC5C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-next",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "description": "A Next.js library for automatic internationalization.",
5
5
  "main": "dist/index.server.js",
6
6
  "peerDependencies": {
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@generaltranslation/supported-locales": "^2.0.2",
13
13
  "generaltranslation": "^6.2.0",
14
- "gt-react": "^9.1.0"
14
+ "gt-react": "^9.1.1"
15
15
  },
16
16
  "scripts": {
17
17
  "patch": "npm version patch",