Rename ssr to website, website to spa, add spa nginx config

This commit is contained in:
Your Name committed 2026-06-03 09:38:15 +07:00
1 parent fc6bf0218e
commit 8514342c2f
103 files changed
+801 -768

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'
import enTranslation from './locales/en/translation.json'
import thTranslation from './locales/th/translation.json'
// Retrieve default lang from localStorage if set
const savedLang = localStorage.getItem('irelax_lang') || 'th'
i18n
.use(initReactI18next)
.init({
resources: {
en: { translation: enTranslation },
th: { translation: thTranslation },
},
lng: savedLang, // default language (Thai)
fallbackLng: 'en',
interpolation: {
escapeValue: false, // react already safes from xss
},
})
export default i18n