refactor(i18n): tidy fields

zio/stable
三咲智子 2022-11-29 00:55:05 +08:00
parent 96acbacf55
commit ed0b78857c
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
7 changed files with 19 additions and 13 deletions

View File

@ -10,7 +10,7 @@ const { locales } = useI18n() as { locales: ComputedRef<LocaleObject[]> }
</script> </script>
<template> <template>
<CommonTooltip placement="bottom" :content="t('selectLanguage')"> <CommonTooltip placement="bottom" :content="t('nav_footer.select_language')">
<CommonDropdown> <CommonDropdown>
<button flex> <button flex>
<div i-ri:earth-line text-lg /> <div i-ri:earth-line text-lg />

View File

@ -1,5 +1,4 @@
{ {
"selectLanguage": "Sprache auswählen",
"nav_side": { "nav_side": {
"home": "Startseite", "home": "Startseite",
"notifications": "Mitteilungen", "notifications": "Mitteilungen",
@ -11,10 +10,13 @@
"bookmarks": "Lesezeichen", "bookmarks": "Lesezeichen",
"profile": "Profil" "profile": "Profil"
}, },
"nav_footer": {
"select_language": "Sprache auswählen"
},
"timeline": "Timeline", "timeline": "Timeline",
"title": { "title": {
"local-timeline": "@:nav_side.local @:timeline", "local_timeline": "@:nav_side.local @:timeline",
"federated-timeline": "@:nav_side.federated @:timeline" "federated_timeline": "@:nav_side.federated @:timeline"
}, },
"account": { "account": {
"posts": "{0} Beiträge", "posts": "{0} Beiträge",

View File

@ -1,5 +1,4 @@
{ {
"selectLanguage": "Select Language",
"nav_side": { "nav_side": {
"home": "Home", "home": "Home",
"notifications": "Notifications", "notifications": "Notifications",
@ -11,10 +10,13 @@
"bookmarks": "Bookmarks", "bookmarks": "Bookmarks",
"profile": "Profile" "profile": "Profile"
}, },
"nav_footer": {
"select_language": "Select Language"
},
"timeline": "Timeline", "timeline": "Timeline",
"title": { "title": {
"local-timeline": "@:nav_side.local @:timeline", "local_timeline": "@:nav_side.local @:timeline",
"federated-timeline": "@:nav_side.federated @:timeline" "federated_timeline": "@:nav_side.federated @:timeline"
}, },
"account": { "account": {
"posts": "{0} Posts", "posts": "{0} Posts",

View File

@ -1,5 +1,4 @@
{ {
"selectLanguage": "选择语言",
"nav_side": { "nav_side": {
"bookmarks": "书签", "bookmarks": "书签",
"conversations": "私信", "conversations": "私信",
@ -11,10 +10,13 @@
"notifications": "通知", "notifications": "通知",
"profile": "个人资料" "profile": "个人资料"
}, },
"nav_footer": {
"select_language": "选择语言"
},
"timeline": "时间轴", "timeline": "时间轴",
"title": { "title": {
"local-timeline": "@:nav_side.local@:timeline", "local_timeline": "@:nav_side.local@:timeline",
"federated-timeline": "@:nav_side.federated@:timeline" "federated_timeline": "@:nav_side.federated@:timeline"
}, },
"account": { "account": {
"followers": "被 {0} 人关注", "followers": "被 {0} 人关注",

View File

@ -82,7 +82,7 @@ export default defineNuxtConfig({
file: 'zh-CN.json', file: 'zh-CN.json',
name: '简体中文', name: '简体中文',
}, },
], ].sort((a, b) => a.code.localeCompare(b.code)),
strategy: 'no_prefix', strategy: 'no_prefix',
detectBrowserLanguage: false, detectBrowserLanguage: false,
// TODO: // TODO:

View File

@ -13,7 +13,7 @@ useHead({
<template> <template>
<MainContent> <MainContent>
<template #title> <template #title>
<span text-lg font-bold>{{ t('title.federated-timeline') }}</span> <span text-lg font-bold>{{ t('title.federated_timeline') }}</span>
</template> </template>
<slot> <slot>

View File

@ -13,7 +13,7 @@ useHead({
<template> <template>
<MainContent> <MainContent>
<template #title> <template #title>
<span text-lg font-bold>{{ t('title.local-timeline') }}</span> <span text-lg font-bold>{{ t('title.local_timeline') }}</span>
</template> </template>
<slot> <slot>