angular / angular/angular-cli

Support for Multi-Domain Locale Detection in Angular SSR

オープン
#29,111 コメント 5 件 リアクション 6 件 担当者 0 名 GitHub で見る
area: @angular/ssr feature
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

### 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_

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、Angular SSR のロケール設定とリクエスト/ドメイン処理のエントリーポイントを特定します。この issue ではファイルやテストは指定されていません。完了条件は、SSR がパスベースのロケールセグメントに依存せず、example.com、fr.example.com、example.de に対して適切なロケールを選択し、サポート対象のマッピングをカバーしていることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
internationalization, web-dev
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。