diff --git a/frontend/src/i18n.ts b/frontend/src/i18n.ts index ca4bb71..ef8f2aa 100644 --- a/frontend/src/i18n.ts +++ b/frontend/src/i18n.ts @@ -171,6 +171,7 @@ export const i18nData = { "Please check your network if the verification takes too long or the captcha does not appear.": "Please check your network if the verification takes too long or the captcha does not appear.", "About": "About", "Home": "Home", + "Other": "Other", } }, "zh-CN": { @@ -345,6 +346,7 @@ export const i18nData = { "Please check your network if the verification takes too long or the captcha does not appear.": "如果验证时间过长或验证码未出现, 请检查您的网络连接", "About": "关于", "Home": "首页", + "Other": "其他", } }, "zh-TW": { @@ -519,6 +521,7 @@ export const i18nData = { "Please check your network if the verification takes too long or the captcha does not appear.": "如果驗證時間過長或驗證碼未出現,請檢查您的網絡連接。", "About": "關於", "Home": "首頁", + "Other": "其他", } } } diff --git a/frontend/src/pages/resource_details_page.tsx b/frontend/src/pages/resource_details_page.tsx index 7d99c60..9626e7a 100644 --- a/frontend/src/pages/resource_details_page.tsx +++ b/frontend/src/pages/resource_details_page.tsx @@ -176,6 +176,8 @@ function Tags({tags}: { tags: Tag[] }) { const navigate = useNavigate() + const {t} = useTranslation() + for (const tag of tags || []) { const type = tag.type if (!tagsMap.has(type)) { @@ -189,7 +191,7 @@ function Tags({tags}: { tags: Tag[] }) { Array.from(tagsMap.entries()).map(([type, tags]) => (