feat: wodox locale

This commit is contained in:
Benjamin Singleton 2026-02-08 23:37:17 -06:00 committed by Sheldon Cooper
parent 4327d1caf9
commit 9d5e67136e
2 changed files with 52 additions and 2 deletions

View file

@ -1,12 +1,16 @@
import en_US from "../locales/en_US";
import vp_VL from "../locales/vp_VL";
import wp_VL from "../locales/wp_VL";
import { computed, readonly, ref } from "vue";
import type { Locale } from "./locale";
export const LOCALE_IDS = ["en_US", "vp_VL"] as const;
export const LOCALE_IDS = ["en_US", "vp_VL", "wp_VL"] as const;
export type LocaleId = (typeof LOCALE_IDS)[number];
const locales = { en_US, vp_VL } as const satisfies Record<LocaleId, Locale>;
const locales = { en_US, vp_VL, wp_VL } as const satisfies Record<
LocaleId,
Locale
>;
export const localeId = ref<LocaleId>("en_US");