wip: fixed issues with i18n fallbacking for value-type objects/arrays, removed i18n integration and replaced with proprietary implementation again
This commit is contained in:
parent
771a8cc4bf
commit
d2020cafec
19 changed files with 529 additions and 420 deletions
|
|
@ -7,9 +7,9 @@ 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 { useI18n } from "./i18n";
|
||||
import { useLocale } from "./i18n";
|
||||
|
||||
const i18n = useI18n();
|
||||
const locale = useLocale();
|
||||
|
||||
const burgerOpen: Ref<boolean> = ref<boolean>(false);
|
||||
|
||||
|
|
@ -39,7 +39,7 @@ const NAVBAR_ITEM_ORDER = [
|
|||
|
||||
const navbarItems = computed(() =>
|
||||
NAVBAR_ITEM_ORDER.map((id): NavbarItem => {
|
||||
const label = i18n.t(`navbar.${id}`);
|
||||
const label = locale.value.navbar[id];
|
||||
|
||||
const to = ((): SmartDest => {
|
||||
switch (id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue