I have been using Transifex GitHub integration successfully for some time without configuring correctly language codes that differ from the Transifex and the Android standard. This means when Transifex makes the PR to the wrong file path, manually I move the files to the correct file path and accept the PR.
For automating the process, I added to the config file a language_mapping section. Like this:
settings:
language_mapping:
bg_BG: bg-rBG
sr@Latin: b+sr+Latn
cs_CZ: cs-rCZ
fa_IR: fa-rIR
fr_FR: fr-rFR
pt_BR: pt-rBR
pt_PT: pt-rPT
tr_TR: tr-rTR
zh_CN: zh-rCN
zh_TW: zh-rTW
But, I still receive PR from Transifex ignoring the local_code (android code). For example, this recent PR. Here is the complete config file.
Any idea of how to configure correctly the project?
Hi @jamescr,
Thanks for contacting Transifex support, I want to let you know that we are currently working on this. We manage to reproduce the issue with all the information that you provide and we’ll get back to you as soon as we get any news.
Best regards,
Carlos Olvera
1 Like
Hello Jamescr!
This is Sandy from the Transifex team. I have a few questions about this issue:
- Is this an issue happening with other languages, too?
- For the specific language, do you come across the same issue if instead of sr@Latin: b+sr+Latn, you used something more common like sr_Latn?
Hi Sandy,
- Is this an issue happening with other languages, too?
I added the language mapping section to the config file 2 days ago. Since then, I have only received one PR by Transifex, the serbian latin translation. So, I cannot confirm that it is happening with other languages.
* For the specific language, do you come across the same issue if instead of sr@Latin: b+sr+Latn, you used something more common like sr_Latn?
I’ll make the change and let you know.
Hi James!
Thank you for your reply. We will also test this on our end, and I’ll let you know as soon as I have an update.
Best,
Hi Sandy,
I checked (Android docs about language qualifiers values)[App resources overview | Android Developers] and confirmed the correct value for Serbian in Latin script is b+sr+Latn+RS
. Just for the test, I try sr_Latn
and didn’t work (I got a compile error as the folder was not recognized).
I didn’t try sr_Latn
in the Transifex side of the language mapping because seems that side of te github integration is OK with the code.