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 摘要。