wip: working new i18n system (need to polish still)
This commit is contained in:
parent
a240a1b954
commit
d258014471
28 changed files with 1025 additions and 1769 deletions
|
|
@ -6,8 +6,7 @@ import { vOnClickOutside } from "@vueuse/components";
|
|||
import { useRouter } from "vue-router";
|
||||
import SmartLink from "./components/atoms/SmartLink.vue";
|
||||
import type { SmartDest } from "./utils/smart-dest";
|
||||
import type { Locale } from "./i18n/locale";
|
||||
import { useLocale } from "./i18n";
|
||||
import { useLocale, type Locale } from "./new-i18n";
|
||||
|
||||
const locale = useLocale();
|
||||
|
||||
|
|
@ -39,7 +38,7 @@ const NAVBAR_ITEM_ORDER = [
|
|||
|
||||
const navbarItems = computed(() =>
|
||||
NAVBAR_ITEM_ORDER.map((id): NavbarItem => {
|
||||
const label = locale.value.navbar[id];
|
||||
const label = locale.value.navbar[id]();
|
||||
|
||||
const to = ((): SmartDest => {
|
||||
switch (id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue