angular / angular/angular-cli

Support for Multi-Domain Locale Detection in Angular SSR

Đang mở
#29,111 5 bình luận 6 reaction 0 người được giao Xem trên GitHub
area: @angular/ssr feature
Ngôn ngữ chính
TypeScript
Star
27k
Fork
11.8k
Merge trung bình
14 giờ 23 phút
Pull request đã merge (30 ngày)
162

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xác định cấu hình locale của Angular SSR và các điểm vào xử lý request/domain; issue không nêu tệp hoặc test nào. Hoàn tất khi SSR chọn locale phù hợp cho example.com, fr.example.com và example.de mà không phụ thuộc vào các segment locale dựa trên đường dẫn, đồng thời có coverage cho các mapping được hỗ trợ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
internationalization, web-dev
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.