-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Updating default values in code from json values #201
Comments
I was able to implement a solution that can keep code default translations in sync with json file values, that in our case comes from a translation platform. |
So if someone is interested in also doing it, let me know. I might implement a public package that can do that. |
@ekeuus were you able to do so? |
Yep, I didn't make a package due to lazyness, but I have something that works for most cases (one still has to go through the files if you have strings with newlines). I made a "reverse" scanner that works as follows:
Probably the script can be made nicer, but I just threw it together quickly when I needed it. :) package json
i18next-reverse-scanner.config.js
defaultValueUpdaterFromJson.mjs
|
Is it possible to update default values in code from json values since we update keys in an external platform and not in the code itself?
The text was updated successfully, but these errors were encountered: