gt-tanstack-start 0.4.19 → 0.4.21
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/index.cjs.min.cjs +4 -11
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.d.ts +457 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.min.mjs +4 -11
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/types.d.ts +91 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -11
- package/dist/functions/determineLocale.d.ts +0 -8
- package/dist/functions/determineLocale.d.ts.map +0 -1
- package/dist/functions/getTranslations.d.ts +0 -6
- package/dist/functions/getTranslations.d.ts.map +0 -1
- package/dist/provider/GTProvider.d.ts +0 -26
- package/dist/provider/GTProvider.d.ts.map +0 -1
- package/dist/provider/types.d.ts +0 -11
- package/dist/provider/types.d.ts.map +0 -1
- package/dist/provider/utils/determineProviderLocale.d.ts +0 -6
- package/dist/provider/utils/determineProviderLocale.d.ts.map +0 -1
- package/dist/provider/utils/isSSREnabled.d.ts +0 -5
- package/dist/provider/utils/isSSREnabled.d.ts.map +0 -1
- package/dist/runtime/TanstackConditionStore.d.ts +0 -13
- package/dist/runtime/TanstackConditionStore.d.ts.map +0 -1
- package/dist/setup/initializeGT.d.ts +0 -8
- package/dist/setup/initializeGT.d.ts.map +0 -1
- package/dist/setup/types.d.ts +0 -12
- package/dist/setup/types.d.ts.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../format/dist/types-COaQnqVZ.d.cts
|
|
2
|
+
//#region src/locales/customLocaleMapping.d.ts
|
|
3
|
+
type CustomMapping = Record<string, string | Partial<LocaleProperties>>; //#endregion
|
|
4
|
+
//#region src/locales/getLocaleProperties.d.ts
|
|
5
|
+
type LocaleProperties = {
|
|
6
|
+
code: string;
|
|
7
|
+
name: string;
|
|
8
|
+
nativeName: string;
|
|
9
|
+
languageCode: string;
|
|
10
|
+
languageName: string;
|
|
11
|
+
nativeLanguageName: string;
|
|
12
|
+
nameWithRegionCode: string;
|
|
13
|
+
nativeNameWithRegionCode: string;
|
|
14
|
+
regionCode: string;
|
|
15
|
+
regionName: string;
|
|
16
|
+
nativeRegionName: string;
|
|
17
|
+
scriptCode: string;
|
|
18
|
+
scriptName: string;
|
|
19
|
+
nativeScriptName: string;
|
|
20
|
+
maximizedCode: string;
|
|
21
|
+
maximizedName: string;
|
|
22
|
+
nativeMaximizedName: string;
|
|
23
|
+
minimizedCode: string;
|
|
24
|
+
minimizedName: string;
|
|
25
|
+
nativeMinimizedName: string;
|
|
26
|
+
emoji: string;
|
|
27
|
+
}; //#endregion
|
|
28
|
+
//#region src/locales/getRegionProperties.d.ts
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../i18n/dist/localeResolver-CYvrEtm0.d.cts
|
|
31
|
+
/**
|
|
32
|
+
* TODO: this disagrees with the type in react-core/src/types-dir/config.ts, we need to move this
|
|
33
|
+
* General Config:
|
|
34
|
+
* @param defaultLocale - The default locale to use
|
|
35
|
+
* @param locales - The locales to support
|
|
36
|
+
* @param customMapping - The custom mapping to use (for aliasing locale codes and other properties)
|
|
37
|
+
* @param enableI18n - Whether to enable i18n
|
|
38
|
+
*
|
|
39
|
+
* Remote Store/Cache Config:
|
|
40
|
+
* @param projectId - The project id
|
|
41
|
+
* @param devApiKey - The dev api key
|
|
42
|
+
* @param _versionId - The version id
|
|
43
|
+
* @param _branchId - The branch id
|
|
44
|
+
* @param cacheUrl - The cache url
|
|
45
|
+
* @param runtimeUrl - The runtime url
|
|
46
|
+
* @param timeout - The timeout
|
|
47
|
+
* @param modelProvider - The model provider
|
|
48
|
+
*/
|
|
49
|
+
type GTConfig = {
|
|
50
|
+
defaultLocale?: string;
|
|
51
|
+
locales?: string[];
|
|
52
|
+
customMapping?: CustomMapping;
|
|
53
|
+
enableI18n?: boolean;
|
|
54
|
+
projectId?: string;
|
|
55
|
+
devApiKey?: string;
|
|
56
|
+
apiKey?: string;
|
|
57
|
+
_versionId?: string;
|
|
58
|
+
_branchId?: string;
|
|
59
|
+
cacheUrl?: string | null;
|
|
60
|
+
cacheExpiryTime?: number;
|
|
61
|
+
runtimeUrl?: string | null;
|
|
62
|
+
modelProvider?: string;
|
|
63
|
+
localeCookieName?: string;
|
|
64
|
+
files?: {
|
|
65
|
+
gt?: {
|
|
66
|
+
parsingFlags?: {
|
|
67
|
+
/**
|
|
68
|
+
* Dev hot reload config, gt-react/browser only.
|
|
69
|
+
* - `true` enables strings hot reload (jsx handled at runtime via Suspense)
|
|
70
|
+
* - `{ strings?: boolean; jsx?: boolean }` enables selectively
|
|
71
|
+
*/
|
|
72
|
+
devHotReload?: boolean | {
|
|
73
|
+
strings?: boolean;
|
|
74
|
+
jsx?: boolean;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}; //#endregion
|
|
80
|
+
//#region src/i18n-manager/translations-manager/translations-loaders/types.d.ts
|
|
81
|
+
/**
|
|
82
|
+
* Translations loader function type
|
|
83
|
+
*/
|
|
84
|
+
type TranslationsLoader = (locale: string) => Promise<unknown>; //#endregion
|
|
85
|
+
//#region src/i18n-manager/types.d.ts
|
|
86
|
+
//#endregion
|
|
87
|
+
//#region src/setup/types.d.ts
|
|
3
88
|
/**
|
|
4
89
|
* Parameters for the initializing GT
|
|
5
90
|
* @param {string} params.defaultLocale - The default locale to use
|
|
@@ -7,7 +92,8 @@ import { GTConfig, TranslationsLoader } from 'gt-i18n/internal/types';
|
|
|
7
92
|
* @param {object} params.loadTranslations - The custom translation loader to use
|
|
8
93
|
*/
|
|
9
94
|
type InitializeGTParams = GTConfig & {
|
|
10
|
-
|
|
95
|
+
loadTranslations?: TranslationsLoader;
|
|
11
96
|
};
|
|
12
|
-
|
|
13
|
-
export type
|
|
97
|
+
//#endregion
|
|
98
|
+
export { type InitializeGTParams };
|
|
99
|
+
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":["CustomMapping","LocaleProperties","Partial","Record","code","name","nativeName","languageCode","languageName","nativeLanguageName","nameWithRegionCode","nativeNameWithRegionCode","regionCode","regionName","nativeRegionName","scriptCode","scriptName","nativeScriptName","maximizedCode","maximizedName","nativeMaximizedName","minimizedCode","minimizedName","nativeMinimizedName","emoji","CustomRegionMapping","region","locale","getRegionProperties","defaultLocale","customMapping","CutoffFormatStyle","TerminatorOptions","terminator","separator","CutoffFormatOptions","maxChars","style","VariableType","Variable","k","i","v","HTML_CONTENT_PROPS","pl","ti","alt","arl","arb","ard","HtmlContentPropKeysRecord","HtmlContentPropValuesRecord","GTProp","JsxChildren","b","t","JsxElement","d","c","JsxChild","StringFormat","DataFormat","StringContent","IcuMessage","StringMessage","I18nextMessage","Content","FormatVariables","Date","S","_","a","f","g","h","l","m","n","o","p","r","s","u","x","y","a","Dictionary","i","DictionaryLoader","n","TranslationBatchConfig","p","Translation","r","LifecycleCallbacks","CustomMapping","RuntimeTranslateManyOptions","RenderMethod","GTConfig","defaultLocale","locales","customMapping","enableI18n","projectId","devApiKey","apiKey","_versionId","_branchId","cacheUrl","cacheExpiryTime","runtimeUrl","modelProvider","localeCookieName","files","gt","parsingFlags","devHotReload","strings","jsx","TranslationsLoader","Promise","locale","DictionaryConfig","dictionary","loadDictionary","RuntimeTranslationConfig","timeout","metadata","I18nManagerConstructorParams","TranslationValue","Omit","loadTranslations","environment","batchConfig","runtimeTranslation","lifecycle","I18nManagerConfig","ConditionStoreConfig","ConditionStore","getLocale","WritableConditionStore","setLocale","ScopedConditionStore","T","run","callback","LocaleCandidates","determineSupportedLocale","candidates","config","resolveSupportedLocale","createLocaleResolver","c","d","f","l","m","o","s","t","u"],"sources":["../../format/dist/types-COaQnqVZ.d.cts","../../i18n/dist/localeResolver-CYvrEtm0.d.cts","../src/setup/types.ts"],"mappings":";;KACKA,aAAAA,GAAgBG,MAAAA,kBAAwBD,OAAAA,CAAQD,gBAAAA;AAAAA;AAAAA,KAGhDA,gBAAAA;EACHG,IAAAA;EACAC,IAAAA;EACAC,UAAAA;EACAC,YAAAA;EACAC,YAAAA;EACAC,kBAAAA;EACAC,kBAAAA;EACAC,wBAAAA;EACAC,UAAAA;EACAC,UAAAA;EACAC,gBAAAA;EACAC,UAAAA;EACAC,UAAAA;EACAC,gBAAAA;EACAC,aAAAA;EACAC,aAAAA;EACAC,mBAAAA;EACAC,aAAAA;EACAC,aAAAA;EACAC,mBAAAA;EACAC,KAAAA;AAAAA;AAAAA;;;;;;;;AAxBmE;;;;;;;;;;;;;KC0BhE0E,QAAAA;EACHC,aAAAA;EACAC,OAAAA;EACAC,aAAAA,GAAgBN,aAAAA;EAChBO,UAAAA;EACAC,SAAAA;EACAC,SAAAA;EACAC,MAAAA;EACAC,UAAAA;EACAC,SAAAA;EACAC,QAAAA;EACAC,eAAAA;EACAC,UAAAA;EACAC,aAAAA;EACAC,gBAAAA;EACAC,KAAAA;IACEC,EAAAA;MACEC,YAAAA;QAjBO;;;;;QAuBLC,YAAAA;UACEC,OAAAA;UACAC,GAAAA;QAAAA;MAAAA;IAAAA;EAAAA;AAAAA;AAAAA;;;;KAWLC,kBAAAA,IAAsBE,MAAAA,aAAmBD,OAAAA;AAAAA;;;;;;;;;KCvDlC,kBAAA,GAAqB,QAAA;EAC/B,gBAAA,GAAmB,kBAAA;AAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-tanstack-start",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.21",
|
|
4
4
|
"description": "TanStack Start integration for General Translation",
|
|
5
5
|
"main": "dist/index.cjs.min.cjs",
|
|
6
6
|
"module": "dist/index.esm.min.mjs",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"@tanstack/react-start": ">=1.159.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"gt-react": "10.19.
|
|
20
|
-
"@generaltranslation/react-core": "1.8.
|
|
21
|
-
"gt-i18n": "0.9.
|
|
22
|
-
"generaltranslation": "8.2.
|
|
19
|
+
"gt-react": "10.19.17",
|
|
20
|
+
"@generaltranslation/react-core": "1.8.19",
|
|
21
|
+
"gt-i18n": "0.9.3",
|
|
22
|
+
"generaltranslation": "8.2.15"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -32,14 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://generaltranslation.com/",
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@rollup/plugin-commonjs": "^28.0.6",
|
|
36
|
-
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
37
|
-
"@rollup/plugin-typescript": "^12.1.4",
|
|
38
35
|
"@types/node": "^22.13.5",
|
|
39
36
|
"@types/react": ">=18.0.0 <20.0.0",
|
|
40
37
|
"@types/react-dom": ">=18.0.0 <20.0.0",
|
|
41
|
-
"
|
|
42
|
-
"tslib": "^2.8.1",
|
|
38
|
+
"tsdown": "^0.21.10",
|
|
43
39
|
"typescript": "^5.9.2",
|
|
44
40
|
"vitest": "^3.2.4"
|
|
45
41
|
},
|
|
@@ -78,7 +74,7 @@
|
|
|
78
74
|
"i18n"
|
|
79
75
|
],
|
|
80
76
|
"scripts": {
|
|
81
|
-
"build": "
|
|
77
|
+
"build": "tsdown",
|
|
82
78
|
"build:clean": "sh ../../scripts/clean.sh && pnpm run build",
|
|
83
79
|
"build:release": "pnpm run build:clean",
|
|
84
80
|
"release": "pnpm run build:clean && pnpm publish",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ConditionStoreConfig } from 'gt-i18n/internal/types';
|
|
2
|
-
/**
|
|
3
|
-
* Determines the locale isomorphicly.
|
|
4
|
-
*
|
|
5
|
-
* @internal - for exporting use client facing getLocale() instead, everywhere internally should use determineLocale()
|
|
6
|
-
*/
|
|
7
|
-
export declare const determineLocale: import("@tanstack/react-start").IsomorphicFn<[ConditionStoreConfig], string, string>;
|
|
8
|
-
//# sourceMappingURL=determineLocale.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"determineLocale.d.ts","sourceRoot":"","sources":["../../src/functions/determineLocale.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE;;;;GAIG;AACH,eAAO,MAAM,eAAe,sFAEI,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getTranslations.d.ts","sourceRoot":"","sources":["../../src/functions/getTranslations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItD;;GAEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAOzE"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { GTProviderProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Provides General Translation context to its children, which can then access `useGT`, `useLocale`, and `useDefaultLocale`.
|
|
5
|
-
*
|
|
6
|
-
* @param {React.ReactNode} children - The children components that will use the translation context.
|
|
7
|
-
* @param {string} [projectId] - The project ID required for General Translation cloud services.
|
|
8
|
-
* @param {Dictionary} [dictionary=defaultDictionary] - The translation dictionary for the project.
|
|
9
|
-
* @param {string[]} [locales] - The list of approved locales for the project.
|
|
10
|
-
* @param {string} [defaultLocale=libraryDefaultLocale] - The default locale to use if no other locale is found.
|
|
11
|
-
* @param {string} [cacheUrl='https://cdn.gtx.dev'] - The URL of the cache service for fetching translations.
|
|
12
|
-
* @param {string} [runtimeUrl='https://runtime.gtx.dev'] - The URL of the runtime service for fetching translations.
|
|
13
|
-
* @param {RenderSettings} [renderSettings=defaultRenderSettings] - The settings for rendering translations.
|
|
14
|
-
* @param {string} [_versionId] - The version ID for fetching translations.
|
|
15
|
-
* @param {string} [devApiKey] - The API key for development environments.
|
|
16
|
-
* @param {object} [metadata] - Additional metadata to pass to the context.
|
|
17
|
-
* @param {string} [localeCookieName=defaultLocaleCookieName] - The name of the cookie to store the locale.
|
|
18
|
-
* @param {boolean} [enableI18n=true] - Whether to enable i18n.
|
|
19
|
-
* @param {boolean|undefined} [enableI18nLoaded=undefined] - Flag to indicate if the enableI18n flag is finished loading asynchronously. Undefined means flag is loaded synchronously.
|
|
20
|
-
* @param {Translations | null} [translations=null] - The translations to use for the context.
|
|
21
|
-
* @param {React.ReactNode} [fallback = undefined] - Custom fallback to display while loading
|
|
22
|
-
*
|
|
23
|
-
* @returns {JSX.Element} The provider component for General Translation context.
|
|
24
|
-
*/
|
|
25
|
-
export declare function GTProvider(props: GTProviderProps): React.ReactNode;
|
|
26
|
-
//# sourceMappingURL=GTProvider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GTProvider.d.ts","sourceRoot":"","sources":["../../src/provider/GTProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAK1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK,CAAC,SAAS,CAkBlE"}
|
package/dist/provider/types.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { GTProviderProps as GTReactProviderProps } from 'gt-react/internal';
|
|
2
|
-
/**
|
|
3
|
-
* Props for the GTProvider component
|
|
4
|
-
* @param {React.ReactNode} children - The children components that will use the translation context.
|
|
5
|
-
* @param {Translations} translations - The translations to use for the translation context.
|
|
6
|
-
* @param {string} locale - The locale to use for the translation context.
|
|
7
|
-
*
|
|
8
|
-
* TODO: use Pick<> syntax
|
|
9
|
-
*/
|
|
10
|
-
export type GTProviderProps = Omit<GTReactProviderProps, 'ssr'>;
|
|
11
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/provider/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE5E;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { GTProviderProps } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Determines the locale for the provider, must follow specific logic
|
|
4
|
-
*/
|
|
5
|
-
export declare function determineProviderLocale(props: Partial<Pick<GTProviderProps, 'locale'>>): GTProviderProps['locale'];
|
|
6
|
-
//# sourceMappingURL=determineProviderLocale.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"determineProviderLocale.d.ts","sourceRoot":"","sources":["../../../src/provider/utils/determineProviderLocale.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3C;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC,GAC9C,eAAe,CAAC,QAAQ,CAAC,CAY3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isSSREnabled.d.ts","sourceRoot":"","sources":["../../../src/provider/utils/isSSREnabled.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,YAAY,YAE3B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ConditionStore, ConditionStoreConfig } from 'gt-i18n/internal/types';
|
|
2
|
-
/**
|
|
3
|
-
* Condition store implementation for Tanstack Start.
|
|
4
|
-
*/
|
|
5
|
-
export declare class TanstackConditionStore implements ConditionStore {
|
|
6
|
-
private localeConfig;
|
|
7
|
-
constructor(localeConfig?: ConditionStoreConfig);
|
|
8
|
-
/**
|
|
9
|
-
* Get the current locale.
|
|
10
|
-
*/
|
|
11
|
-
getLocale(): string;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=TanstackConditionStore.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TanstackConditionStore.d.ts","sourceRoot":"","sources":["../../src/runtime/TanstackConditionStore.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAC3D,OAAO,CAAC,YAAY,CAAuB;gBAE/B,YAAY,GAAE,oBAAyB;IAInD;;OAEG;IACH,SAAS,IAAI,MAAM;CAGpB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { InitializeGTParams } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Configure GT for TanStack Start. This must be called to setup GT for TanStack Start.
|
|
4
|
-
* @param {InitializeGTParams} config - The configuration for the GT instance
|
|
5
|
-
* TODO: auto detect if can find gt.config.json files
|
|
6
|
-
*/
|
|
7
|
-
export declare function initializeGT(params: InitializeGTParams): void;
|
|
8
|
-
//# sourceMappingURL=initializeGT.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initializeGT.d.ts","sourceRoot":"","sources":["../../src/setup/initializeGT.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAGlD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAU7D"}
|
package/dist/setup/types.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { GTConfig, TranslationsLoader } from 'gt-i18n/internal/types';
|
|
2
|
-
/**
|
|
3
|
-
* Parameters for the initializing GT
|
|
4
|
-
* @param {string} params.defaultLocale - The default locale to use
|
|
5
|
-
* @param {string[]} params.locales - The locales to support
|
|
6
|
-
* @param {object} params.loadTranslations - The custom translation loader to use
|
|
7
|
-
*/
|
|
8
|
-
export type InitializeGTParams = GTConfig & {
|
|
9
|
-
loadTranslations?: TranslationsLoader;
|
|
10
|
-
};
|
|
11
|
-
export type { GTConfig, TranslationsLoader } from 'gt-i18n/internal/types';
|
|
12
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/setup/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG;IAC1C,gBAAgB,CAAC,EAAE,kBAAkB,CAAC;CACvC,CAAC;AAGF,YAAY,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC"}
|