Our website is localized using a bunch of JSON files with translations (one file per language). The content of the files looks like this:
{
"Password": "Passwort",
"Tables": "Tische"
}
Many team members edit these JSON files at the same time, adding new phrases and editing existing ones, and we get lots of conflicts even though people are changing different lines.
Is there a way to set up git in such a way that would help avoid merge conflicts?
P.S. I've found this script to help merge locally: https://gist.github.com/jphaas/ad7823b3469aac112a52. However, I'm interested in a solution that would fix the problem for everyone in the team (even for persons who edit JSONs through GitHub's web-interface).
:P
– Oops--word-diff
option, which can be helpful before/after merge. One option could be using external tool for merging, e.g. wiggle as suggested on unix.stackexchange.com/questions/20021/… – Thomsen.gitattributes
file to specify per-word diffing. It's applicable to GitHub. See git-scm.com/book/en/v2/Customizing-Git-Git-Attributes – Table