refactor(i18n): tidy fields

This commit is contained in:
三咲智子 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>
<template>
<CommonTooltip placement="bottom" :content="t('selectLanguage')">
<CommonTooltip placement="bottom" :content="t('nav_footer.select_language')">
<CommonDropdown>
<button flex>
<div i-ri:earth-line text-lg />

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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