-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add goup handling in JSON transformations. #50
Conversation
Can you include a test? |
Do you also want to support groups in the createxliff functions? If so, should we skip the includeGroups option completely and respect groups always (as soon as the object property is an object and not a string?) |
It seems feasible. I give it a try... |
Can you write the tests like the existing ones? |
2, js2xliff & js2xliff12:
I cannot run browserify and mocha tests on Windows, therefore created some functional test in test/mj/*. |
I get the following errors: $ ./node_modules/.bin/browserify --standalone xliff cjs/index.js -o xliff.js D:\Development\logikum\xliff\cjs\index.js:1 $ ./node_modules/.bin/mocha test -R spec D:\Development\logikum\xliff\cjs\index.js:1 SyntaxError: Cannot use import statement outside a module |
Tests should run also on windows... what's the problem? |
Which node version are you using? |
node.js v16.3 |
I have found this idea: https://stackoverflow.com/questions/40029113/syntaxerror-import-and-export-may-appear-only-with-sourcetype-module-g, but do not know how to apply. |
Ok, it should work on windows now: https://github.com/locize/xliff/runs/4684040716?check_suite_focus=true |
I check it... |
Funny... I see your changes on Github, but git does not fetch anything. |
Are you able to sync your fork? |
Still cannot run tests. I did successfully: |
From what I see published here (https://github.com/marmarosi/xliff/tree/include-groups), I can't see any updates? And based on the Github Windows tests, it works successfully: https://github.com/locize/xliff/runs/4684040716?check_suite_focus=true |
If you prefer, you can delete everything and create a new PR... |
Adding ,/node_modules/.bin to PATH resolved my babel problem. However, some tests now fails, I suppose as a result of my amendments. I need to review them... |
I think the PR is error free now. |
thank you for your contribution |
Resolves #49. Usage: