@kong-ui-public/misc-widgets 0.1.1 → 0.1.2
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/misc-widgets.es.js
CHANGED
|
@@ -3298,9 +3298,13 @@ const ye = Dt(), ve = (t, r, n = !1) => {
|
|
|
3298
3298
|
...e,
|
|
3299
3299
|
source: r
|
|
3300
3300
|
};
|
|
3301
|
-
}, de = (t) => yt({
|
|
3301
|
+
}, de = (t = null) => yt({
|
|
3302
3302
|
name: "I18nT",
|
|
3303
3303
|
props: {
|
|
3304
|
+
i18n: {
|
|
3305
|
+
type: Object,
|
|
3306
|
+
default: null
|
|
3307
|
+
},
|
|
3304
3308
|
keypath: {
|
|
3305
3309
|
type: String,
|
|
3306
3310
|
required: !0
|
|
@@ -3318,7 +3322,7 @@ const ye = Dt(), ve = (t, r, n = !1) => {
|
|
|
3318
3322
|
return i.split(o).filter(Boolean);
|
|
3319
3323
|
};
|
|
3320
3324
|
return () => {
|
|
3321
|
-
const i = Object.keys(n).filter((s) => s !== "_"), o = t.messages[r.keypath].toString();
|
|
3325
|
+
const i = Object.keys(n).filter((s) => s !== "_"), o = (t || r.i18n).messages[r.keypath].toString();
|
|
3322
3326
|
let a = e(o);
|
|
3323
3327
|
return a = a.filter((s) => s !== ""), a.forEach((s, c) => {
|
|
3324
3328
|
if (!s.startsWith("{") && !s.endsWith("}"))
|