livevegas-ui-kit 1.0.296 → 1.0.297

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.
@@ -18373,14 +18373,17 @@ var Ns = i.button`
18373
18373
  [$.Spanish]: { translation: Vs },
18374
18374
  [$.Uzbek]: { translation: qs }
18375
18375
  }, Ys = f.use(e);
18376
- function Xs(e = Js) {
18377
- console.log(e, "resources");
18376
+ async function Xs(e = Js) {
18378
18377
  let t = zs.get(zs.language) || $.English;
18379
- return Ys.init({
18378
+ return Ys.isInitialized ? (Object.keys(e).forEach((t) => {
18379
+ let n = e[t]?.translation;
18380
+ n && Ys.addResourceBundle(t, "translation", n, !0, !0);
18381
+ }), await Ys.changeLanguage(t)) : await Ys.init({
18380
18382
  lng: t,
18381
18383
  fallbackLng: $.English,
18382
18384
  interpolation: { escapeValue: !1 },
18383
- resources: e
18385
+ resources: e,
18386
+ returnNull: !1
18384
18387
  }), Ys;
18385
18388
  }
18386
18389
  //#endregion