Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update i18n text for zh (#4771)

XIN_____d386b83b7bf9
diff --git a/web/src/components/MemoEditor/index.tsx b/web/src/components/MemoEditor/index.tsx
index 031114d41..540bbc3e5 100644
--- a/web/src/components/MemoEditor/index.tsx
+++ b/web/src/components/MemoEditor/index.tsx
@@ -373,7 +373,7 @@ const MemoEditor = observer((props: Props) => {
memoPatch.updateTime = updateTime;
}
if (updateMask.size === 0) {
- toast.error("No changes detected");
+ toast.error(t("editor.no-changes-detected"));
if (onCancel) {
onCancel();
}
diff --git a/web/src/locales/en.json b/web/src/locales/en.json
index c457cecaf..8156efee5 100644
--- a/web/src/locales/en.json
+++ b/web/src/locales/en.json
@@ -112,7 +112,8 @@
"editor": {
"add-your-comment-here": "Add your comment here...",
"any-thoughts": "Any thoughts...",
- "save": "Save"
+ "save": "Save",
+ "no-changes-detected": "No changes detected"
},
"filters": {
"has-code": "hasCode",
diff --git a/web/src/locales/zh-Hans.json b/web/src/locales/zh-Hans.json
index 572501795..ba953f0e4 100644
--- a/web/src/locales/zh-Hans.json
+++ b/web/src/locales/zh-Hans.json
@@ -108,7 +108,8 @@
"editor": {
"add-your-comment-here": "请输入您的评论...",
"any-thoughts": "此刻的想法...",
- "save": "保存"
+ "save": "保存",
+ "no-changes-detected": "未检测到更改"
},
"filters": {
"has-code": "有代码",