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:
2026-02-24 09:56:56 +01:00
parent 3ae27ea413
commit 87ade538da

View File

@@ -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',
}, },