fix: removed localStorage for site not updating

This commit is contained in:
Richard Wong 2026-01-10 15:36:33 +08:00
parent e8f0950dc0
commit 0e42ad3a83
1 changed files with 5 additions and 3 deletions

View File

@ -17,11 +17,13 @@ i18n
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
fallbackLng: 'en',
supportedLngs: ['en', 'kn'],
detection: { // adds some caching
order: ['querystring', 'cookie', 'localStorage', 'navigator', 'htmlTag', 'path', 'subdomain'],
caches: ['localStorage', 'cookie'],
order: ['querystring', 'cookie', 'navigator', 'htmlTag', 'path', 'subdomain'],
caches: ['cookie'], // Removed 'localStorage' to address Vivaldi mobile issue, kept 'cookie'
load: 'languageOnly'
},
debug: true,
debug: false,
});
export default i18n;