feat: add i18n support for Italian, Spanish, Portuguese and Russian

This commit is contained in:
2026-02-08 09:56:43 +01:00
parent a5995857e8
commit c66b77dbf8
10 changed files with 1556 additions and 10 deletions

View File

@@ -102,7 +102,11 @@ tests/
locales/
├── de.json # Deutsch (Fallback)
├── en.json
── fr.json
── fr.json
├── it.json # Italienisch
├── es.json # Spanisch
├── pt.json # Portugiesisch (BR)
└── ru.json # Russisch
```
## Konventionen
@@ -130,7 +134,8 @@ locales/
- Schlüssel: `section.key` (z.B. `home.title`)
- Im HTML: `data-i18n="key"` oder `${t('key')}`
- Placeholder: `data-i18n-placeholder="key"`
- Neue Texte in **allen 3 Sprachen** hinzufügen
- Neue Texte in **allen 7 Sprachen** hinzufügen (de, en, fr, it, es, pt, ru)
- Frontend nutzt Kurzcodes (`de`), Directus Langcodes (`de-DE`) — Mapping in `i18n.js` (`LOCALE_TO_DIRECTUS`)
## Aktuelle Probleme / Hinweise