feat: add import words helper
This commit is contained in:
@@ -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文件,每一行一個單字。`,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user