Skip to content

Commit f1f8692

Browse files
committed
fix: some translations missing
1 parent 3c613f4 commit f1f8692

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

app/layouts/app.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const open = ref(false)
66
77
const config = useRuntimeConfig()
88
9-
const links = [
9+
const links = computed(() => [
1010
[
1111
{
1212
label: t('Dashboard'),
@@ -68,13 +68,13 @@ const links = [
6868
target: '_blank',
6969
},
7070
].filter(Boolean),
71-
]
71+
])
7272
7373
const groups = computed(() => [
7474
{
7575
id: 'links',
7676
label: t('Go to'),
77-
items: links.flat(),
77+
items: links.value.flat(),
7878
},
7979
])
8080

app/layouts/docs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')
1515
<UPageAside>
1616
<template #top>
1717
<UContentSearchButton
18-
:label="$t('Search...')"
18+
:label="$t('Search')"
1919
variant="outline"
2020
class="w-full"
2121
>

app/pages/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ async function handleCheckout() {
112112
<template>
113113
<UDashboardPanel id="home">
114114
<template #header>
115-
<UDashboardNavbar title="Dashboard" :ui="{ right: 'gap-3' }">
115+
<UDashboardNavbar :title="$t('Dashboard')" :ui="{ right: 'gap-3' }">
116116
<template #leading>
117117
<UDashboardSidebarCollapse />
118118
</template>

i18n/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
"Billing": "Billing",
146146
"Profile": "Profile",
147147
"Go to": "Go to",
148-
"Search...": "Search...",
149148
"Documentation": "Documentation",
150149
"Log out": "Log out",
151150
"Add Credit": "Add Credit",

i18n/vi.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@
145145
"Billing": "Thanh toán",
146146
"Profile": "Hồ sơ",
147147
"Go to": "Đi đến",
148-
"Search...": "Tìm kiếm...",
149148
"Documentation": "Tài liệu",
150149
"Log out": "Đăng xuất",
151150
"Add Credit": "Nạp Credit",

nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ export default defineNuxtConfig({
292292
},
293293

294294
colorMode: {
295+
preference: 'system',
295296
disableTransition: true,
296297
},
297298

0 commit comments

Comments
 (0)