diff --git a/web/src/components/UserBanner.tsx b/web/src/components/UserBanner.tsx index e0e66748..313681e6 100644 --- a/web/src/components/UserBanner.tsx +++ b/web/src/components/UserBanner.tsx @@ -1,6 +1,7 @@ import { useCallback, useEffect, useState } from "react"; import * as utils from "../helpers/utils"; import userService from "../services/userService"; +import useI18n from "../hooks/useI18n"; import { locationService } from "../services"; import { useAppSelector } from "../store"; import Icon from "./Icon"; @@ -8,6 +9,7 @@ import MenuBtnsPopup from "./MenuBtnsPopup"; import "../less/user-banner.less"; const UserBanner = () => { + const { t } = useI18n(); const { user, owner } = useAppSelector((state) => state.user); const { memos, tags } = useAppSelector((state) => state.memo); const [shouldShowPopupBtns, setShouldShowPopupBtns] = useState(false); @@ -51,15 +53,15 @@ const UserBanner = () => {
{memos.length} - MEMO + {t("amount-text.memo")}
{tags.length} - TAG + {t("amount-text.tag")}
{createdDays} - DAY + {t("amount-text.day")}
diff --git a/web/src/locales/en.json b/web/src/locales/en.json index 0f25eaab..a16a1a66 100644 --- a/web/src/locales/en.json +++ b/web/src/locales/en.json @@ -109,6 +109,11 @@ "create-a-member": "Create a member" } }, + "amount-text": { + "memo": "MEMO", + "tag": "TAG", + "day": "DAY" + }, "message": { "no-memos": "no memos 🌃", "memos-ready": "all memos are ready 🎉", diff --git a/web/src/locales/vi.json b/web/src/locales/vi.json index 30d996e8..45ce32de 100644 --- a/web/src/locales/vi.json +++ b/web/src/locales/vi.json @@ -47,7 +47,7 @@ "daily-review": "Đánh giá hàng ngày", "resources": "Tài nguyên", "setting": "Cài đặt", - "archived": "Lưu" + "archived": "Lưu trữ" }, "daily-review": { "oops-nothing": "Oops, chẳng có gì ở đây cả." @@ -109,6 +109,11 @@ "create-a-member": "Tạo một thành viên" } }, + "amount-text": { + "memo": "MEMO", + "tag": "THẺ", + "day": "NGÀY" + }, "message": { "no-memos": "Không có memo nào 🌃", "memos-ready": "Tất cả memo ở đây rồi 🎉", diff --git a/web/src/locales/zh.json b/web/src/locales/zh.json index 3448f9d7..921c2797 100644 --- a/web/src/locales/zh.json +++ b/web/src/locales/zh.json @@ -109,6 +109,11 @@ "create-a-member": "创建成员" } }, + "amount-text": { + "memo": "MEMO", + "tag": "TAG", + "day": "DAY" + }, "message": { "no-memos": "没有 memo 了 🌃", "memos-ready": "所有 memo 已就绪 🎉",