From 00651b8e36a38a5d77fc8a27584825d2ac8ee2e1 Mon Sep 17 00:00:00 2001 From: Benjamin Singleton <19498453+tetrogem@users.noreply.github.com> Date: Mon, 9 Feb 2026 16:10:44 -0600 Subject: [PATCH] feat: completed wodox locale; improved i18n logic --- apps/vdn-static/src/App.vue | 11 ++- .../src/components/pages/HomePage.vue | 2 +- .../src/components/pages/KotobaPage.vue | 21 +++-- .../src/components/pages/ResourcesPage.vue | 6 +- apps/vdn-static/src/i18n/index.ts | 84 ++++++++++++------- apps/vdn-static/src/i18n/locale.ts | 30 ++++++- apps/vdn-static/src/locales/en_US.ts | 78 ++++++++++------- apps/vdn-static/src/locales/vp_VL.ts | 21 +++-- apps/vdn-static/src/locales/wp_VL.ts | 82 ++++++++++-------- apps/vdn-static/src/utils/deep-partial.ts | 1 + apps/vdn-static/src/utils/localizeLayout.ts | 2 +- 11 files changed, 213 insertions(+), 125 deletions(-) create mode 100644 apps/vdn-static/src/utils/deep-partial.ts diff --git a/apps/vdn-static/src/App.vue b/apps/vdn-static/src/App.vue index 2be3a2c..21b089e 100644 --- a/apps/vdn-static/src/App.vue +++ b/apps/vdn-static/src/App.vue @@ -3,6 +3,7 @@ import "./assets/style.scss"; import { ref, type Ref } from "vue"; import LocalePicker from "./components/organisms/LocalePicker.vue"; import { vOnClickOutside } from "@vueuse/components"; +import { useLocale } from "./i18n"; const burgerOpen: Ref = ref(false); @@ -13,6 +14,8 @@ const toggleBurger = (): void => { const closeBurger = (): void => { burgerOpen.value = false; }; + +const locale = useLocale();