Git: How to handle the issue that a source file is translated and then returned to GitHub
Introduction
Sometimes, when you review a particular project in GitHub, you might come across the issue that its source file has unintentionally been translated into some target language or other. For example, a source file in English might have been translated into Portuguese (Brazil), although the corresponding XTM Cloud project clearly contains an English-language source file.
This article provides a possible root cause for the issue and the solution.
Troubleshooting
This problem occurs if the project’s bucket is configured incorrectly, with regard to target naming rules. If the target naming rule has not assigned for the target language into which the source file is to be translated, in the bucket, this causes the source file to be updated before it is returned to GitHub.
To resolve the issue, take the following steps:
Enter the General settings for the bucket.
Edit the rule in the Target naming rules section at the bottom of the page.
Find and select the affected target language, and assign it to the rule. Confirm your changes by clicking on the Update rule button.
That’s it! The steps above will ensure that newly created XTM Cloud projects will commit their files as expected, without updating the source file.