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