Replies: 2 comments 2 replies
-
In most cases such merge requests happen because of using different merge strategy in Weblate and when merging changes from Weblate. Having rebase and merge on both sides often helps. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Still, it might be a bit cleaner and less diff noise if there was a trailing comma everywhere? Though I've checked that at the moment Weblate can't even parse such files with a trailing comma - produces a parse error. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the issue
I have merge conflicts in JSON files like this:
They seem to happen when new strings are added to the end of the file and a trailing comma has to be added to the previous last line which is otherwise unchanged.
I have a "Customize JSON output" add-on activated.
I already tried
Steps to reproduce the behavior
As above.
Add new strings to the JSON file.
Expected behavior
No merge conflict.
Perhaps it won't be easy to make Weblate merge such changes.
Probably an easier solution is to always keep a trailing comma for the last output line.
Screenshots
No response
Exception traceback
How do you run Weblate?
Other
Weblate versions
5.12.2 (Codeberg Translate)
Weblate deploy checks
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions