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

Xliffmerge is not valid #152

Open
danrald opened this issue Oct 22, 2019 · 2 comments
Open

Xliffmerge is not valid #152

danrald opened this issue Oct 22, 2019 · 2 comments

Comments

@danrald
Copy link

danrald commented Oct 22, 2019

This seems like an outstanding tool but it does not seem to work. I've done a sample project using the documentation and I cannot seem to get it to work. If I issue

"npm run extrac-18n"

which calls

"ng xi18n translatorNGXApp --i18n-format xlf --output-path i18n --i18n-locale en && xliffmerge --profile xliffmerge.json"

I get an error

ERROR: language "C:\development\TranslatorNGX\translatorNGXApp\node_modules@ngx-i18nsupport\ngx-i18nsupport\xliffmerge\xliffmerge" is not valid

The xliffmerge file is there and just states "require('../src/xliffmerge/main.js')", I am not sure why it is failing. If I can't get this to work, looks like I will have to cancel using ngx-i18nsupport. Which would be too bad.

Cheers!
Dan

@martinroob
Copy link
Owner

Might be connected with #144
Are you using yarn?
In general the usage of the command line tool is somewhat deprecated.
You should use the integrated ng builder.
What versions of angular and node are you using.

@MarcusRiemer
Copy link

MarcusRiemer commented Jan 21, 2021

Yes, this is a duplicate of #144. I am currently falling back to using this tool via CLI because the integrated ng builder seems to be broken as of Angular 11 :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants