Closed gilbsgilbs closed 2 years ago
@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.
What is the best way forward to test your current master branch?
I tried installing the package per "babel-plugin-i18next-extract": "github:gilbsgilbs/babel-plugin-i18next-extract#master"
, but that only clones your repository into node_modules
, but it's not transpiled nor does it match the configured entry files as defined in your package.json.
I assume I'd need to configure something to convert the cloned repo to the expected structure, as published to npm.
Alternatively, would you feel confident enough to publish an alpha
release to npm? This would simplify testing a lot βΊοΈ
Thanks @Regaddi :)
What is the best way forward to test your current master branch?
I think the easiest way is to clone the repo and build it locally (yarn run build
), then link it (yarn link && cd /path/to/YOUR/project && yarn link babel-plugin-i18next-extract
). Not sure if the linking procedure is exactly the same with NPM and others though, so please adapt depending on your tools.
Alternatively, would you feel confident enough to publish an alpha release to npm? This would simplify testing a lot relaxed
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
, which in fact did the trick. Keeping my notes as a hint for others anyway:
node_modules
All works as expected π This is an amazing step forward and I'm really stoked that it just works. The underlying codebase covers >250 TypeScript and JavaScript files with ~28.000 lines of code, in case that's a helpful metric for you.
I'll update to the new version now and keep you posted about any issues, if any pop up.
Thank you so much for your work! IMO this is by far the most convenient and easiest-to-apply solutions, compared to other i18n scanners. π
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).
IMO this is by far the most convenient and easiest-to-apply solutions, compared to other i18n scanners.
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