livevegas-ui-kit 1.0.295 → 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.
@@ -27,4 +27,4 @@ import { TournamentAndPoints } from './TournamentAndPoints';
27
27
  import { LaunchFailed } from './LaunchFailed';
28
28
  import { initI18n, i18n } from '../services/i18n/config';
29
29
 
30
- export { i18n, initI18n, MoibleChipBoard, BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Card, Chip, Chip3D, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, BlackjeckInsurance, Wager, BonusModalContent, CardsRightInfo, TournamentAndPoints, CardTexas, FullScreenView, LaunchFailed };
30
+ export { i18n, initI18n, MoibleChipBoard, BlackJackeWinPopup, BalanceAndBet, TopIcons, Button, Card, Chip, Chip3D, MobileMenu, PopupWrapper, ToLobby, TournamentNotification, ChipBoard, Timer, MobileBottomInfo, Reconnect, NotPlaying, ToastMessages, BlackJackAction, BlackjeckInsurance, Wager, BonusModalContent, CardsRightInfo, TournamentAndPoints, CardTexas, FullScreenView, LaunchFailed, };
@@ -18373,13 +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) {
18376
+ async function Xs(e = Js) {
18377
18377
  let t = zs.get(zs.language) || $.English;
18378
- 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({
18379
18382
  lng: t,
18380
18383
  fallbackLng: $.English,
18381
18384
  interpolation: { escapeValue: !1 },
18382
- resources: e
18385
+ resources: e,
18386
+ returnNull: !1
18383
18387
  }), Ys;
18384
18388
  }
18385
18389
  //#endregion