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

Configuration option 'parse' is ignored when the extension is one of the following: yml, yaml, json5 #240

Open
ghost opened this issue Jun 14, 2019 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2019

I'm migrating from RubyOnRails to NodeJS.
And we are using transifex to manage translations.
Unfortunately all translations files were formed like:

en.yml
en:
key: some string


uk.yml
uk:
key: some string


So each file has the root element equal to locale.
I can't reupload sources to transifex and I can't change this without any specific language.
I've tried to use parse option to overcome this issue.
Unfortunately it is called only when extension of the file is unknown.

Is there any way to fix it?

@jamuhl
Copy link
Member

jamuhl commented Jun 14, 2019

Has transifex no option to download JSON format?

You might consider switching over to https://locize.com -> the translation service that comes from us...works perfect with i18next (and other i18n formats)

@ghost
Copy link
Author

ghost commented Jun 14, 2019

Transifex has, but it returns files in the original format....
I can't consider to switch to locize service... No way...

@ghost
Copy link
Author

ghost commented Jun 14, 2019

I added a pull request. Anyway, I think it will be much clear for users if parse option will provide ability to build a custom parser for any kind of file user may want to load.

@jamuhl
Copy link
Member

jamuhl commented Jun 14, 2019

That's sad...we got the work...transifex the money 🙁

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