-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Scan + merge #140
Comments
Hello, |
I've managed to solve it. Checkout this repository https://github.com/char0n/i18next-test. When creating config for scanner it allows you to configure custom flush function which can control flushing the data into files. See this configuration (line 33-34 is the key) for more information. Algorithm can be modified to compensate for your requirements if they arise. |
hello @char0n
|
If you clone the repo and install and run |
@andreidiaconescu You probably just need to make this line |
Hi, I improved a bit the
|
@Justkant nice work. Thanks for sharing! |
I just notice that using Changing |
Thank you @Justkant. Works like a charm ) |
@illuminist Thank you so much for finding that. Saved me hours! |
@illuminist: thanks it worked! |
for my case i just had to omit the output part and just use loadPath and savePath to get this "merge behaviour" but thanks for @illuminist for pointing me into the right direction! |
Version
Is it possible to use scanner in a merge mode ? I'll describe what I mean...I already have some
.json
files translated, so they contain keys and translated values. I want to use the scanner to scan the codebase if there are new keys to be added. If yes, it will add the new keys to existing translation files. All the old keys will remain in translations files, it doesn't matter if they are used or not. Basically this covers usecase for progressively using scanner to add new keys to translation files from the source code in automated way. I haven't find a way how to do that.removeUnusedKeys
is just not not having any effect. Can you pls advice if this is something that scanner can already do ?Thank you
The text was updated successfully, but these errors were encountered: