gt-react 9.2.29-alpha.11 → 9.2.29-alpha.13
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.cjs.min.cjs +3 -3
- package/dist/client.d.ts +10 -7
- package/dist/client.esm.min.mjs +3 -3
- package/dist/index.cjs.min.cjs +3 -3
- package/dist/index.esm.min.mjs +3 -3
- package/dist/provider/ClientProvider.d.ts.map +1 -1
- package/dist/provider/GTProvider.d.ts.map +1 -1
- package/dist/provider/hooks/useCreateInternalUseGTFunction.d.ts +2 -2
- package/dist/provider/hooks/useCreateInternalUseGTFunction.d.ts.map +1 -1
- package/dist/provider/hooks/useCreateInternalUseTranslationsFunction.d.ts +2 -2
- package/dist/provider/hooks/useCreateInternalUseTranslationsFunction.d.ts.map +1 -1
- package/dist/provider/hooks/useRuntimeTranslation.d.ts +3 -2
- package/dist/provider/hooks/useRuntimeTranslation.d.ts.map +1 -1
- package/dist/types/context.d.ts +3 -2
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/runtime.d.ts +5 -3
- package/dist/types/runtime.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/types/context.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import { TranslationsObject, RenderMethod, InlineTranslationOptions, DictionaryTranslationOptions } from './types';
|
2
|
-
import {
|
2
|
+
import { TranslateIcuCallback, TranslateChildrenCallback, TranslateI18nextCallback } from './runtime';
|
3
3
|
import { GT } from 'generaltranslation';
|
4
4
|
export type GTContextType = {
|
5
5
|
gt: GT;
|
6
|
-
|
6
|
+
registerI18nextForTranslation: TranslateI18nextCallback;
|
7
|
+
registerIcuForTranslation: TranslateIcuCallback;
|
7
8
|
registerJsxForTranslation: TranslateChildrenCallback;
|
8
9
|
_internalUseGTFunction: (string: string, options?: InlineTranslationOptions) => string;
|
9
10
|
_internalUseTranslationsFunction: (id: string, options?: DictionaryTranslationOptions) => string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/types/context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,wBAAwB,EACxB,4BAA4B,EAC7B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,oBAAoB,EACpB,yBAAyB,EACzB,wBAAwB,EACzB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,EAAE,CAAC;IACP,6BAA6B,EAAE,wBAAwB,CAAC;IACxD,yBAAyB,EAAE,oBAAoB,CAAC;IAChD,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,sBAAsB,EAAE,CACtB,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,wBAAwB,KAC/B,MAAM,CAAC;IACZ,gCAAgC,EAAE,CAChC,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,4BAA4B,KACnC,MAAM,CAAC;IACZ,yBAAyB,EAAE,OAAO,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACxC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,0BAA0B,EAAE,OAAO,CAAC;IACpC,cAAc,EAAE;QAAE,MAAM,EAAE,YAAY,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
package/dist/types/runtime.d.ts
CHANGED
@@ -1,14 +1,16 @@
|
|
1
|
+
import { JsxChildren } from 'generaltranslation/types';
|
1
2
|
import { TranslationSuccess, TranslationLoading, TranslationError } from './types';
|
2
|
-
export type
|
3
|
-
source:
|
3
|
+
export type TranslateIcuCallback = (params: {
|
4
|
+
source: string;
|
4
5
|
targetLocale: string;
|
5
6
|
metadata: {
|
6
7
|
hash: string;
|
7
8
|
context?: string;
|
8
9
|
} & Record<string, any>;
|
9
10
|
}) => Promise<TranslationSuccess | TranslationLoading | TranslationError>;
|
11
|
+
export type TranslateI18nextCallback = TranslateIcuCallback;
|
10
12
|
export type TranslateChildrenCallback = (params: {
|
11
|
-
source:
|
13
|
+
source: JsxChildren | undefined;
|
12
14
|
targetLocale: string;
|
13
15
|
metadata: {
|
14
16
|
hash: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/types/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../src/types/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpE,KAAK,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,GAAG,gBAAgB,CAAC,CAAC;AAE1E,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AAE5D,MAAM,MAAM,yBAAyB,GAAG,CAAC,MAAM,EAAE;IAC/C,MAAM,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACpE,KAAK,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,GAAG,gBAAgB,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "gt-react",
|
3
|
-
"version": "9.2.29-alpha.
|
3
|
+
"version": "9.2.29-alpha.13",
|
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",
|
@@ -14,8 +14,8 @@
|
|
14
14
|
"react-dom": ">=16.8.0"
|
15
15
|
},
|
16
16
|
"dependencies": {
|
17
|
-
"@generaltranslation/supported-locales": "^2.0.11-alpha.
|
18
|
-
"generaltranslation": "^7.0.0-alpha.
|
17
|
+
"@generaltranslation/supported-locales": "^2.0.11-alpha.13",
|
18
|
+
"generaltranslation": "^7.0.0-alpha.13"
|
19
19
|
},
|
20
20
|
"scripts": {
|
21
21
|
"patch": "npm version patch",
|