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
JSON file: Adding a new translation string it is stored in the nested JSON format #4779
Comments
The issue you've reported needs to be addressed in the translate-toolkit. Please file the issue there, and include links to any relevant specifications about the formats (if applicable). |
This should be fixed by translate/translate#4161 |
This is a regression introduced by #4091 as that makes the flat JSON file expand the unit keys. Fixes WeblateOrg/weblate#4779
Thank you for your report, the issue you have reported has just been fixed.
|
Is there a way to get this bugfix of the translate tool? Or do I have to wait for a new Docker image? |
It should be already present in the |
Thanks 👍 |
I'm seeing the same (or a similar issue on v4.12.1). Should I file a new issue? Or am I missing a configuration option? When I added two new translations to my component (which already has a flat JSON file in the translated language), they were added at the end in a nested format.
|
In case you are using "JSON nested structure file", this is expected behavior. |
Describe the bug
I observe a behaviour change between version 3.1.1 to 4.1.1 or 4.3.1.
I updated the Weblate docker container from version 3.1.1-6 via 4.1.1-3 to latest version 4.3.1-1.
I have a component with "file format" = "JSON file"
Before the update I had the following behaviour:
When I add a new translation key like "a.b.c" to the default language (English) via Weblate UI it is stored as
"a.b.c": "dd"
After the update I had the following behaviour:
When I add a new translation key like "a.b.c" to the default language (English) via Weblate UI it is stored as
Is this a bug?
To reproduce the bug
Steps to reproduce the behaviour:
Expected behavior
If the file format of the translation file is chosen as "JSON file" than I expect that the nested file format is not used.
Server configuration and status
Weblate deploy checks
The text was updated successfully, but these errors were encountered: