From 1e46558fc014671d91494c0b48ab33227b5b5902 Mon Sep 17 00:00:00 2001 From: MCKero6423 Date: Mon, 1 Dec 2025 13:37:22 +0800 Subject: [PATCH] Update 11 files: config.ts, link-presets.ts, i18nKey.ts, en.ts, es.ts, id.ts, ja.ts, ko.ts, th.ts, zh_CN.ts, zh_TW.ts --- src/config.ts | 1 + src/constants/link-presets.ts | 4 ++++ src/i18n/i18nKey.ts | 1 + src/i18n/languages/en.ts | 1 + src/i18n/languages/es.ts | 1 + src/i18n/languages/id.ts | 1 + src/i18n/languages/ja.ts | 1 + src/i18n/languages/ko.ts | 1 + src/i18n/languages/th.ts | 1 + src/i18n/languages/zh_CN.ts | 1 + src/i18n/languages/zh_TW.ts | 1 + 11 files changed, 14 insertions(+) diff --git a/src/config.ts b/src/config.ts index f0ee84c..9285b4c 100644 --- a/src/config.ts +++ b/src/config.ts @@ -41,6 +41,7 @@ export const navBarConfig: NavBarConfig = { LinkPreset.Series, LinkPreset.Friends, LinkPreset.About, + LinkPreset.Expenses, { name: "状态", url: "https://status.mckero.com", diff --git a/src/constants/link-presets.ts b/src/constants/link-presets.ts index 99fca38..ac3bbba 100644 --- a/src/constants/link-presets.ts +++ b/src/constants/link-presets.ts @@ -26,4 +26,8 @@ export const LinkPresets: { [key in LinkPreset]: NavBarLink } = { name: i18n(I18nKey.friends), url: '/friends/', }, + [LinkPreset.,Expenses]: { + name: i18n(I18nKey.expenses), + url: "/expenses/", + }, }; diff --git a/src/i18n/i18nKey.ts b/src/i18n/i18nKey.ts index 08fb471..b3f846a 100644 --- a/src/i18n/i18nKey.ts +++ b/src/i18n/i18nKey.ts @@ -34,6 +34,7 @@ enum I18nKey { license = "license", series = 'series', friends = 'friends', + expenses = 'expenses', } export default I18nKey; diff --git a/src/i18n/languages/en.ts b/src/i18n/languages/en.ts index 5a56bb8..3c43c2e 100644 --- a/src/i18n/languages/en.ts +++ b/src/i18n/languages/en.ts @@ -37,4 +37,5 @@ export const en: Translation = { [Key.license]: "License", [Key.series]: 'Series', [Key.friends]: 'Friendly link', + [Key.expenses]: 'expenses', }; diff --git a/src/i18n/languages/es.ts b/src/i18n/languages/es.ts index a12f030..94abd64 100644 --- a/src/i18n/languages/es.ts +++ b/src/i18n/languages/es.ts @@ -37,4 +37,5 @@ export const es: Translation = { [Key.license]: "Licencia", [Key.series]: 'Serie', [Key.friends]: 'Enlace amigable', + [Key.expenses]: 'gastos', }; diff --git a/src/i18n/languages/id.ts b/src/i18n/languages/id.ts index 4407a89..33967cf 100644 --- a/src/i18n/languages/id.ts +++ b/src/i18n/languages/id.ts @@ -36,4 +36,5 @@ export const id: Translation = { [Key.publishedAt]: "Diterbitkan pada", [Key.license]: "Lisensi", [Key.friends]: 'Teman', + [Key.expenses]: 'pengeluaran', }; diff --git a/src/i18n/languages/ja.ts b/src/i18n/languages/ja.ts index ccc577b..c822143 100644 --- a/src/i18n/languages/ja.ts +++ b/src/i18n/languages/ja.ts @@ -37,4 +37,5 @@ export const ja: Translation = { [Key.license]: "ライセンス", [Key.series]: 'シリーズ', [Key.friends]: 'フレンドリンク', + [Key.expenses]: '経費', }; diff --git a/src/i18n/languages/ko.ts b/src/i18n/languages/ko.ts index 31e678d..041ccce 100644 --- a/src/i18n/languages/ko.ts +++ b/src/i18n/languages/ko.ts @@ -37,4 +37,5 @@ export const ko: Translation = { [Key.license]: "라이선스", [Key.series]: '시리즈', [Key.friends]: '친구 링크', + [Key.expenses]: '경비', }; diff --git a/src/i18n/languages/th.ts b/src/i18n/languages/th.ts index bda728a..7e5a949 100644 --- a/src/i18n/languages/th.ts +++ b/src/i18n/languages/th.ts @@ -37,4 +37,5 @@ export const th: Translation = { [Key.license]: "สัญญาอนุญาต", [Key.series]: 'ชุด', [Key.friends]: 'เพื่อนร่วมลิงก์' + [Key.expenses]: 'ค่าใช้จ่าย', }; diff --git a/src/i18n/languages/zh_CN.ts b/src/i18n/languages/zh_CN.ts index 5b8b162..895c598 100644 --- a/src/i18n/languages/zh_CN.ts +++ b/src/i18n/languages/zh_CN.ts @@ -37,4 +37,5 @@ export const zh_CN: Translation = { [Key.license]: "许可协议", [Key.series]: '系列', [Key.friends]: '友链', + [Key.expenses]: '开支', }; diff --git a/src/i18n/languages/zh_TW.ts b/src/i18n/languages/zh_TW.ts index b8f11ac..8c15e1b 100644 --- a/src/i18n/languages/zh_TW.ts +++ b/src/i18n/languages/zh_TW.ts @@ -37,4 +37,5 @@ export const zh_TW: Translation = { [Key.license]: "許可協議", [Key.series]: '系列', [Key.friends]: '友鏈', + [Key.expenses]: '開支', };