"Warning: Downloaded translations do not match current project configuration" when using `language_mappings` and `osx_code`
See original GitHub issueClient version: 2.0.20
Issue:
I’m currently having issues trying to pull translations for the following locales to update my .strings file in an Xcode project.
Languages that failed to pull:
- zn-Hant
- zn-Hans
- es
- pt-BR
Here is part of our yaml that describes how we want to translate those languages into the project. I’ve tried a few variants on the osx_code
mapping, including "es-ES.lproj" : "es.lproj"
and "es-ES" : "es"
. I’m not entirely sure which one is supposed to work, but I ran curl https://api.crowdin.com/api/supported-languages
to try and match the supported languages:
"files": [
{
"source" : "/Project/Localization/en.lproj/Localizable.strings",
"translation" : "/Project/Localization/%osx_code%/%original_file_name%",
"dest" : "Localizable.strings",
"languages_mapping" : {
"osx_code" : {
"es-ES" : "es.lproj",
"de" : "de.lproj",
"pt-BR" : "pt.lproj",
"it" : "it.lproj",
"ja" : "ja.lproj",
"zh-CN" : "zh-Hans.lproj",
"zh-TW" : "zh-Hant.lproj"
}
}
},
...
]
The following error returns:
[14:05:12]: ▸ Building ZIP archive with the latest translations for 'es-ES' - skipped
[14:05:12]: ▸ Warning: Export was skipped. Please note that this method can be invoked only once per 30 minutes.
[14:05:13]: ▸ Warning: Downloaded translations do not match current project configuration. The following files will be omitted:
[14:05:13]: ▸ - '/Project/Localization/es.lproj/InfoPlist.strings'
[14:05:13]: ▸ - '/Project/Localization/es.lproj/Localizable.strings'
[14:05:18]: ▸ Building ZIP archive with the latest translations for 'zh-CN' - skipped
[14:05:18]: ▸ Warning: Export was skipped. Please note that this method can be invoked only once per 30 minutes.
[14:05:20]: ▸ Warning: Downloaded translations do not match current project configuration. The following files will be omitted:
[14:05:20]: ▸ - '/Project/Localization/zh-Hans.lproj/InfoPlist.strings'
[14:05:20]: ▸ - '/Project/Localization/zh-Hans.lproj/Localizable.strings'
[14:05:20]: ▸ Building ZIP archive with the latest translations for 'zh-TW' - skipped
[14:05:20]: ▸ Warning: Export was skipped. Please note that this method can be invoked only once per 30 minutes.
[14:05:21]: ▸ Warning: Downloaded translations do not match current project configuration. The following files will be omitted:
[14:05:21]: ▸ - '/Project/Localization/zh-Hant.lproj/InfoPlist.strings'
[14:05:21]: ▸ - '/Project/Localization/zh-Hant.lproj/Localizable.strings'
[14:05:21]: ▸ Building ZIP archive with the latest translations for 'pt-BR' - skipped
[14:05:21]: ▸ Warning: Export was skipped. Please note that this method can be invoked only once per 30 minutes.
[14:05:22]: ▸ Warning: Downloaded translations do not match current project configuration. The following files will be omitted:
[14:05:22]: ▸ - '/Project/Localization/pt-BR.lproj/InfoPlist.strings'
[14:05:22]: ▸ - '/Project/Localization/pt-BR.lproj/Localizable.strings'
Is there something that needs to be done on the web client, or is there a bug with the client for not parsing osx_code
mappings correctly? I am using version 2.0.20 of the client, and the command being run is java -jar crowdin-cli.jar -c crowdin.yml <command>
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top GitHub Comments
Great! You’re welcome, feel free to reach whenever needed. 😃
Hello!
Just sent you the answer over email 😃
It’s needed to replace %osx_code% pattern with %osx_locale%.lproj and remove language mapping, then run crowdin upload sources to update the export patterns. Could you please give it a try?