ngx-translate-extract
ngx-translate-extract copied to clipboard
ngx-translate-extract with xlf support for extracted file. Only JSON available right now.
Hi,
Today i see ngx-translate-extract supports JSON file creation for display string of script files. We are thinking to use I18n inbuilt Angular feature for "Template translation". But because that inbuild I18N Angular feature do not support "Code Translation" ( There is a defect open for it already - https://github.com/angular/angular/issues/11405 ), We though to use ngx-translate-polyfill as well to take care the "Code level translation". Now we already generating XLF file using "ng xi18n" CLI and we would like to append ( merge ) further display string entries in same file via ngx-translate-extract which will be used by polyfill. But i do not see any other supported format beside JSON.
Please share if XLF format support can also be supported for ngx-translate-extract to extract messages in new or existing xlf file.
Thanks!
Hi @animbalk, I believe i18n polyfill has its own extractor tool - https://github.com/ngx-translate/i18n-polyfill/blob/master/lib/extractor/ngx-extractor.ts. It generates XLF files. And the ngx-translate-extract is specific to ngx-translate, which means it will generate only JSON as long as ngx-translate only supports JSON.
hello any update regarding this topic
Any updates on this?