From 0d0f893b9390ba06e74eb41452331ba74874d846 Mon Sep 17 00:00:00 2001 From: Zeng1998 <1129142694@qq.com> Date: Mon, 21 Nov 2022 19:59:19 +0800 Subject: [PATCH] chore: update i18 for memo sharing (#513) --- web/src/components/ShareMemoImageDialog.tsx | 4 +++- web/src/locales/en.json | 4 +++- web/src/locales/vi.json | 4 +++- web/src/locales/zh.json | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/web/src/components/ShareMemoImageDialog.tsx b/web/src/components/ShareMemoImageDialog.tsx index 629e0e22..fe3d87bd 100644 --- a/web/src/components/ShareMemoImageDialog.tsx +++ b/web/src/components/ShareMemoImageDialog.tsx @@ -105,7 +105,9 @@ const ShareMemoImageDialog: React.FC = (props: Props) => {
-

{state.shortcutImgUrl ? "Click to save the image 👇" : "Generating the screenshot..."}

+

+ {state.shortcutImgUrl ? t("message.click-to-save-the-image") + " 👇" : t("message.generating-the-screenshot")} +

{state.shortcutImgUrl !== "" && } diff --git a/web/src/locales/en.json b/web/src/locales/en.json index dfe4f035..5908405e 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -185,6 +185,8 @@ "succeed-copy-content": "Succeed to copy content to clipboard.", "change-resource-filename": "Change resource filename", "resource-filename-updated": "Resource filename changed.", - "invalid-resource-filename": "Invalid filename." + "invalid-resource-filename": "Invalid filename.", + "click-to-save-the-image": "Click to save the image", + "generating-the-screenshot": "Generating the screenshot..." } } diff --git a/web/src/locales/vi.json b/web/src/locales/vi.json index 59598132..d752a028 100644 --- a/web/src/locales/vi.json +++ b/web/src/locales/vi.json @@ -184,6 +184,8 @@ "succeed-copy-content": "Đã sao chép nội dung memo thành công.", "change-resource-filename": "Thay đổi tên tệp tài nguyên", "resource-filename-updated": "Tên tệp tài nguyên đã thay đổi.", - "invalid-resource-filename": "Tên tệp không hợp lệ." + "invalid-resource-filename": "Tên tệp không hợp lệ.", + "click-to-save-the-image": "Bấm để lưu hình ảnh", + "generating-the-screenshot": "Đang tạo ảnh chụp màn hình ..." } } diff --git a/web/src/locales/zh.json b/web/src/locales/zh.json index f0042c37..70db4451 100644 --- a/web/src/locales/zh.json +++ b/web/src/locales/zh.json @@ -185,6 +185,8 @@ "succeed-copy-content": "复制内容到剪贴板成功。", "change-resource-filename": "更改资源文件名", "resource-filename-updated": "资源文件名更改成功。", - "invalid-resource-filename": "无效的资源文件名" + "invalid-resource-filename": "无效的资源文件名", + "click-to-save-the-image": "点击保存图片", + "generating-the-screenshot": "正在生成图片..." } }