feat: add import words helper

This commit is contained in:
Gabe
2025-09-26 20:56:52 +08:00
parent 6bafcb0ec0
commit 6d95e7debc
2 changed files with 8 additions and 0 deletions

View File

@@ -1468,4 +1468,9 @@ export const I18N = {
en: `Export old version`,
zh_TW: `匯出舊版`,
},
favorite_words_helper: {
zh: `导入词汇请使用txt文件每一行一个单词。`,
en: `To import vocabulary, please use a txt file with one word per line.`,
zh_TW: `匯入詞彙請使用txt文件每一行一個單字。`,
},
};

View File

@@ -15,6 +15,7 @@ import DownloadButton from "./DownloadButton";
import UploadButton from "./UploadButton";
import Button from "@mui/material/Button";
import ClearAllIcon from "@mui/icons-material/ClearAll";
import Alert from "@mui/material/Alert";
import { isValidWord } from "../../libs/utils";
import { kissLog } from "../../libs/log";
import { apiTranslate } from "../../apis";
@@ -104,6 +105,8 @@ export default function FavWords() {
return (
<Box>
<Stack spacing={3}>
<Alert severity="info">{i18n("favorite_words_helper")}</Alert>
<Stack
direction="row"
alignItems="center"