gt-next 0.2.8 → 0.2.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/dist/server/inline/T.d.ts +12 -17
- package/dist/server/inline/T.d.ts.map +1 -1
- package/dist/server/inline/T.js +15 -15
- package/dist/server/inline/T.js.map +1 -1
- package/dist/server/rendering/renderDefaultChildren.js +1 -1
- package/dist/server/rendering/renderDefaultChildren.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,35 +4,35 @@ type RenderSettings = {
|
|
|
4
4
|
fallbackToPrevious: boolean;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
|
-
* Translation component that
|
|
7
|
+
* Translation component that renders its children translated into the user's language.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```jsx
|
|
11
11
|
* // Basic usage:
|
|
12
|
-
* <T id="welcome_message"
|
|
13
|
-
* Hello, <Var name="name"
|
|
12
|
+
* <T id="welcome_message">
|
|
13
|
+
* Hello, <Var name="name" value={firstname}>!
|
|
14
14
|
* </T>
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```jsx
|
|
19
|
-
* //
|
|
20
|
-
* <T id="item_count"
|
|
21
|
-
* You have <Num/>
|
|
19
|
+
* // Translating a plural
|
|
20
|
+
* <T id="item_count">
|
|
21
|
+
* <Plural n={3} singular={<>You have <Num value={n}/> item.}>
|
|
22
|
+
* You have <Num value={n}/> items.
|
|
23
|
+
* </Plural>
|
|
22
24
|
* </T>
|
|
23
25
|
* ```
|
|
24
26
|
*
|
|
25
|
-
* Used as an alternative to `t()`.
|
|
26
|
-
*
|
|
27
27
|
* When used on the server-side, can create translations on demand.
|
|
28
28
|
* If you need to ensure server-side usage import from `'gt-next/server'`.
|
|
29
29
|
*
|
|
30
|
+
* When used on the client-side, will throw an error if no `id` prop is provided.
|
|
31
|
+
*
|
|
30
32
|
* By default, General Translation saves the translation in a remote cache if an `id` option is passed.
|
|
31
33
|
*
|
|
32
34
|
* @param {React.ReactNode} children - The content to be translated or displayed.
|
|
33
35
|
* @param {string} [id] - Optional identifier for the translation string. If not provided, a hash will be generated from the content.
|
|
34
|
-
* @param {Object} [variables] - Variables for interpolation in the translation string.
|
|
35
|
-
* @param {Object} [variablesOptions] - Optional formatting options for numeric or date variables.
|
|
36
36
|
* @param {Object} [renderSettings] - Optional settings controlling how fallback content is rendered during translation.
|
|
37
37
|
* @param {"skeleton" | "replace" | "hang" | "subtle"} [renderSettings.method] - Specifies the rendering method:
|
|
38
38
|
* - "skeleton": show a placeholder while translation is loading.
|
|
@@ -41,21 +41,16 @@ type RenderSettings = {
|
|
|
41
41
|
* - "subtle": display children without a translation initially, with translations being applied later if available.
|
|
42
42
|
* @param {number | null} [renderSettings.timeout] - Optional timeout for translation loading.
|
|
43
43
|
* @param {boolean} [renderSettings.fallbackToPrevious] - Whether to fallback to the last known translation if no translation is found for the current content.
|
|
44
|
-
* @param {string} [dictionaryName] - Optional name of the translation dictionary to use.
|
|
45
44
|
* @param {any} [context] - Additional context for translation key generation.
|
|
46
45
|
* @param {Object} [props] - Additional props for the component.
|
|
47
46
|
* @returns {JSX.Element} The rendered translation or fallback content based on the provided configuration.
|
|
48
47
|
*
|
|
49
48
|
* @throws {Error} If a plural translation is requested but the `n` option is not provided.
|
|
50
49
|
*/
|
|
51
|
-
export default function T({ children, id,
|
|
50
|
+
export default function T({ children, id, context, renderSettings, ...props }: {
|
|
52
51
|
children: any;
|
|
53
52
|
id?: string;
|
|
54
|
-
|
|
55
|
-
variablesOptions?: {
|
|
56
|
-
[key: string]: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions;
|
|
57
|
-
};
|
|
58
|
-
renderSettings?: RenderSettings;
|
|
53
|
+
context?: RenderSettings;
|
|
59
54
|
[key: string]: any;
|
|
60
55
|
}): Promise<any>;
|
|
61
56
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"T.d.ts","sourceRoot":"","sources":["../../../src/server/inline/T.tsx"],"names":[],"mappings":"AASA,KAAK,cAAc,GAAG;IAClB,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IACnD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED
|
|
1
|
+
{"version":3,"file":"T.d.ts","sourceRoot":"","sources":["../../../src/server/inline/T.tsx"],"names":[],"mappings":"AASA,KAAK,cAAc,GAAG;IAClB,MAAM,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;IACnD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kBAAkB,EAAE,OAAO,CAAA;CAC9B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAA8B,CAAC,CAAC,EAC5B,QAAQ,EAAE,EAAE,EACZ,OAAO,EACP,cAAc,EACd,GAAG,KAAK,EACX,EAAE;IACC,QAAQ,EAAE,GAAG,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,OAAO,CAAC,EAAE,cAAc,CAAA;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB,GAAG,OAAO,CAAC,GAAG,CAAC,CAiGf"}
|
package/dist/server/inline/T.js
CHANGED
|
@@ -72,35 +72,35 @@ var Resolver_1 = __importDefault(require("./Resolver"));
|
|
|
72
72
|
var renderTranslatedChildren_1 = __importDefault(require("../rendering/renderTranslatedChildren"));
|
|
73
73
|
var renderDefaultChildren_1 = __importDefault(require("../rendering/renderDefaultChildren"));
|
|
74
74
|
/**
|
|
75
|
-
* Translation component that
|
|
75
|
+
* Translation component that renders its children translated into the user's language.
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
78
|
* ```jsx
|
|
79
79
|
* // Basic usage:
|
|
80
|
-
* <T id="welcome_message"
|
|
81
|
-
* Hello, <Var name="name"
|
|
80
|
+
* <T id="welcome_message">
|
|
81
|
+
* Hello, <Var name="name" value={firstname}>!
|
|
82
82
|
* </T>
|
|
83
83
|
* ```
|
|
84
84
|
*
|
|
85
85
|
* @example
|
|
86
86
|
* ```jsx
|
|
87
|
-
* //
|
|
88
|
-
* <T id="item_count"
|
|
89
|
-
* You have <Num/>
|
|
87
|
+
* // Translating a plural
|
|
88
|
+
* <T id="item_count">
|
|
89
|
+
* <Plural n={3} singular={<>You have <Num value={n}/> item.}>
|
|
90
|
+
* You have <Num value={n}/> items.
|
|
91
|
+
* </Plural>
|
|
90
92
|
* </T>
|
|
91
93
|
* ```
|
|
92
94
|
*
|
|
93
|
-
* Used as an alternative to `t()`.
|
|
94
|
-
*
|
|
95
95
|
* When used on the server-side, can create translations on demand.
|
|
96
96
|
* If you need to ensure server-side usage import from `'gt-next/server'`.
|
|
97
97
|
*
|
|
98
|
+
* When used on the client-side, will throw an error if no `id` prop is provided.
|
|
99
|
+
*
|
|
98
100
|
* By default, General Translation saves the translation in a remote cache if an `id` option is passed.
|
|
99
101
|
*
|
|
100
102
|
* @param {React.ReactNode} children - The content to be translated or displayed.
|
|
101
103
|
* @param {string} [id] - Optional identifier for the translation string. If not provided, a hash will be generated from the content.
|
|
102
|
-
* @param {Object} [variables] - Variables for interpolation in the translation string.
|
|
103
|
-
* @param {Object} [variablesOptions] - Optional formatting options for numeric or date variables.
|
|
104
104
|
* @param {Object} [renderSettings] - Optional settings controlling how fallback content is rendered during translation.
|
|
105
105
|
* @param {"skeleton" | "replace" | "hang" | "subtle"} [renderSettings.method] - Specifies the rendering method:
|
|
106
106
|
* - "skeleton": show a placeholder while translation is loading.
|
|
@@ -109,7 +109,6 @@ var renderDefaultChildren_1 = __importDefault(require("../rendering/renderDefaul
|
|
|
109
109
|
* - "subtle": display children without a translation initially, with translations being applied later if available.
|
|
110
110
|
* @param {number | null} [renderSettings.timeout] - Optional timeout for translation loading.
|
|
111
111
|
* @param {boolean} [renderSettings.fallbackToPrevious] - Whether to fallback to the last known translation if no translation is found for the current content.
|
|
112
|
-
* @param {string} [dictionaryName] - Optional name of the translation dictionary to use.
|
|
113
112
|
* @param {any} [context] - Additional context for translation key generation.
|
|
114
113
|
* @param {Object} [props] - Additional props for the component.
|
|
115
114
|
* @returns {JSX.Element} The rendered translation or fallback content based on the provided configuration.
|
|
@@ -118,8 +117,8 @@ var renderDefaultChildren_1 = __importDefault(require("../rendering/renderDefaul
|
|
|
118
117
|
*/
|
|
119
118
|
function T(_a) {
|
|
120
119
|
return __awaiter(this, void 0, void 0, function () {
|
|
121
|
-
var I18NConfig, locale, defaultLocale, translationRequired, translationsPromise, taggedChildren, childrenAsObjects, key, _b, translations, translation, target, translationPromise, promise, loadingFallback, errorFallback;
|
|
122
|
-
var children = _a.children, id = _a.id,
|
|
120
|
+
var I18NConfig, locale, defaultLocale, translationRequired, variables, variablesOptions, translationsPromise, taggedChildren, childrenAsObjects, key, _b, translations, translation, target, translationPromise, promise, loadingFallback, errorFallback;
|
|
121
|
+
var children = _a.children, id = _a.id, context = _a.context, renderSettings = _a.renderSettings, props = __rest(_a, ["children", "id", "context", "renderSettings"]);
|
|
123
122
|
return __generator(this, function (_c) {
|
|
124
123
|
switch (_c.label) {
|
|
125
124
|
case 0:
|
|
@@ -130,6 +129,7 @@ function T(_a) {
|
|
|
130
129
|
locale = (0, getLocale_1.default)();
|
|
131
130
|
defaultLocale = I18NConfig.getDefaultLocale();
|
|
132
131
|
translationRequired = I18NConfig.translationRequired(locale);
|
|
132
|
+
variables = props.variables, variablesOptions = props.variablesOptions;
|
|
133
133
|
if (translationRequired) {
|
|
134
134
|
translationsPromise = I18NConfig.getTranslations(locale, props.dictionaryName);
|
|
135
135
|
}
|
|
@@ -143,8 +143,8 @@ function T(_a) {
|
|
|
143
143
|
defaultLocale: defaultLocale
|
|
144
144
|
})];
|
|
145
145
|
}
|
|
146
|
-
if (!
|
|
147
|
-
return [4 /*yield*/, (0, internal_1.calculateHash)([childrenAsObjects,
|
|
146
|
+
if (!context) return [3 /*break*/, 2];
|
|
147
|
+
return [4 /*yield*/, (0, internal_1.calculateHash)([childrenAsObjects, context])];
|
|
148
148
|
case 1:
|
|
149
149
|
_b = _c.sent();
|
|
150
150
|
return [3 /*break*/, 4];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"T.js","sourceRoot":"","sources":["../../../src/server/inline/T.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"T.js","sourceRoot":"","sources":["../../../src/server/inline/T.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DA,oBA2GC;;AAtKD,8CAA2F;AAC3F,4EAAsD;AACtD,sEAAgD;AAChD,0EAAoD;AACpD,+BAAiC;AACjC,wDAAkC;AAClC,mGAA6E;AAC7E,6FAAuE;AAQvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,SAA8B,CAAC,CAAC,EAU/B;;;QATG,IAAA,QAAQ,cAAA,EAAE,EAAE,QAAA,EACZ,OAAO,aAAA,EACP,cAAc,oBAAA,EACX,KAAK,cAJoB,+CAK/B,CADW;;;;oBAQR,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACZ,sBAAO;oBACX,CAAC;oBAEK,UAAU,GAAG,IAAA,uBAAa,GAAE,CAAC;oBAC7B,MAAM,GAAG,IAAA,mBAAS,GAAE,CAAC;oBACrB,aAAa,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;oBAC9C,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC;oBAE3D,SAAS,GAAuB,KAAK,UAA5B,EAAE,gBAAgB,GAAK,KAAK,iBAAV,CAAW;oBAG9C,IAAI,mBAAmB,EAAE,CAAC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AC;6BACI,IAAI,cAAc,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;4BAC3C,eAAe,GAAG,aAAa,CAAC;wBACpC,CAAC;oBACL,CAAC;oBAED,IAAI,cAAc,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;wBACnC,8CAA8C;wBAC9C,sBAAO,uBAAC,kBAAQ,IAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,GAAI,EAAC;oBACpE,CAAC;oBAED,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;wBAClE,mCAAmC;wBACnC,iDAAiD;wBACjD,wGAAwG;wBACxG,sBAAO,aAAa,EAAC;oBACzB,CAAC;oBAED,sBAAO,CACH,uBAAC,gBAAQ,IAAC,QAAQ,EAAE,eAAe,YAC/B,uBAAC,kBAAQ,IAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,GAAI,GACjD,CACd,EAAA;;;;CAEJ"}
|
|
@@ -36,7 +36,7 @@ function renderDefaultChildren(_a) {
|
|
|
36
36
|
if (react_1.default.isValidElement(child)) {
|
|
37
37
|
var _a = child.props, generaltranslation = _a["data-generaltranslation"], props = __rest(_a, ['data-generaltranslation']);
|
|
38
38
|
if ((generaltranslation === null || generaltranslation === void 0 ? void 0 : generaltranslation.transformation) === "variable") {
|
|
39
|
-
var _b = (0, internal_1.getVariableProps)(props), variableName = _b.variableName, variableType = _b.variableType, variableValue = _b.variableValue, variableOptions = _b.variableOptions;
|
|
39
|
+
var _b = (0, internal_1.getVariableProps)(child.props), variableName = _b.variableName, variableType = _b.variableType, variableValue = _b.variableValue, variableOptions = _b.variableOptions; // needs both regular props and data-generaltranslation
|
|
40
40
|
variableValue = (typeof variables[variableName] !== 'undefined') ?
|
|
41
41
|
variables[variableName] : variableValue;
|
|
42
42
|
return (0, renderTranslatedChildren_1.renderVariable)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderDefaultChildren.js","sourceRoot":"","sources":["../../../src/server/rendering/renderDefaultChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wCAuEC;AA5ED,gDAAsD;AACtD,uEAA2D;AAC3D,8CAAqE;AACrE,8CAA8C;AAE9C,SAAwB,qBAAqB,CAAC,EAU7C;QATG,QAAQ,cAAA,EACR,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA,EACrB,qBAA+C,EAA/C,aAAa,mBAAG,qBAAU,CAAC,oBAAoB,KAAA;IAO/C,IAAM,iBAAiB,GAAG,UAAC,KAAgB;QACvC,IAAI,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,IAAM,KAGF,KAAK,CAAC,KAAK,EAFgB,kBAAkB,gCAAA,EAC1C,KAAK,cAFN,2BAGL,CAAc,CAAC;YAChB,IAAI,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,cAAc,MAAK,UAAU,EAAE,CAAC;gBAChD,IAAA,KAKA,IAAA,2BAAgB,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"renderDefaultChildren.js","sourceRoot":"","sources":["../../../src/server/rendering/renderDefaultChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wCAuEC;AA5ED,gDAAsD;AACtD,uEAA2D;AAC3D,8CAAqE;AACrE,8CAA8C;AAE9C,SAAwB,qBAAqB,CAAC,EAU7C;QATG,QAAQ,cAAA,EACR,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA,EACrB,qBAA+C,EAA/C,aAAa,mBAAG,qBAAU,CAAC,oBAAoB,KAAA;IAO/C,IAAM,iBAAiB,GAAG,UAAC,KAAgB;QAC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AAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACnH,CAAC,CAAC;IAEF,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;AACpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gt-next",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.server.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -120,6 +120,6 @@
|
|
|
120
120
|
],
|
|
121
121
|
"dependencies": {
|
|
122
122
|
"generaltranslation": "^2.0.70",
|
|
123
|
-
"gt-react": "^4.2.
|
|
123
|
+
"gt-react": "^4.2.8"
|
|
124
124
|
}
|
|
125
125
|
}
|