chore: update i18n (#215)

This commit is contained in:
ChasLui
2022-09-15 06:53:51 +08:00
committed by GitHub
parent 54db6eda04
commit 7e8d1128f8
15 changed files with 109 additions and 43 deletions

View File

@ -110,7 +110,7 @@ const MemoEditor = () => {
const { type } = file;
if (!type.startsWith("image")) {
toastHelper.error("Only image file supported.");
toastHelper.error(t("editor.only-image-supported"));
return;
}
@ -133,7 +133,7 @@ const MemoEditor = () => {
const handleSaveBtnClick = async (content: string) => {
if (content === "") {
toastHelper.error("Content can't be empty");
toastHelper.error(t("editor.cant-empty"));
return;
}