浏览代码

no message

zhejiushizhuce 2 年之前
父节点
当前提交
ad5826254c
共有 1 个文件被更改,包括 2 次插入 和 1 次删除
  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,