Skip to content

Commit

Permalink
fix: MisakiiiView title i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
sctop committed Jan 19, 2025
1 parent 05f1cbd commit a42454d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,6 @@
"app-title-prefix-profile": "Profile|",
"app-title-full-whybalv": "Why BALV",
"app-title-full-search-advanced": "Advanced Search",
"app-title-full-search-char": "Character Search"
"app-title-full-search-char": "Character Search",
"app-title-full-misakiii": "Misakiii!"
}
3 changes: 2 additions & 1 deletion src/i18n/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,6 @@
"app-title-prefix-profile": "人物档案|",
"app-title-full-whybalv": "为什么有这个项目",
"app-title-full-search-advanced": "高级搜索",
"app-title-full-search-char": "人物搜索"
"app-title-full-search-char": "人物搜索",
"app-title-full-misakiii": "美咲啊啊啊!"
}
3 changes: 2 additions & 1 deletion src/i18n/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,6 @@
"app-title-prefix-profile": "人物檔案|",
"app-title-full-whybalv": "為什麼有這個專案",
"app-title-full-search-advanced": "高階搜尋",
"app-title-full-search-char": "人物搜尋"
"app-title-full-search-char": "人物搜尋",
"app-title-full-misakiii": "美咲啊啊啊!"
}
6 changes: 4 additions & 2 deletions src/tool/AppTitleChanger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export type AppPageCategory =
| 'whybalv'
| 'search_advanced'
| 'search_char'
| 'misakiii'

export const AppPageCategory = ['home', 'faq', 'about', 'scenario', 'momotalk', 'voice', 'profile', 'whybalv', 'search_advanced', 'search_char']
export const AppPageCategory = ['home', 'faq', 'about', 'scenario', 'momotalk', 'voice', 'profile', 'whybalv', 'search_advanced', 'search_char', 'misakiii']

export const AppPageCategoryToI18nCode: Record<AppPageCategory, string> = {
'home': 'app-title-full-home',
Expand All @@ -25,7 +26,8 @@ export const AppPageCategoryToI18nCode: Record<AppPageCategory, string> = {
'profile': 'app-title-prefix-profile',
'whybalv': 'app-title-full-whybalv',
'search_advanced': 'app-title-full-search-advanced',
'search_char': 'app-title-full-search-char'
'search_char': 'app-title-full-search-char',
'misakiii': 'app-title-full-misakiii',
}

export function getAppPageTitle<T extends (NexonL10nData | SchaleDbL10nData)>(
Expand Down
2 changes: 1 addition & 1 deletion src/views/MisakiiiView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ onMounted(
watch(
() => setting.ui_lang,
() => {
changeAppPageTitle(i18n.t(AppPageCategoryToI18nCode['about']))
changeAppPageTitle(i18n.t(AppPageCategoryToI18nCode['misakiii']))
},
{ immediate: true }
)
Expand Down

0 comments on commit a42454d

Please sign in to comment.