Generating and managing the translations files for large scale applications like ERP etc is very cumbersome.
- 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ả
# 🚀 feature request.
Generating and managing the translations files for large scale applications like ERP etc is very cumbersome.
### Relevant Package
This feature request is for @angular/....
### Description
Using the angular's builtin translation which the angular platform provides, managing and generating the translation files for multiple locale is very cumbersome , error prone and very difficult to manage as the application size scales, as generating the translation files after adding new i18n tags , generates the a default file *messages.xlf* and it becomes very difficult to dig into this default file (because of size .. lines of code.) and parse out the new trans-units and then move them to each locale files manually , and paste the target tag for the new trans-units .
### Describe the solution you'd like
Either the translation file should be provided for each module or component level, or there must be some version control system used to check the differences/changes in the default messages.xlf file and these changes automatically being added to other locale files . Means atleast the new trans-units must be appended automatically to the locale files that the intended developer needs to create.
### Describe alternatives you've considered
We have gone through ngx-Translate etc tools that provides run-time translation using pipes, but if the angular's builtin internalization module provides additional updates in near future to ease the internationalization process for developers , its far better than other third party packages.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng việc xem xét quy trình quốc tế hóa của Angular CLI tạo ra messages.xlf và giải pháp thay thế ngx-Translate đã được đề cập. Xác định phạm vi dự kiến cho các tệp ở cấp module hoặc component so với việc tự động cập nhật locale; công việc được xem là hoàn tất khi có yêu cầu về một phương thức cụ thể, có thể duy trì để tạo hoặc đồng bộ hóa các trans-units mới giữa các tệp locale.
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, tooling
- 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