@shipeasy/sdk 2.1.2 → 2.1.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/dist/client/index.js +2 -1
- package/dist/client/index.mjs +2 -1
- package/package.json +1 -1
package/dist/client/index.js
CHANGED
|
@@ -812,7 +812,8 @@ var i18n = {
|
|
|
812
812
|
*/
|
|
813
813
|
tEl(key, fallback, variables, desc) {
|
|
814
814
|
const hasTranslation = typeof window !== "undefined" && Boolean(window.i18n) || Boolean(getSSRI18nStore()?.strings[key]);
|
|
815
|
-
const
|
|
815
|
+
const translated = hasTranslation ? this.t(key, variables) : void 0;
|
|
816
|
+
const text = translated && translated !== key ? translated : fallback;
|
|
816
817
|
if (!_createElement) return text;
|
|
817
818
|
return _createElement("span", labelAttrs(key, variables, desc), text);
|
|
818
819
|
},
|
package/dist/client/index.mjs
CHANGED
|
@@ -769,7 +769,8 @@ var i18n = {
|
|
|
769
769
|
*/
|
|
770
770
|
tEl(key, fallback, variables, desc) {
|
|
771
771
|
const hasTranslation = typeof window !== "undefined" && Boolean(window.i18n) || Boolean(getSSRI18nStore()?.strings[key]);
|
|
772
|
-
const
|
|
772
|
+
const translated = hasTranslation ? this.t(key, variables) : void 0;
|
|
773
|
+
const text = translated && translated !== key ? translated : fallback;
|
|
773
774
|
if (!_createElement) return text;
|
|
774
775
|
return _createElement("span", labelAttrs(key, variables, desc), text);
|
|
775
776
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipeasy/sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Shipeasy SDK — feature gates, runtime configs, experiments, and metrics for the Shipeasy hosted service.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://shipeasy.ai",
|