wip: working new i18n system (need to polish still)

This commit is contained in:
Benjamin Singleton 2026-02-23 01:29:47 -06:00
parent a240a1b954
commit d258014471
28 changed files with 1025 additions and 1769 deletions

View file

@ -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) {