fix: default to Spanish by removing navigator from language detection
Browser navigator locale (en-US etc.) was winning over fallbackLng 'es'. Now only localStorage is checked — first-time visitors get Spanish, returning visitors get their saved preference from the language picker. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -19,7 +19,7 @@ i18n.use(LanguageDetector)
|
|||||||
fallbackLng: 'es',
|
fallbackLng: 'es',
|
||||||
debug: false,
|
debug: false,
|
||||||
detection: {
|
detection: {
|
||||||
order: ['localStorage', 'navigator', 'htmlTag'],
|
order: ['localStorage'],
|
||||||
caches: ['localStorage'],
|
caches: ['localStorage'],
|
||||||
lookupLocalStorage: 'paste-language',
|
lookupLocalStorage: 'paste-language',
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user