Skip to content

Can't generate translations of child angular components (packaged in node modules) using ngx-extractor #55

@NagaSainath

Description

@NagaSainath

@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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions