@generaltranslation/react-core 1.2.1 → 1.2.3
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 +19 -0
- package/dist/errors-dir/createErrors.d.ts +0 -1
- package/dist/errors-dir/createErrors.d.ts.map +1 -1
- package/dist/index.cjs.min.cjs +37 -3
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.min.mjs +37 -3
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs +37 -3
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +1 -0
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.esm.min.mjs +37 -3
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/messages/messages.d.ts +1 -73
- package/dist/messages/messages.d.ts.map +1 -1
- package/dist/types-dir/types.d.ts +1 -12
- package/dist/types-dir/types.d.ts.map +1 -1
- package/dist/types.d.ts +3 -13
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -1,74 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function icuMessageContainsVariables(message: string): boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Encodes content into a message that contains important translation metadata
|
|
5
|
-
* @param message The message to encode.
|
|
6
|
-
* @param options The options to encode.
|
|
7
|
-
* @returns The encoded message.
|
|
8
|
-
*
|
|
9
|
-
* @note - Message format
|
|
10
|
-
* A message is broken into two parts separated by colons:
|
|
11
|
-
* - interpolated content - the content with interpolated variables
|
|
12
|
-
* - hash + options - a unique identifier for the source content and options for the translation
|
|
13
|
-
*
|
|
14
|
-
* @example - Basic usage
|
|
15
|
-
*
|
|
16
|
-
* ```jsx
|
|
17
|
-
* import { msg } from 'gt-react';
|
|
18
|
-
* const message = msg('Hello, {name}!', { name: 'Brian' });
|
|
19
|
-
* console.log(message); // "Hello, Brian:eyIkX2hhc2giOiAiMHgxMjMiLCAiJF9zb3VyY2UiOiAiSGVsbG8sIHtuYW1lfSEiLCAibmFtZSI6ICJCcmlhbiJ9"
|
|
20
|
-
* ```
|
|
21
|
-
* eyIkX2hhc2giOiAiMHgxMjMiLCAiJF9zb3VyY2UiOiAiSGVsbG8sIHtuYW1lfSEiLCAibmFtZSI6ICJCcmlhbiJ9
|
|
22
|
-
* encodes to {"$_hash": "0x123", "$_source": "Hello, {name}!", "name": "Brian"}
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
/**
|
|
26
|
-
* Encodes content into a message that contains important translation metadata
|
|
27
|
-
* @param message The message to encode.
|
|
28
|
-
* @param options The options to encode.
|
|
29
|
-
* @returns The encoded message.
|
|
30
|
-
*
|
|
31
|
-
* @note - Message format
|
|
32
|
-
* A message is broken into two parts separated by colons:
|
|
33
|
-
* - interpolated content - the content with interpolated variables
|
|
34
|
-
* - hash + options - a unique identifier for the source content and options for the translation
|
|
35
|
-
*
|
|
36
|
-
* @example - Basic usage
|
|
37
|
-
*
|
|
38
|
-
* ```jsx
|
|
39
|
-
* import { msg } from 'gt-react';
|
|
40
|
-
* const message = msg('Hello, {name}!');
|
|
41
|
-
* console.log(message); // "Hello, {name}!"
|
|
42
|
-
* ```
|
|
43
|
-
*
|
|
44
|
-
* @example - Usage with options
|
|
45
|
-
*
|
|
46
|
-
* ```jsx
|
|
47
|
-
* import { msg } from 'gt-react';
|
|
48
|
-
* const message = msg('Hello, {name}!', { name: 'Brian' });
|
|
49
|
-
* console.log(message); // "Hello, Brian:eyIkX2hhc2giOiAiMHgxMjMiLCAiJF9zb3VyY2UiOiAiSGVsbG8sIHtuYW1lfSEiLCAibmFtZSI6ICJCcmlhbiJ9"
|
|
50
|
-
* ```
|
|
51
|
-
* eyIkX2hhc2giOiAiMHgxMjMiLCAiJF9zb3VyY2UiOiAiSGVsbG8sIHtuYW1lfSEiLCAibmFtZSI6ICJCcmlhbiJ9
|
|
52
|
-
* encodes to {"$_hash": "0x123", "$_source": "Hello, {name}!", "name": "Brian"}
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
export declare function msg<T extends string>(message: T): T;
|
|
56
|
-
export declare function msg<T extends string>(message: T, options: InlineTranslationOptions): string;
|
|
57
|
-
/**
|
|
58
|
-
* Extracts the original interpolated message string.
|
|
59
|
-
* If the message cannot be decoded (i.e., it does not contain a colon separator),
|
|
60
|
-
* the input is returned as-is.
|
|
61
|
-
* @param encodedMsg The message to decode.
|
|
62
|
-
* @returns The decoded message, or the input if it cannot be decoded.
|
|
63
|
-
*/
|
|
64
|
-
export declare function decodeMsg<T extends string | null | undefined>(encodedMsg: T): T;
|
|
65
|
-
/**
|
|
66
|
-
* Decodes the options from an encoded message.
|
|
67
|
-
* @param encodedMsg The message to decode.
|
|
68
|
-
* @returns The decoded options.
|
|
69
|
-
*/
|
|
70
|
-
export declare function decodeOptions(encodedMsg: string): ({
|
|
71
|
-
$_source: string;
|
|
72
|
-
$_hash: string;
|
|
73
|
-
} & InlineTranslationOptions) | null;
|
|
1
|
+
export { msg, decodeMsg, decodeOptions } from 'gt-i18n';
|
|
74
2
|
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/messages/messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/messages/messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Variable, VariableTransformationSuffix, TransformationPrefix, GTProp, VariableType } from 'generaltranslation/types';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
export type { GTFunctionType, MFunctionType, InlineTranslationOptions, DictionaryTranslationOptions, RuntimeTranslationOptions, } from 'gt-i18n/types';
|
|
3
4
|
/**
|
|
4
5
|
* TaggedElement is a React element with a GTProp property.
|
|
5
6
|
*/
|
|
@@ -59,16 +60,6 @@ export type LocalesDictionary = {
|
|
|
59
60
|
};
|
|
60
61
|
export type CustomLoader = (locale: string) => Promise<any>;
|
|
61
62
|
export type RenderMethod = 'skeleton' | 'replace' | 'default';
|
|
62
|
-
export type DictionaryTranslationOptions = Record<string, any>;
|
|
63
|
-
export type InlineTranslationOptions = DictionaryTranslationOptions & {
|
|
64
|
-
$context?: string;
|
|
65
|
-
$id?: string;
|
|
66
|
-
$_hash?: string;
|
|
67
|
-
$_source?: string;
|
|
68
|
-
};
|
|
69
|
-
export type RuntimeTranslationOptions = {
|
|
70
|
-
locale?: string;
|
|
71
|
-
} & Omit<InlineTranslationOptions, 'id'>;
|
|
72
63
|
export type VariableProps = {
|
|
73
64
|
variableType: VariableType;
|
|
74
65
|
variableValue: any;
|
|
@@ -85,6 +76,4 @@ export type _Message = {
|
|
|
85
76
|
$_hash?: string;
|
|
86
77
|
};
|
|
87
78
|
export type _Messages = _Message[];
|
|
88
|
-
export type MFunctionType = <T extends string | null | undefined>(encodedMsg: T, options?: Record<string, any>) => T extends string ? string : T;
|
|
89
|
-
export type TFunctionType = (message: string, options?: InlineTranslationOptions) => string;
|
|
90
79
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types-dir/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,4BAA4B,EAC5B,oBAAoB,EACpB,MAAM,EACN,YAAY,EACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC1C,YAAY,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M,iBAAiB,GAAG,MAAM,CAAC;AAGvC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,CAAC,EAAE,EAAE,MAAM,GAAG,iBAAiB,CAAC;CACjC,CAAC;AAGF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG;IAC1B,YAAY,EAAE,YAAY,CAAC;IAC3B,aAAa,EAAE,GAAG,CAAC;IACnB,eAAe,EAAE,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,qBAAqB,CAAC;IACvE,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,EAC5B,YAAY,EACZ,aAAa,EACb,eAAe,EACf,OAAO,GACR,EAAE,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG;IACvC,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,KAAK,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;AAExB,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,QAAQ,EAAE,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { GTProp, Variable, VariableType, JsxChildren, CustomMapping } from 'gene
|
|
|
2
2
|
export { GTProp } from 'generaltranslation/types';
|
|
3
3
|
import React, { ReactNode } from 'react';
|
|
4
4
|
import { GT } from 'generaltranslation';
|
|
5
|
+
import { InlineTranslationOptions, DictionaryTranslationOptions } from 'gt-i18n/types';
|
|
6
|
+
export { DictionaryTranslationOptions, GTFunctionType, InlineTranslationOptions, MFunctionType, RuntimeTranslationOptions } from 'gt-i18n/types';
|
|
5
7
|
|
|
6
8
|
/**
|
|
7
9
|
* For dictionaries, we have Entry and MetaEntry
|
|
@@ -47,16 +49,6 @@ type LocalesDictionary = {
|
|
|
47
49
|
};
|
|
48
50
|
type CustomLoader = (locale: string) => Promise<any>;
|
|
49
51
|
type RenderMethod = 'skeleton' | 'replace' | 'default';
|
|
50
|
-
type DictionaryTranslationOptions = Record<string, any>;
|
|
51
|
-
type InlineTranslationOptions = DictionaryTranslationOptions & {
|
|
52
|
-
$context?: string;
|
|
53
|
-
$id?: string;
|
|
54
|
-
$_hash?: string;
|
|
55
|
-
$_source?: string;
|
|
56
|
-
};
|
|
57
|
-
type RuntimeTranslationOptions = {
|
|
58
|
-
locale?: string;
|
|
59
|
-
} & Omit<InlineTranslationOptions, 'id'>;
|
|
60
52
|
type VariableProps = {
|
|
61
53
|
variableType: VariableType;
|
|
62
54
|
variableValue: any;
|
|
@@ -73,8 +65,6 @@ type _Message = {
|
|
|
73
65
|
$_hash?: string;
|
|
74
66
|
};
|
|
75
67
|
type _Messages = _Message[];
|
|
76
|
-
type MFunctionType = <T extends string | null | undefined>(encodedMsg: T, options?: Record<string, any>) => T extends string ? string : T;
|
|
77
|
-
type TFunctionType = (message: string, options?: InlineTranslationOptions) => string;
|
|
78
68
|
|
|
79
69
|
type TranslateIcuCallback = (params: {
|
|
80
70
|
source: string;
|
|
@@ -230,4 +220,4 @@ type InternalGTProviderProps = {
|
|
|
230
220
|
[key: string]: any;
|
|
231
221
|
};
|
|
232
222
|
|
|
233
|
-
export type { AuthFromEnvParams, AuthFromEnvReturn, CustomLoader, Dictionary, DictionaryContent, DictionaryEntry, DictionaryObject,
|
|
223
|
+
export type { AuthFromEnvParams, AuthFromEnvReturn, CustomLoader, Dictionary, DictionaryContent, DictionaryEntry, DictionaryObject, Entry, FlattenedDictionary, GTConfig, GTContextType, InternalGTProviderProps, LocaleSelectorProps, LocalesDictionary, MetaEntry as Metadata, RegionSelectorProps, RenderMethod, RenderVariable, TranslatedChildren, Translations, UseDetermineLocaleParams, UseDetermineLocaleReturn, UseEnableI18nParams, UseEnableI18nReturn, UseRegionStateParams, UseRegionStateReturn, VariableProps, _Message, _Messages };
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EACL,UAAU,EACV,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,KAAK,EACL,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,SAAS,EACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EACL,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEtE,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EACL,UAAU,EACV,eAAe,EACf,mBAAmB,EACnB,YAAY,EACZ,MAAM,EACN,KAAK,EACL,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,SAAS,IAAI,QAAQ,EACrB,QAAQ,EACR,SAAS,EACT,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,QAAQ,GACT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@generaltranslation/react-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "A pure React library for internationalization",
|
|
5
5
|
"main": "./dist/index.cjs.min.cjs",
|
|
6
6
|
"module": "./dist/index.esm.min.mjs",
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
"react": ">=16.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@generaltranslation/supported-locales": "2.0.
|
|
17
|
-
"generaltranslation": "8.0.
|
|
16
|
+
"@generaltranslation/supported-locales": "2.0.27",
|
|
17
|
+
"generaltranslation": "8.0.4",
|
|
18
|
+
"gt-i18n": "0.1.0"
|
|
18
19
|
},
|
|
19
20
|
"repository": {
|
|
20
21
|
"type": "git",
|