zhejiushizhuce 2 vuotta sitten
vanhempi
sitoutus
ad5826254c
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/widgets/WSport/index.jsx

+ 2 - 1
src/widgets/WSport/index.jsx

@@ -1,6 +1,7 @@
 import styles from './styles.module.scss'
 import {useEffect, useRef} from "react";
 import {useThemeProvider} from "@contexts/themeContext";
+const i18n=global.i18n;
 const WSport=({})=>{
     const {isMobile}=useThemeProvider();
     const initBetby=()=>{
@@ -9,7 +10,7 @@ const WSport=({})=>{
             token: "",
             onTokenExpired: function() {},
             themeName: "default-table",
-            lang: "en",
+            lang: i18n.language,
             target: document.getElementById('betby'),
             betSlipOffsetBottom: 70,
             betSlipOffsetRight: 0,