I’m building my first instance of Pontoon so I pass through all the troubleshouting so I apologize for the noise.
I created a dummy project in my github that has 2 folders, “en” and “fr” with 1 single .json file in it. (locale.json).
The first file (en/locale.json) embed the key values pairs and the other one nothing (as i want to do the translation in pontoon).
I installed the repository in my pntoon instance as followed:
When I synchronise the project, only one file is updated (en/locale.json) and in both languages.
I was thinking to find a first file: “en/locale.json” in read-only mode in the english locale and “fr/locale.json” to be translated in french locale. Did I misunderstood how pontoon work or is there something wong with my parameters ?
There’s no need to create an empty file in the fr folder, Pontoon will create it as soon as you translate.
With that said, Pontoon at the moment only supports JSON used in WebExtensions, and that’s not the one you’re using. There’s an open pull request to add support for key-value JSON, but not nested.
Please clear the “Source repo” checkbox. It actually means that the repository contains source strings directly in the root (instead of in the designated source locale folders).
We should probably make the label more self-explanatory.
@flod As you suggested, I removed the “fr” folder content (which deleted the “fr” folder altogether in the process as git don’t mount empty directories.
Now when I translate 1 key and validate the translation, I cannot synchronize back to the repository: