visuddhinanda 2 лет назад
Родитель
Сommit
22007a6e44
1 измененных файлов с 2 добавлено и 0 удалено
  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,
               },
             ];