daniel-sc / ng-extract-i18n-merge

Extract and merge i18n xliff translation files for angular projects.
MIT License
170 stars 18 forks source link

Produce metadata too #91

Closed worthy7 closed 8 months ago

worthy7 commented 8 months ago

Is your feature request related to a problem? Please describe. The latest extract-i18n from Angular will produce some metadata for each translation. However, this package does not produce that metadata in the xlf file. I expected it to be the same.

Describe the solution you'd like Produce the XLF files with all metadata included, same as native Angular extract-i18n

ng-extract-i18n-merge image

native angular 17 extract image

worthy7 commented 8 months ago

Related https://github.com/angular/angular/issues/37202

daniel-sc commented 8 months ago

@worthy7 did you set the config option includeContext: true? All options are documented in the Readme and have sensible defaults for most projects.

worthy7 commented 8 months ago

Sorry, I missed that. I would argue that the default should be true, same as with the native extract-i18n.