feat: Implement internationalization with English and Thai locales and a language switcher.

This commit is contained in:
supalerk-ar66 2026-01-19 15:51:28 +07:00
parent d6769ca1a9
commit ada40b05e8
8 changed files with 1951 additions and 3 deletions

View file

@ -0,0 +1,18 @@
/**
* @file i18n.config.ts
* @description Vue I18n configuration for the E-Learning Platform.
* Supports Thai (th) and English (en) locales.
*/
import th from './i18n/locales/th.json'
import en from './i18n/locales/en.json'
export default defineI18nConfig(() => ({
legacy: false,
locale: 'th',
fallbackLocale: 'th',
messages: {
th,
en
}
}))