diff --git a/apps/vdn-static/src/App.vue b/apps/vdn-static/src/App.vue index 012c225..73de324 100644 --- a/apps/vdn-static/src/App.vue +++ b/apps/vdn-static/src/App.vue @@ -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 = ref(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) { diff --git a/apps/vdn-static/src/components/atoms/I18nTemplate.vue b/apps/vdn-static/src/components/atoms/I18nTemplate.vue deleted file mode 100644 index 5e6c689..0000000 --- a/apps/vdn-static/src/components/atoms/I18nTemplate.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - diff --git a/apps/vdn-static/src/components/atoms/RichTemplate.vue b/apps/vdn-static/src/components/atoms/RichTemplate.vue index f68b32b..35355fa 100644 --- a/apps/vdn-static/src/components/atoms/RichTemplate.vue +++ b/apps/vdn-static/src/components/atoms/RichTemplate.vue @@ -1,29 +1,79 @@