diff --git a/web/src/components/MemoCardDialog.tsx b/web/src/components/MemoCardDialog.tsx index 410cb7b5..24c5ef97 100644 --- a/web/src/components/MemoCardDialog.tsx +++ b/web/src/components/MemoCardDialog.tsx @@ -112,12 +112,12 @@ const MemoCardDialog: React.FC = (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 71eb5a6a..90db3b78 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 d7dde537..1afbd865 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 35fe871f..91e91cb0 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" } }