angular / angular/angular-cli

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

Ouverte
#23,428 26 commentaires 15 réactions 0 personnes assignées Voir sur GitHub
devkit/build-angular:i18n feature feature: under consideration
Langage dominant
TypeScript
Étoiles
27k
Forks
11.8k
Merge moyen
14 h 23 min
PR mergées (30 j)
162

Description

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par examiner le workflow d’internationalisation d’Angular CLI qui génère messages.xlf, ainsi que l’alternative ngx-Translate mentionnée. Définissez le périmètre prévu pour les fichiers au niveau du module ou du composant par rapport aux mises à jour automatiques des locales ; le travail sera considéré comme terminé lorsqu’une méthode spécifiée et maintenable de génération ou de synchronisation de nouvelles trans-units entre les fichiers de locale sera requise.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
internationalization, tooling
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.