x
This commit is contained in:
1 parent
7b98d41555
commit
996dfdabd0
10 files changed
+959
-252
No files matched your search
@@ -3,6 +3,10 @@ import { initReactI18next } from 'react-i18next'
|
||||
|
||||
import enTranslation from '../locales/en/translation.json'
|
||||
import thTranslation from '../locales/th/translation.json'
|
||||
import jaTranslation from '../locales/ja/translation.json'
|
||||
import zhTranslation from '../locales/zh/translation.json'
|
||||
import viTranslation from '../locales/vi/translation.json'
|
||||
import koTranslation from '../locales/ko/translation.json'
|
||||
|
||||
// Ensure we only access localStorage on the client side
|
||||
const savedLang = typeof window !== 'undefined' ? (localStorage.getItem('homaroma_lang') || 'th') : 'th'
|
||||
@@ -15,6 +19,10 @@ if (!i18n.isInitialized) {
|
||||
resources: {
|
||||
en: { translation: enTranslation },
|
||||
th: { translation: thTranslation },
|
||||
ja: { translation: jaTranslation },
|
||||
zh: { translation: zhTranslation },
|
||||
vi: { translation: viTranslation },
|
||||
ko: { translation: koTranslation },
|
||||
},
|
||||
lng: savedLang, // default language
|
||||
fallbackLng: 'en',
|
||||
|
||||
Reference in new issue
Block a user