feat: add i18n support for Italian, Spanish, Portuguese and Russian
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user