angular / angular/angular-cli

Generating and managing the translations files for large scale applications like ERP etc is very cumbersome.

未關閉
#23,428 26 則留言 15 個 reaction 已指派 0 人 在 GitHub 檢視
devkit/build-angular:i18n feature feature: under consideration
主要語言
TypeScript
星號
27k
分支
11.8k
平均合併
14 小時 23 分鐘
30 天內合併 PR
162

描述

# 🚀 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.

貢獻指南

開啟貢獻指南

研究方向

首先檢視會產生 messages.xlf 的 Angular CLI 國際化工作流程,以及提到的 ngx-Translate 替代方案。定義模組層級或元件層級檔案相對於自動 locale 更新的預期範圍;完成條件應包括指定一種可維護的方式,用於在各 locale 檔案之間產生或同步新的 trans-units。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
angular, typescript
領域
internationalization, tooling
Issue 類型
功能
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。