gt-react 4.2.6 → 4.2.8
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/LICENSE.md +105 -0
- package/dist/branches/plurals/Plural.d.ts +0 -2
- package/dist/branches/plurals/Plural.d.ts.map +1 -1
- package/dist/branches/plurals/Plural.js +0 -2
- package/dist/branches/plurals/Plural.js.map +1 -1
- package/dist/inline/T.d.ts +2 -8
- package/dist/inline/T.d.ts.map +1 -1
- package/dist/inline/T.js +14 -4
- package/dist/inline/T.js.map +1 -1
- package/dist/provider/rendering/renderDefaultChildren.d.ts.map +1 -1
- package/dist/provider/rendering/renderDefaultChildren.js +3 -3
- package/dist/provider/rendering/renderDefaultChildren.js.map +1 -1
- package/dist/provider/rendering/renderTranslatedChildren.d.ts.map +1 -1
- package/dist/provider/rendering/renderTranslatedChildren.js +3 -3
- package/dist/provider/rendering/renderTranslatedChildren.js.map +1 -1
- package/package.json +1 -1
package/LICENSE.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, ALv2 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-ALv2
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2024 General Translation, Inc.
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under
|
|
20
|
+
these Terms and Conditions, as indicated by our inclusion of these Terms and
|
|
21
|
+
Conditions with the Software.
|
|
22
|
+
|
|
23
|
+
### License Grant
|
|
24
|
+
|
|
25
|
+
Subject to your compliance with this License Grant and the Patents,
|
|
26
|
+
Redistribution and Trademark clauses below, we hereby grant you the right to
|
|
27
|
+
use, copy, modify, create derivative works, publicly perform, publicly display
|
|
28
|
+
and redistribute the Software for any Permitted Purpose identified below.
|
|
29
|
+
|
|
30
|
+
### Permitted Purpose
|
|
31
|
+
|
|
32
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
|
|
33
|
+
means making the Software available to others in a commercial product or
|
|
34
|
+
service that:
|
|
35
|
+
|
|
36
|
+
1. substitutes for the Software;
|
|
37
|
+
|
|
38
|
+
2. substitutes for any other product or service we offer using the Software
|
|
39
|
+
that exists as of the date we make the Software available; or
|
|
40
|
+
|
|
41
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
42
|
+
|
|
43
|
+
Permitted Purposes specifically include using the Software:
|
|
44
|
+
|
|
45
|
+
1. for your internal use and access;
|
|
46
|
+
|
|
47
|
+
2. for non-commercial education;
|
|
48
|
+
|
|
49
|
+
3. for non-commercial research; and
|
|
50
|
+
|
|
51
|
+
4. in connection with professional services that you provide to a licensee
|
|
52
|
+
using the Software in accordance with these Terms and Conditions.
|
|
53
|
+
|
|
54
|
+
### Patents
|
|
55
|
+
|
|
56
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our
|
|
57
|
+
patents, the license grant above includes a license under our patents. If you
|
|
58
|
+
make a claim against any party that the Software infringes or contributes to
|
|
59
|
+
the infringement of any patent, then your patent license to the Software ends
|
|
60
|
+
immediately.
|
|
61
|
+
|
|
62
|
+
### Redistribution
|
|
63
|
+
|
|
64
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of
|
|
65
|
+
the Software.
|
|
66
|
+
|
|
67
|
+
If you redistribute any copies, modifications or derivatives of the Software,
|
|
68
|
+
you must include a copy of or a link to these Terms and Conditions and not
|
|
69
|
+
remove any copyright notices provided in or with the Software.
|
|
70
|
+
|
|
71
|
+
### Disclaimer
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
|
|
75
|
+
PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
76
|
+
|
|
77
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
|
|
78
|
+
SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
|
|
79
|
+
EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
80
|
+
|
|
81
|
+
### Trademarks
|
|
82
|
+
|
|
83
|
+
Except for displaying the License Details and identifying us as the origin of
|
|
84
|
+
the Software, you have no right under these Terms and Conditions to use our
|
|
85
|
+
trademarks, trade names, service marks or product names.
|
|
86
|
+
|
|
87
|
+
## Grant of Future License
|
|
88
|
+
|
|
89
|
+
We hereby irrevocably grant you an additional license to use the Software under
|
|
90
|
+
the Apache License, Version 2.0 that is effective on the second anniversary of
|
|
91
|
+
the date we make the Software available. On or after that date, you may use the
|
|
92
|
+
Software under the Apache License, Version 2.0, in which case the following
|
|
93
|
+
will apply:
|
|
94
|
+
|
|
95
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
96
|
+
this file except in compliance with the License.
|
|
97
|
+
|
|
98
|
+
You may obtain a copy of the License at
|
|
99
|
+
|
|
100
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
101
|
+
|
|
102
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
103
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
|
+
specific language governing permissions and limitations under the License.
|
|
@@ -15,8 +15,6 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @param {any} [children] - Fallback content to render if no matching plural branch is found.
|
|
17
17
|
* @param {number} [n] - The number used to determine the plural form. This is required for pluralization to work.
|
|
18
|
-
* @param {object} [branches] - An object containing possible plural branches, typically including `one` for singular
|
|
19
|
-
* and `other` for plural forms, but it may vary depending on the locale.
|
|
20
18
|
* @returns {JSX.Element} The rendered content corresponding to the plural form of `n`, or the fallback content.
|
|
21
19
|
* @throws {Error} If `n` is not provided or not a valid number.
|
|
22
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plural.d.ts","sourceRoot":"","sources":["../../../src/branches/plurals/Plural.tsx"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"Plural.d.ts","sourceRoot":"","sources":["../../../src/branches/plurals/Plural.tsx"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,iBAAS,MAAM,CAAC,EACZ,QAAQ,EAAE,CAAC,EAAE,GAAG,KAAK,EACxB,EAAE;IACC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,2CAYA;kBAlBQ,MAAM;;;AAsBf,eAAe,MAAM,CAAC"}
|
|
@@ -36,8 +36,6 @@ var useDefaultLocale_1 = __importDefault(require("../../hooks/useDefaultLocale")
|
|
|
36
36
|
*
|
|
37
37
|
* @param {any} [children] - Fallback content to render if no matching plural branch is found.
|
|
38
38
|
* @param {number} [n] - The number used to determine the plural form. This is required for pluralization to work.
|
|
39
|
-
* @param {object} [branches] - An object containing possible plural branches, typically including `one` for singular
|
|
40
|
-
* and `other` for plural forms, but it may vary depending on the locale.
|
|
41
39
|
* @returns {JSX.Element} The rendered content corresponding to the plural form of `n`, or the fallback content.
|
|
42
40
|
* @throws {Error} If `n` is not provided or not a valid number.
|
|
43
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Plural.js","sourceRoot":"","sources":["../../../src/branches/plurals/Plural.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;;;;;;;;;;;;;;;AAEZ,2CAAiD;AACjD,oEAA8C;AAC9C,kFAA4D;AAE5D
|
|
1
|
+
{"version":3,"file":"Plural.js","sourceRoot":"","sources":["../../../src/branches/plurals/Plural.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;;;;;;;;;;;;;;;AAEZ,2CAAiD;AACjD,oEAA8C;AAC9C,kFAA4D;AAE5D;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAS,MAAM,CAAC,EAMf;IALG,IAAA,QAAQ,cAAA,EAAE,CAAC,OAAA,EAAK,KAAK,cADT,iBAEf,CADwB;IAMb,IAA2B,kBAAkB,GAAkB,KAAK,2BAAvB,EAAK,QAAQ,UAAK,KAAK,EAAtE,2BAA8D,CAAF,CAAW;IAC7E,IAAM,MAAM,GAAG,IAAA,mBAAS,GAAE,CAAC;IAC3B,IAAM,aAAa,GAAG,IAAA,0BAAgB,GAAE,CAAC;IACzC,IAAI,OAAO,CAAC,KAAK,QAAQ;QACrB,MAAM,IAAI,KAAK,CAAC,iCAAyB,QAAQ,8BAAwB,CAAC,CAAC;IAC/E,IAAM,MAAM,GAAG,IAAA,0BAAe,EAAC,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,EAAE,QAAQ,CAAC,IAAI,QAAQ,CAAC;IACjF,OAAO,CACH,4DAA+B,kBAAkB,eAAa,CAAC,sBAAoB,QAAQ,YACtF,MAAM,GACJ,CACV,CAAC;AACN,CAAC;AAED,MAAM,CAAC,gBAAgB,GAAG,QAAQ,CAAC;AAEnC,kBAAe,MAAM,CAAC"}
|
package/dist/inline/T.d.ts
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @param {string} [id] - Required identifier for the translation string.
|
|
6
6
|
* @param {React.ReactNode} children - The content to be translated or displayed.
|
|
7
|
-
* @param {
|
|
8
|
-
* @param {Object} [variablesOptions] - Optional formatting options for numeric or date variables.
|
|
9
|
-
* @param {any} [context] - Additional context for translation key generation.
|
|
7
|
+
* @param {any} [context] - Additional context used for translation.
|
|
10
8
|
* @param {Object} [props] - Additional props for the component.
|
|
11
9
|
* @returns {JSX.Element} The rendered translation or fallback content based on the provided configuration.
|
|
12
10
|
*
|
|
@@ -29,13 +27,9 @@
|
|
|
29
27
|
* ```
|
|
30
28
|
*
|
|
31
29
|
*/
|
|
32
|
-
export default function T({ children, id,
|
|
30
|
+
export default function T({ children, id, ...props }: {
|
|
33
31
|
children?: any;
|
|
34
32
|
id: string;
|
|
35
|
-
variables?: Record<string, any>;
|
|
36
|
-
variablesOptions?: {
|
|
37
|
-
[key: string]: Intl.NumberFormatOptions | Intl.DateTimeFormatOptions;
|
|
38
|
-
};
|
|
39
33
|
context?: string;
|
|
40
34
|
[key: string]: any;
|
|
41
35
|
}): JSX.Element;
|
package/dist/inline/T.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"T.d.ts","sourceRoot":"","sources":["../../src/inline/T.tsx"],"names":[],"mappings":"AAWA
|
|
1
|
+
{"version":3,"file":"T.d.ts","sourceRoot":"","sources":["../../src/inline/T.tsx"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,CAAC,OAAO,UAAU,CAAC,CAAC,EACtB,QAAQ,EAAE,EAAE,EAAE,GAAG,KAAK,EACzB,EAAE;IACC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB,GAAG,GAAG,CAAC,OAAO,CA8Cd"}
|
package/dist/inline/T.js
CHANGED
|
@@ -10,6 +10,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
13
24
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
26
|
};
|
|
@@ -32,9 +43,7 @@ var react_2 = require("react");
|
|
|
32
43
|
*
|
|
33
44
|
* @param {string} [id] - Required identifier for the translation string.
|
|
34
45
|
* @param {React.ReactNode} children - The content to be translated or displayed.
|
|
35
|
-
* @param {
|
|
36
|
-
* @param {Object} [variablesOptions] - Optional formatting options for numeric or date variables.
|
|
37
|
-
* @param {any} [context] - Additional context for translation key generation.
|
|
46
|
+
* @param {any} [context] - Additional context used for translation.
|
|
38
47
|
* @param {Object} [props] - Additional props for the component.
|
|
39
48
|
* @returns {JSX.Element} The rendered translation or fallback content based on the provided configuration.
|
|
40
49
|
*
|
|
@@ -58,10 +67,11 @@ var react_2 = require("react");
|
|
|
58
67
|
*
|
|
59
68
|
*/
|
|
60
69
|
function T(_a) {
|
|
61
|
-
var children = _a.children, id = _a.id,
|
|
70
|
+
var children = _a.children, id = _a.id, props = __rest(_a, ["children", "id"]);
|
|
62
71
|
if (!id) {
|
|
63
72
|
throw new Error("Client-side <T> with no provided 'id' prop. Children: ".concat(children));
|
|
64
73
|
}
|
|
74
|
+
var variables = props.variables, variablesOptions = props.variablesOptions;
|
|
65
75
|
var translations = (0, GTContext_1.default)("<T id=\"".concat(id, "\"> used on the client-side outside of <GTProvider>")).translations;
|
|
66
76
|
var t = (0, useGT_1.default)();
|
|
67
77
|
if (!children) {
|
package/dist/inline/T.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"T.js","sourceRoot":"","sources":["../../src/inline/T.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"T.js","sourceRoot":"","sources":["../../src/inline/T.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCA,oBAqDC;;AA7FD,gDAA0B;AAC1B,yDAAoD;AACpD,+EAAyD;AACzD,iEAA2C;AAC3C,sGAAgF;AAChF,wCAA8C;AAC9C,oEAAiD;AACjD,4GAAsF;AACtF,yDAAmC;AACnC,+BAAgC;AAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAwB,CAAC,CAAC,EAOzB;IANG,IAAA,QAAQ,cAAA,EAAE,EAAE,QAAA,EAAK,KAAK,cADA,kBAEzB,CADyB;IAQtB,IAAI,CAAC,EAAE,EAAE,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,gEAAyD,QAAQ,CAAE,CAAC,CAAA;IACxF,CAAC;IAEO,IAAA,SAAS,GAAuB,KAAK,UAA5B,EAAE,gBAAgB,GAAK,KAAK,iBAAV,CAAW;IAEtC,IAAA,YAAY,GAAK,IAAA,mBAAY,EACjC,kBAAU,EAAE,wDAAoD,CACnE,aAFmB,CAElB;IAEF,IAAM,CAAC,GAAG,IAAA,eAAK,GAAE,CAAC;IAElB,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,OAAO,uBAAC,eAAK,CAAC,QAAQ,cAAW,CAAC,CAAC,EAAE,aAAI,SAAS,WAAA,IAAK,CAAC,gBAAgB,IAAI,EAAE,gBAAgB,kBAAA,EAAE,CAAC,EAAE,IAAvE,EAAE,CAAuF,CAAC;IAC1H,CAAC;IAED,IAAM,MAAM,GAAG,IAAA,mBAAS,GAAE,CAAC;IAC3B,IAAM,aAAa,GAAG,IAAA,0BAAgB,GAAE,CAAC;IAEzC,IAAM,cAAc,GAAG,IAAA,eAAO,EAAC,cAAM,OA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SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,aAAa,EAAE,MAAM,CAAA;CACxB,
|
|
1
|
+
{"version":3,"file":"renderDefaultChildren.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/renderDefaultChildren.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AASvD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC1C,QAAQ,EAAE,SAAc,EAAE,gBAAqB,EAC/C,aAAoC,EACvC,EAAE;IACC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,aAAa,EAAE,MAAM,CAAA;CACxB,mBA6DA"}
|
|
@@ -53,17 +53,17 @@ function renderDefaultChildren(_a) {
|
|
|
53
53
|
typeof child.props.n === 'number' ? child.props.n :
|
|
54
54
|
child.props['data-gt-n'];
|
|
55
55
|
var branches = generaltranslation.branches || {};
|
|
56
|
-
return react_1.default.createElement('span', __assign(__assign({}, child.props), { children: handleChildren((0, internal_1.getPluralBranch)(n, [defaultLocale], branches) || child.props.children) }));
|
|
56
|
+
return react_1.default.createElement('span', __assign(__assign({}, child.props), { 'data-generaltranslation': undefined, children: handleChildren((0, internal_1.getPluralBranch)(n, [defaultLocale], branches) || child.props.children) }));
|
|
57
57
|
}
|
|
58
58
|
if ((generaltranslation === null || generaltranslation === void 0 ? void 0 : generaltranslation.transformation) === "branch") {
|
|
59
59
|
var _b = child.props, children_1 = _b.children, name_1 = _b.name, branch = _b.branch, branches = __rest(_b, ["children", "name", "branch"]);
|
|
60
60
|
name_1 = name_1 || child.props['data-gt-name'] || "branch";
|
|
61
61
|
branch = variables[name_1] || branch || child.props['data-gt-branch-name'];
|
|
62
62
|
branches = generaltranslation.branches || {};
|
|
63
|
-
return react_1.default.createElement('span', __assign(__assign({}, child.props), { children: handleChildren(branches[branch]) }));
|
|
63
|
+
return react_1.default.createElement('span', __assign(__assign({}, child.props), { 'data-generaltranslation': undefined, children: handleChildren(branches[branch]) }));
|
|
64
64
|
}
|
|
65
65
|
if (child.props.children) {
|
|
66
|
-
return react_1.default.cloneElement(child, __assign(__assign({}, child.props), { children: handleChildren(child.props.children) }));
|
|
66
|
+
return react_1.default.cloneElement(child, __assign(__assign({}, child.props), { 'data-generaltranslation': undefined, children: handleChildren(child.props.children) }));
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
return child;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderDefaultChildren.js","sourceRoot":"","sources":["../../../src/provider/rendering/renderDefaultChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,
|
|
1
|
+
{"version":3,"file":"renderDefaultChildren.js","sourceRoot":"","sources":["../../../src/provider/rendering/renderDefaultChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wCAqEC;AA9ED,gDAAuD;AACvD,mEAA6C;AAC7C,wFAAiE;AACjE,uEAA4D;AAE5D,2CAAiD;AAEjD,0DAAmE;AAEnE,SAAwB,qBAAqB,CAAC,EAQ7C;QAPG,QAAQ,cAAA,EAAE,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EAAE,wBAAqB,EAArB,gBAAgB,mBAAG,EAAE,KAAA,EAC/C,qBAAoC,EAApC,aAAa,mBAAG,iCAAoB,KAAA;IAQpC,IAAM,iBAAiB,GAAG,UAAC,KAAgB;QACvC,IAAI,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;YAC9B,IAAM,kBAAkB,GAAG,IAAA,mBAAS,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AQ,CAAC,CAAC;IACnH,CAAC,CAAC;IAEF,OAAO,cAAc,CAAC,QAAQ,CAAC,CAAC;AAGpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderTranslatedChildren.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgC,SAAS,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAqC,MAAM,wBAAwB,CAAC;AAW/F,wBAAgB,cAAc,CAAC,EAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAC7D,EAAE;IACC,YAAY,EAAE,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAA;IAC7D,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC;IACnB,eAAe,EAAE,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,qBAAqB,CAAA;CACzE,2CA6BA;
|
|
1
|
+
{"version":3,"file":"renderTranslatedChildren.d.ts","sourceRoot":"","sources":["../../../src/provider/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgC,SAAS,EAAE,MAAM,OAAO,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAqC,MAAM,wBAAwB,CAAC;AAW/F,wBAAgB,cAAc,CAAC,EAC3B,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAC7D,EAAE;IACC,YAAY,EAAE,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAA;IAC7D,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,GAAG,CAAC;IACnB,eAAe,EAAE,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,qBAAqB,CAAA;CACzE,2CA6BA;AAsED,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAAC,EAC7C,MAAM,EAAE,MAAM,EAAE,SAAc,EAAE,gBAAqB,EACrD,OAAgC,EACnC,EAAE;IACC,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM,EAAE,CAAA;CACpB,GAAG,SAAS,CA6GZ"}
|
|
@@ -54,7 +54,7 @@ function renderTranslatedElement(_a) {
|
|
|
54
54
|
var sourceBranch = (0, internal_1.getPluralBranch)(n, locales, sourceBranches) || sourceElement.props.children;
|
|
55
55
|
var targetBranches = targetElement.props["data-generaltranslation"].branches || {};
|
|
56
56
|
var targetBranch = (0, internal_1.getPluralBranch)(n, locales, targetBranches) || targetElement.props.children;
|
|
57
|
-
return react_1.default.createElement('span', __assign(__assign({}, props), { children: renderTranslatedChildren({
|
|
57
|
+
return react_1.default.createElement('span', __assign(__assign({}, props), { 'data-generaltranslation': undefined, children: renderTranslatedChildren({
|
|
58
58
|
source: sourceBranch,
|
|
59
59
|
target: targetBranch,
|
|
60
60
|
variables: variables,
|
|
@@ -68,7 +68,7 @@ function renderTranslatedElement(_a) {
|
|
|
68
68
|
branch = variables[name_1] || branch || sourceElement.props['data-gt-branch-name'];
|
|
69
69
|
var sourceBranch = (generaltranslation.branches || {})[branch] || children;
|
|
70
70
|
var targetBranch = (targetElement.props["data-generaltranslation"].branches || {})[branch] || targetElement.props.children;
|
|
71
|
-
return react_1.default.createElement('span', __assign(__assign({}, props), { children: renderTranslatedChildren({
|
|
71
|
+
return react_1.default.createElement('span', __assign(__assign({}, props), { 'data-generaltranslation': undefined, children: renderTranslatedChildren({
|
|
72
72
|
source: sourceBranch,
|
|
73
73
|
target: targetBranch,
|
|
74
74
|
variables: variables,
|
|
@@ -77,7 +77,7 @@ function renderTranslatedElement(_a) {
|
|
|
77
77
|
}) }));
|
|
78
78
|
}
|
|
79
79
|
if ((props === null || props === void 0 ? void 0 : props.children) && ((_b = targetElement.props) === null || _b === void 0 ? void 0 : _b.children)) {
|
|
80
|
-
return react_1.default.cloneElement(sourceElement, __assign(__assign({}, props), { children: renderTranslatedChildren({
|
|
80
|
+
return react_1.default.cloneElement(sourceElement, __assign(__assign({}, props), { 'data-generaltranslation': undefined, children: renderTranslatedChildren({
|
|
81
81
|
source: props.children,
|
|
82
82
|
target: targetElement.props.children,
|
|
83
83
|
variables: variables,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderTranslatedChildren.js","sourceRoot":"","sources":["../../../src/provider/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,wCAoCC;
|
|
1
|
+
{"version":3,"file":"renderTranslatedChildren.js","sourceRoot":"","sources":["../../../src/provider/rendering/renderTranslatedChildren.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAYA,wCAoCC;AAsED,2CAsHC;;AA5OD,gDAAuE;AAEvE,4DAAsC;AACtC,4DAAsC;AACtC,sEAAgD;AAChD,sEAAgD;AAChD,iFAA2D;AAC3D,mEAA6C;AAC7C,wFAAiE;AACjE,0DAAmE;AACnE,2CAAiD;AAEjD,SAAgB,cAAc,CAAC,EAO9B;QANG,YAAY,kBAAA,EAAE,YAAY,kBAAA,EAAE,aAAa,mBAAA,EAAE,eAAe,qBAAA;IAO1D,IAAI,YAAY,KAAK,QAAQ,EAAE,CAAC;QAC5B,OAAO,CACH,uBAAC,aAAG,IACA,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,eAAe,GAC1B,CACL,CAAA;IACL,CAAC;SAAM,IAAI,YAAY,KAAK,UAAU,EAAE,CAAC;QACrC,OAAO,CACH,uBAAC,kBAAQ,IACL,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,aAAa,EACpB,OAAO,EAAE,eAAe,GAC1B,CACL,CAAA;IACL,CAAC;SAAM,IAAI,Y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