Android Bug Report: GitHub App Download Writes Wrong Language to All Files
complete
M
Mikko Koskenseppä
Sorry for the mostly AI generated bug report and its stupid formatting (my own attempt at explaining the issue was just gibberish so this is better than that), and hopefully this is an okay place to leave bug report,s but we have a weird issue on Android after updating to usage of Github App
Summary
The SimpleLocalize GitHub App download writes identical Swedish (sv) content to all three language files (en, fi, sv), ignoring the language-key mapping in simplelocalize-github.yml. The dashboard shows correct translations for all languages — the issue is only in the download output.
Environment
- Platform: Android (android-strings format)
- Integration: SimpleLocalize GitHub App
- Languages: en, fi, sv | Default: en | Fallback: None
- Also in repo: simplelocalize.yaml (legacy CLI config)
Configuration
simplelocalize-github.yml (download section)
download:
pull-branch: "develop"
push-branch: "simplelocalize/translations"
files:
- path: "client/src/main/res/values/strings.xml"
format: "android-strings"
language-key: "en"
options: [WRITE_NESTED, INCLUDE_DESCRIPTIONS]
- path: "client/src/main/res/values-fi/strings.xml"
format: "android-strings"
language-key: "fi"
options: [WRITE_NESTED, INCLUDE_DESCRIPTIONS]
- path: "client/src/main/res/values-sv/strings.xml"
format: "android-strings"
language-key: "sv"
options: [WRITE_NESTED, INCLUDE_DESCRIPTIONS]
Legacy CLI config also present:
simplelocalize.yaml
downloadPath: ./client/src/main/res/values-{lang}/strings.xml
downloadLanguageKeys: ['fi', 'sv']
Expected vs Actual
Expected: Each file gets its own language (en -> values/, fi -> values-fi/, sv ->
values-sv/).
Actual: All three files are byte-for-byte identical, all containing Swedish:
<!-- values/strings.xml — should be English -->
<string name="action_generic_cancel">Avbryt</string> <!-- should be "Cancel" -->
<string name="action_continue">Fortsätt</string> <!-- should be "Continue" -->
<!-- values-fi/strings.xml — should be Finnish -->
<string name="action_generic_cancel">Avbryt</string> <!-- should be "Peruuta" -->
<string name="action_continue">Fortsätt</string> <!-- should be "Jatka" -->
What We Verified
- Dashboard translations are correct for all languages
- Default language is English, fallback is None
- language-key mappings in config are correct
- Source files on develop branch contain correct English
- The old integration (GitHub Actions + CLI) worked correctly
Timeline
Mar 13 │ Last update via old CLI workflow -> Correct
Mar 20 │ Migrated to GitHub App -> No download yet
Mar 26 │ First GitHub App download -> All files Swedish
Mar 31 │ 4th language (German) added then removed -> Still all Swedish
The GitHub App has never produced a correct download since migration.
Possible Issue From Our Side
The legacy simplelocalize.yaml has downloadLanguageKeys: ['fi', 'sv'] (no English). If the
GitHub App reads or merges this file, it could cause language resolution issues — but
shouldn't produce identical Swedish in all files.
Steps to Reproduce
- Project with 3 languages (en, fi, sv), default English, no fallback
- Use simplelocalize-github.yml config as shown above
- Have simplelocalize.yaml CLI config also present in repo
- Trigger a download / publish
- All three output files contain identical Swedish
Jakub Pomykała
marked this post as
complete
Jakub Pomykała
marked this post as
in progress
Jakub Pomykała
Hey Mikko Koskenseppä
in "download" section, you have to specify language keys to get the correct results:
- client/src/main/res/values/strings.xml
please add "language-keys" with "en"
- client/src/main/res/values-{lang}/strings.xml
please add "language-keys" with "fi", "sv"
Here is the full config:
download:
pull-branch: "develop"
push-branch: "simplelocalize/translations"
files:
- path: "client/src/main/res/values/strings.xml"
format: "android-strings"
language-keys:
- "en"
options:
- "WRITE_NESTED"
- "INCLUDE_DESCRIPTIONS"
- path: "client/src/main/res/values-{lang}/strings.xml"
format: "android-strings"
language-keys:
- "fi"
- "sv"
options:
- "WRITE_NESTED"
- "INCLUDE_DESCRIPTIONS"
Do not hesitate to contact us also via email (contact@simplelocalize.io) regarding bugs, usually we can provider help faster there. 😊
Tip:
Usually, you don't want to upload translation files for other languages ("sv", "fi") than the default one ("en"), so you can skip uploading those files:
- client/src/main/res/values-fi/strings.xml
- client/src/main/res/values-sv/strings.xml
unless you make updates there. 😉
Photo Viewer
View photos in a modal
M
Mikko Koskenseppä
Aah, so in the end it was my own mistake. Thank you very much for the help!