feat(seo): Zweisprachige Meta-Tags und hreflang für DE/EN

SEO-Texte in i18n, dynamische Meta-Updates beim Sprachwechsel, hreflang-Links und ?lng-Parameter; PWA-Manifest zweisprachig.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-30 20:52:39 +02:00
parent 5271ed90c1
commit df53420f3b
6 changed files with 96 additions and 3 deletions
+5 -1
View File
@@ -3,6 +3,7 @@ import { initReactI18next } from 'react-i18next'
import LanguageDetector from 'i18next-browser-languagedetector'
import enTranslation from './locales/en.json'
import deTranslation from './locales/de.json'
import { initSeo } from '../utils/seo.js'
i18n
.use(LanguageDetector)
@@ -17,9 +18,12 @@ i18n
escapeValue: false // React already escapes values (prevents XSS)
},
detection: {
order: ['localStorage', 'navigator'],
order: ['querystring', 'localStorage', 'navigator'],
lookupQuerystring: 'lng',
caches: ['localStorage']
}
})
initSeo(i18n)
export default i18n