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: fix i18n vietnamese typos and update MemoCardDialog (#228)

f97050a2d39faab
diff --git a/web/src/components/MemoCardDialog.tsx b/web/src/components/MemoCardDialog.tsx
index 410cb7b57..24c5ef97d 100644
--- a/web/src/components/MemoCardDialog.tsx
+++ b/web/src/components/MemoCardDialog.tsx
@@ -112,12 +112,12 @@ const MemoCardDialog: React.FC<Props> = (props: Props) => {
const handleCopyMemoLinkBtnClick = () => {
if (memo.visibility === "PRIVATE") {
- toastHelper.error("This memo is private only.");
+ toastHelper.error(t("message.private-only"));
return;
}
copy(`${window.location.origin}/explore?memoId=${memo.id}`);
- toastHelper.success("Copied");
+ toastHelper.success(t("message.copied"));
};
const handleEditMemoBtnClick = () => {
diff --git a/web/src/locales/en.json b/web/src/locales/en.json
index 71eb5a6ae..90db3b787 100644
--- a/web/src/locales/en.json
+++ b/web/src/locales/en.json
@@ -130,6 +130,8 @@
"login-failed": "Login failed",
"signup-failed": "Signup failed",
"user-not-found": "User not found",
- "password-changed": "Password Changed"
+ "password-changed": "Password Changed",
+ "private-only": "This memo is private only.",
+ "copied": "Copied"
}
}
diff --git a/web/src/locales/vi.json b/web/src/locales/vi.json
index d7dde5378..1afbd865a 100644
--- a/web/src/locales/vi.json
+++ b/web/src/locales/vi.json
@@ -13,8 +13,8 @@
"reset": "Khôi phục",
"language": "Ngôn Ngữ",
"version": "Phiên bản",
- "pin": "Gắn lên trên cùng",
- "unpin": "Gỡ khỏi vị trị trên cùng",
+ "pin": "Gắn lên",
+ "unpin": "Gỡ ra",
"edit": "Chỉnh sửa",
"restore": "Khôi phục",
"delete": "Xóa",
@@ -33,11 +33,11 @@
"title": "Tên",
"filter": "Bộ lọc",
"tags": "Thẻ",
- "yourself": "Của bạn",
+ "yourself": "Chính bạn",
"archived-at": "Lưu trữ lúc",
"changed": "đã thay đổi"
},
- "slogan": "Một mã nguồn mở, tự lưu lại mọi thứ bạn biết dựa trên SQLite db.",
+ "slogan": "Một mã nguồn mở, tự bạn lưu lại mọi thứ bạn biết dựa trên SQLite db.",
"auth": {
"signup-as-host": "Đăng ký như chủ nhân",
"host-tip": "Bạn đang đăng ký với tư cách chủ nhân của trang web này.",
@@ -100,14 +100,14 @@
"member-list": "Danh sách thành viên",
"account-section": {
"title": "Thông tin tài khoản",
- "change-password": "đổi mật khẩu"
+ "change-password": "Đổi mật khẩu"
},
"preference-section": {
"default-memo-visibility": "Chế độ memo mặc định",
"editor-font-style": "Thay đổi font cho trình soạn thảo"
},
"member-section": {
- "create-a-member": "Tạo một thành viên"
+ "create-a-member": "Tạo thành viên"
}
},
"amount-text": {
@@ -126,10 +126,12 @@
"fill-all": "Vui lòng nhập tất cả các mục.",
"new-password-not-match": "Mật khẩu mới không giống nhau.",
"image-load-failed": "Tải ảnh bị lỗi",
- "fill-form": "Please fill out this form",
+ "fill-form": "Hãy điền đầy đủ nội dung của form",
"login-failed": "Đăng nhập thất bại",
"signup-failed": "Đăng ký thất bại",
"user-not-found": "Không tìm thấy người dùng này",
- "password-changed": "mật khẩu đã được thay đổi"
+ "password-changed": "Mật khẩu đã được thay đổi",
+ "private-only": "Memo này có trạng thái riêng tư.",
+ "copied": "Đã sao chép"
}
}
diff --git a/web/src/locales/zh.json b/web/src/locales/zh.json
index 35fe871fd..91e91cb07 100644
--- a/web/src/locales/zh.json
+++ b/web/src/locales/zh.json
@@ -130,6 +130,8 @@
"login-failed": "登录失败",
"signup-failed": "注册失败",
"user-not-found": "未找到用户",
- "password-changed": "密码已修改"
+ "password-changed": "密码已修改",
+ "private-only": "This memo is private only.",
+ "copied": "Copied"
}
}