-
-
Notifications
You must be signed in to change notification settings - Fork 959
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
i18next JSON base language file wrong parsed #6869
Comments
Weblate currently supports i18next JSON v3 which uses numeric suffix for plurals (see https://www.i18next.com/misc/json-format). In case you are using v4, the key is valid, but support for this is missing in Weblate, see #6689 |
Thanks, wasnt aware of these versions. |
If it finds _0, it looks for other plurals. If _0 is not present the keys are handled as they are, see https://github.com/translate/translate/blob/b19fb6be15461a1413f67625b158ab9c73369ce5/translate/storage/jsonl10n.py#L362-L364 |
Thanks! |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
Describe the issue
Hello,
I wanted to give this project a try and installed it as docker container and imported a project, but seems one string of the base language file got imported wrongly.
This is a nogo for obv reasons and I may need to check now all strings manually...
How can I fix the string in weblate?
I already tried
Steps to reproduce the behavior
mailbox.booking_0
'converts to'mailbox.booking
https://github.com/mailcow/mailcow-dockerized/blob/staging/data/web/lang/lang.en.json#L723Expected behavior
Detects strings right
Screenshots
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
Weblate deploy checks
Additional context
No response
The text was updated successfully, but these errors were encountered: