Support for Multi-Domain Locale Detection in Angular SSR
- Vorherrschende Sprache
- TypeScript
- Sterne
- 27k
- Forks
- 11.8k
- Ø Merge
- 14 Std. 23 Min.
- Gemergte PRs (30 T.)
- 162
Beschreibung
### Description
Currently, Angular SSR does not provide built-in functionality to detect the domain in a multi-domain setup and serve the appropriate localized version of the application. This feature would allow Angular SSR to dynamically render pages with the correct locale based on the domain.
**Use Case**:
- Applications serving different localized versions (e.g., `example.com`, `fr.example.com`, `example.de`) need SSR to serve the appropriate locale.
- Example:
- `example.com` → English content
- `fr.example.com` → French content
- `example.de` → German content
### Describe the solution you'd like
Allow SSR to use the detected domain to select the corresponding locale configuration. Which simplifies multi-language deployment without relying on path-based locales (e.g., `/en`, `/fr`).
### Describe alternatives you've considered
_No response_
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Locale-Konfiguration und die Einstiegspunkte für die Verarbeitung von Requests/Domains von Angular SSR zu finden; im Issue werden keine Dateien oder Tests genannt. Als abgeschlossen gilt, dass SSR die passende Locale für example.com, fr.example.com und example.de auswählt, ohne auf pfadbasierte Locale-Segmente angewiesen zu sein, mit Abdeckung der unterstützten Zuordnungen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- internationalization, web-dev
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100