Closed
Description
Here is the list of features / fixes planned for i18n.
If you want new i18n features to be added to Angular, don't hesitate to ask below and I'll let you know if that's feasible and if you should open an issue for it.
If you have a bug, open an issue (no need to discuss about it here).
For Ivy
Note: runtime translations and most of the new features will only be available with ivy
Features
- Runtime i18n (one bundle for all locales with AOT) - [working on it]
- ID migration tool (for when we break ID generation) - [PR fix(compiler): fix i18n IDs generation, add a migration tool #15621]
- Use translation strings outside of a template - i18n: Able to use translation strings outside a template #11405 - [working on it]
- Generate the same ID for xmb/xlf - ng-xi18n should generate same IDs when using xlf or xmb format #15136 [breaking change PR fix(compiler): fix i18n IDs generation, add a migration tool #15621]
Issues
- Ignore ph/ICU expressions when generating i18n ids - i18n translation duplicated #15573 [breaking change PR fix(compiler): fix i18n IDs generation, add a migration tool #15621, blocked]
Not prioritized
Features
- Allow ICU messages in attributes - ICU messages don't work on attributes #21615 [blocked, requires an update of the parser]
- Improve Html Parser (add a new INTERPOLATION_TOKEN to the lexer output for interpolations) - Html Parser improvements #9340
- Opt out of translation (use translate="false" attribute) - I18n: Opting out of translation #7814
- I18nPluralPipe should localize numbers when using "#" - I18nPluralPipe should localize numbers when using # #11761
- ICU plural format (add offset & #) - [i18n] ICU plural format - support
#
andoffset
#9117 [blocked, requires "Allow escaping ICU messages - [i18n] escaping in ICU message #9286"] - Implement ICU ordinal messages
- Auto detect TRANSLATIONS_FORMAT - I18n: remove TRANSLATIONS_FORMAT #11695
- Providing TRANSLATIONS at NgModule level - Feature Request [i18n]: Support providing TRANSLATIONS at NgModule level #11431
- Add scientific number pipe - Add scientific number format pipe #18276
- Opening the API - [PR feat(compiler): open the serializer API for i18n #14281]
- Throw during i18n extraction if two different contents have the same @@id - Throw during i18n extraction if two different contents have the same @@id #18272
Issues
- Ignore leading and trailing spaces - i18n ignore leading and trailing spaces #13114
- allow numbers for select-icu - i18n: numbers for select-icu fail to compile (template parse error) #17799
- Allow escaping ICU messages - [i18n] escaping in ICU message #9286 [blocked, requires an update of the parser]
- Template Parser: Error when passing object literal as pipe parameter - False-Positive: Parser Error: Missing expected } at the end of the expression #9571