forked from Mirrors/elk
refactor(i18n): tidy fields
This commit is contained in:
parent
96acbacf55
commit
ed0b78857c
7 changed files with 19 additions and 13 deletions
|
@ -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 />
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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} 人关注",
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue