-
Notifications
You must be signed in to change notification settings - Fork 134
New feature - Add format for NGX-Translate (used in Ionic and Angular projects) #720
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
Conversation
NGX-Translate is used with Ionic and Angular projects
|
Hello @SVANNER, thanks for your PR. Could you provide some links about the NGX format? A document where the standard is documented would be great. Would you be able to extend your PR with some unit tests? |
|
Hi, @ocean90 , Here is the json file i used to test the import of originals: I also imported the french translations using: The results can be found here: http://translate.gvngroup.be/projects/zenmade/fr/default/?page=1. I then exported the translations french translations having the results:
If you need more, let me know. Kind Regards, |
|
@SVANNER Looks good, you might want to check out the phpunit test cases we use for the other formats to build test cases for this new format. |
|
@toolstack Ok i'll take a look to the test cases of the other formats and come back with the testcase. |
|
@toolstack Test Cases added for NGX-Translate. Kind Regards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good @SVANNER, just one minor change, could you update your @since lines from 2.3 to 2.4?
Thanks.
|
Hi, @toolstack, Kind Regards, |
|
Thanks @SVANNER, could you also take a look at some of the formatting errors that travis is reporting? Mostly the blanks and extra spaces. Ignore the file name and file_get_contents() warning. |
|
Hi @toolstack, have performed corrections. 1 error still remaining about file names and warnings about file_get_contents() Kind Regards |
|
Thanks @SVANNER, looks good. |
toolstack
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hi, i tried to use the json format to be able to import/export json files for NGX-Translate (used in Ionic and Angular mobile application development).
Unfortunately, the json format produced is not exactly the same for NGX-translate.
I wrote the format class to be able to manage NGX-Translate json files.
It should be useful to include this format for the growing Ionic/Angular developers population
Thanks a lot !