Browse Source

lang 取 ui数据

visuddhinanda 2 năm trước cách đây
mục cha
commit
22007a6e44
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      dashboard/src/components/dict/MyCreate.tsx

+ 2 - 0
dashboard/src/components/dict/MyCreate.tsx

@@ -15,6 +15,7 @@ import {
 import { useAppSelector } from "../../hooks";
 import { add, updateIndex, wordIndex } from "../../reducers/inline-dict";
 import store from "../../store";
+import { get as getUiLang } from "../../locales";
 
 interface IWidget {
   word?: string;
@@ -161,6 +162,7 @@ const MyCreateWidget = ({ word }: IWidget) => {
                 note: editWord.note?.value,
                 factors: editWord.factors?.value,
                 factormean: editWord.factorMeaning?.value,
+                language: getUiLang(),
                 confidence: editWord.confidence,
               },
             ];