feat: Implement internationalization with English and Thai locales and a language switcher.
This commit is contained in:
parent
d6769ca1a9
commit
ada40b05e8
8 changed files with 1951 additions and 3 deletions
18
Frontend-Learner/i18n.config.ts
Normal file
18
Frontend-Learner/i18n.config.ts
Normal 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
|
||||
}
|
||||
}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue