i18n-polyfill
i18n-polyfill copied to clipboard
Can't generate translations of child angular components (packaged in node modules) using ngx-extractor
@ocombe need your help on this
I know for ngx-extractor command, input should be TS files, something like (-i "./src/**/*.ts"), but this will pick up text with i18n property from source folder files only. But how about the files in packaged node module projects which has i18n property of outside template?
So, can't ngx-extractor generate translations for entire repository/project (including node module projects) ? or is there any other tool alternative to ngx-extractor?
I see that for official i18n (HTML's) it picks up even the child projects under node modules, and generates translations referring to "component.d.ts".
<trans-unit id="child-header-id" datatype="html">
<source>Child</source>
<context-group purpose="location">
<context context-type="sourcefile">../../node_modules/child-project/child-panel/child.component.d.ts</context>
<context context-type="linenumber">4</context>
</context-group>
</trans-unit>