gt-react 10.19.8 → 10.19.10
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 +20 -0
- package/dist/browser-types.d.ts +1 -1
- package/dist/browser-types.d.ts.map +1 -1
- package/dist/browser.cjs.min.cjs +1 -1
- package/dist/browser.cjs.min.cjs.map +1 -1
- package/dist/browser.esm.min.mjs +1 -1
- package/dist/browser.esm.min.mjs.map +1 -1
- package/dist/i18n-context/browser-i18n-manager/BrowserConditionStore.d.ts +32 -0
- package/dist/i18n-context/browser-i18n-manager/BrowserConditionStore.d.ts.map +1 -0
- package/dist/i18n-context/browser-i18n-manager/BrowserI18nManager.d.ts +4 -18
- package/dist/i18n-context/browser-i18n-manager/BrowserI18nManager.d.ts.map +1 -1
- package/dist/i18n-context/browser-i18n-manager/singleton-operations.d.ts +2 -0
- package/dist/i18n-context/browser-i18n-manager/singleton-operations.d.ts.map +1 -1
- package/dist/i18n-context/browser-i18n-manager/utils/determineLocale.d.ts +3 -6
- package/dist/i18n-context/browser-i18n-manager/utils/determineLocale.d.ts.map +1 -1
- package/dist/i18n-context/functions/html-tag-operations.d.ts.map +1 -1
- package/dist/i18n-context/functions/index.d.ts +1 -1
- package/dist/i18n-context/functions/index.d.ts.map +1 -1
- package/dist/i18n-context/functions/locale-operations.d.ts +3 -31
- package/dist/i18n-context/functions/locale-operations.d.ts.map +1 -1
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateJsx.d.ts +6 -2
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateJsx.d.ts.map +1 -1
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateString.d.ts +6 -2
- package/dist/i18n-context/functions/translation/GtInternalRuntimeTranslateString.d.ts.map +1 -1
- package/dist/i18n-context/functions/translation/GtInternalTranslateJsx.d.ts +1 -1
- package/dist/i18n-context/functions/translation/GtInternalTranslateJsx.d.ts.map +1 -1
- package/dist/i18n-context/functions/translation/t.d.ts.map +1 -1
- package/dist/i18n-context/setup/bootstrap.d.ts.map +1 -1
- package/dist/i18n-context/setup/initializeGT.d.ts.map +1 -1
- package/dist/i18n-context/ui/LocaleSelector.d.ts +1 -1
- package/dist/i18n-context/ui/LocaleSelector.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +1 -1
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.esm.min.mjs +1 -1
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/macros.cjs.min.cjs +1 -1
- package/dist/macros.cjs.min.cjs.map +1 -1
- package/dist/macros.esm.min.mjs +1 -1
- package/dist/macros.esm.min.mjs.map +1 -1
- package/dist/shared/messages.d.ts +1 -0
- package/dist/shared/messages.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/i18n-context/browser-i18n-manager/BrowserStorageAdapter.d.ts +0 -46
- package/dist/i18n-context/browser-i18n-manager/BrowserStorageAdapter.d.ts.map +0 -1
- package/dist/i18n-context/functions/versionId.d.ts +0 -10
- package/dist/i18n-context/functions/versionId.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/shared/messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,aAAa,CAAC;AAIvC,eAAO,MAAM,yBAAyB,uFAAqG,CAAC;AAC5I,eAAO,MAAM,iCAAiC,mGAA0G,CAAC;AACzJ,eAAO,MAAM,0CAA0C,6FAAoG,CAAC;AAG5J,eAAO,MAAM,qDAAqD,GAChE,SAAS,MAAM,GAAG,oBAAoB,GAAG,SAAS,WAEwK,CAAC;AAE7N,eAAO,MAAM,yDAAyD,GAAI,kCAGvE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB,WAC8J,CAAC"}
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/shared/messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,aAAa,CAAC;AAIvC,eAAO,MAAM,yBAAyB,uFAAqG,CAAC;AAC5I,eAAO,MAAM,iCAAiC,mGAA0G,CAAC;AACzJ,eAAO,MAAM,0CAA0C,6FAAoG,CAAC;AAG5J,eAAO,MAAM,qDAAqD,GAChE,SAAS,MAAM,GAAG,oBAAoB,GAAG,SAAS,WAEwK,CAAC;AAE7N,eAAO,MAAM,yDAAyD,GAAI,kCAGvE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB,WAC8J,CAAC;AAEhK,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,WACA,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-react",
|
|
3
|
-
"version": "10.19.
|
|
3
|
+
"version": "10.19.10",
|
|
4
4
|
"description": "A React library for automatic internationalization.",
|
|
5
5
|
"main": "./dist/index.cjs.min.cjs",
|
|
6
6
|
"module": "./dist/index.esm.min.mjs",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@generaltranslation/supported-locales": "2.0.68",
|
|
22
22
|
"generaltranslation": "8.2.10",
|
|
23
|
-
"@generaltranslation/react-core": "1.8.
|
|
24
|
-
"gt-i18n": "0.8.
|
|
23
|
+
"@generaltranslation/react-core": "1.8.12",
|
|
24
|
+
"gt-i18n": "0.8.11"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { StorageAdapter } from 'gt-i18n/internal';
|
|
2
|
-
import { CustomMapping } from 'generaltranslation/types';
|
|
3
|
-
import { GetLocale } from './utils/types';
|
|
4
|
-
/**
|
|
5
|
-
* The configuration for the BrowserStorageAdapter
|
|
6
|
-
* @param {string[]} locales - The accepted locales
|
|
7
|
-
* @param {CustomMapping} [customMapping] - The custom mapping
|
|
8
|
-
* @param {GetLocale} getLocale - The function to get the locale
|
|
9
|
-
* @param {string} [localeCookieName=defaultLocaleCookieName] - The name of the locale cookie to check
|
|
10
|
-
*/
|
|
11
|
-
type BrowserStorageAdapterConstructorParams = {
|
|
12
|
-
defaultLocale?: string;
|
|
13
|
-
locales?: string[];
|
|
14
|
-
customMapping?: CustomMapping;
|
|
15
|
-
getLocale?: GetLocale;
|
|
16
|
-
localeCookieName?: string;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* StorageAdapter implementation for Browser.
|
|
20
|
-
*/
|
|
21
|
-
export declare class BrowserStorageAdapter extends StorageAdapter {
|
|
22
|
-
readonly type: "browser-i18n-storage-adapter";
|
|
23
|
-
private defaultLocale?;
|
|
24
|
-
private locales?;
|
|
25
|
-
private customMapping?;
|
|
26
|
-
private getLocale?;
|
|
27
|
-
private localeCookieName;
|
|
28
|
-
/**
|
|
29
|
-
* @param {BrowserStorageAdapterConstructorParams} params - The configuration for the BrowserStorageAdapter
|
|
30
|
-
*/
|
|
31
|
-
constructor({ defaultLocale, locales, customMapping, getLocale, localeCookieName, }?: BrowserStorageAdapterConstructorParams);
|
|
32
|
-
/**
|
|
33
|
-
* Set configured items
|
|
34
|
-
*/
|
|
35
|
-
setConfig(params: BrowserStorageAdapterConstructorParams): void;
|
|
36
|
-
/**
|
|
37
|
-
* This only supports locale key
|
|
38
|
-
* @param key
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
getItem(key: string): string | undefined;
|
|
42
|
-
setItem(key: string, value: string): void;
|
|
43
|
-
removeItem(key: string): void;
|
|
44
|
-
}
|
|
45
|
-
export {};
|
|
46
|
-
//# sourceMappingURL=BrowserStorageAdapter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserStorageAdapter.d.ts","sourceRoot":"","sources":["../../../src/i18n-context/browser-i18n-manager/BrowserStorageAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAIzD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAM1C;;;;;;GAMG;AACH,KAAK,sCAAsC,GAAG;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,cAAc;IACvD,QAAQ,CAAC,IAAI,iCAAqC;IAClD,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,OAAO,CAAC,CAAW;IAC3B,OAAO,CAAC,aAAa,CAAC,CAAgB;IACtC,OAAO,CAAC,SAAS,CAAC,CAAY;IAC9B,OAAO,CAAC,gBAAgB,CAAS;IAEjC;;OAEG;gBACS,EACV,aAAa,EACb,OAAO,EACP,aAAa,EACb,SAAS,EACT,gBAA0C,GAC3C,GAAE,sCAA2C;IAS9C;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,sCAAsC,GAAG,IAAI;IAO/D;;;;OAIG;IACH,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAcxC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAUzC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAG9B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the version ID for the current source.
|
|
3
|
-
* @returns {string | undefined} The version ID, if set.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* const versionId = getVersionId();
|
|
7
|
-
* console.log(versionId); // 'abc123'
|
|
8
|
-
*/
|
|
9
|
-
export declare function getVersionId(): string | undefined;
|
|
10
|
-
//# sourceMappingURL=versionId.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"versionId.d.ts","sourceRoot":"","sources":["../../../src/i18n-context/functions/versionId.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,YAAY,uBAG3B"}
|