-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: add support for JSONv4 #214
Conversation
f54275d
to
8948775
Compare
Also force using JSONv4 for ICU as it makes the plural categories more correct. This is technically a breaking change, but as the feature was explicitely marked as expermiental, I wouldn't worry too much. I have yet to decide if JSONv4 should be made the default now (which would require a major version increase). We surely want new users to use JSONv4 by default, but a major version increase might be an opportunity to include other changes. closes #203
The plural count changed between node 12 and node 14, which makes the test irrelevantly fail for node 12.
@gilbsgilbs any idea when this will get released? 🙏🏻 |
Sorry @pederjohnsen , I've been busy lately. The reason I did not publish a release yet is that I am not ready to undergo a wave of reports in case the release isn't as stable and harmless as I wished. Therefore, it would really help if you tested current master branch on your projects and confirm it indeed works. It would definitely boost my confidence and help me make the release faster 😬 . Otherwise, I'll try to draft a release by next week or so (no guarantee). |
Hey @gilbsgilbs, Sorry to dig up this thread again. Alternatively, would you feel confident enough to publish an |
Thanks @Regaddi :)
I think the easiest way is to clone the repo and build it locally (
Yes, you're absolutely right. Thanks for bringing up this idea. I'll try to do that tonight. |
@gilbsgilbs sorry, been on holiday and only seen your reply 🤦🏻 I'm also happy to give it a test if you publish an alpha release 🤝 |
@gilbsgilbs Thanks so much for setting this up, this really simplifies testing by a lot 🙌 I already started writing down a few findings, but then I figured I might have to clean my
node_modules |
Thanks for your precious feedback @Regaddi . I really appreciate that. The issues you had before cleaning up node_modules were weird to say the least, but I'll advise users to cleanup their node_modules in the changelog then. After all, it's been a while since the last release and the dependencies have moved a lot since then. I don't think this plugin stores anything on disk (except the output file). And I'll also mention that the plugin won't migrate the files to v4 for you, pointing to i18next's migration guide and i18next-v4-format-converter (even though that seemed unrelated to your issue since you said you had already migrated to v4).
Thank you! This is the exact reason why I initially started this project, so these kind words are especially meaningful to me. |
Also force using JSONv4 for ICU as it makes the plural categories more
correct. This is technically a breaking change, but as the feature was
explicitely marked as expermiental, I wouldn't worry too much.
I have yet to decide if JSONv4 should be made the default now (which
would require a major version increase). We surely want new users to use
JSONv4 by default, but a major version increase might be an opportunity
to include other changes.
closes #203