Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NagaSainath opened this issue Jun 26, 2019 · 0 comments

Comments

@NagaSainath
Copy link

NagaSainath commented Jun 26, 2019

@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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant