question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Warning: Downloaded translations do not match current project configuration" when using `language_mappings` and `osx_code`

See original GitHub issue

Client 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_codemapping, 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:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
yavorysynkacommented, Dec 13, 2017

Great! You’re welcome, feel free to reach whenever needed. 😃

1reaction
yavorysynkacommented, Dec 11, 2017

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?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Downloaded translations don't match the current project ...
Hi guys! We recently start using CLI and now I'm trying to download translations via CLI but the system gives me the follwoing...
Read more >
How to specify output path for crowdin cli translations?
Downloaded translations don't match the current project configuration. The translations for the following sources will be omitted (...).
Read more >
@crowdin/cli - npm
Features. Interactive generation of a configuration file; Upload source files and existing translations to a Crowdin project; Download latest ...
Read more >
Using Crowdin - i18n - Docusaurus
Crowdin provides a CLI to upload sources and download translations, allowing you to automate the translation process. The crowdin.yml ...
Read more >
crowdin-cli-py - PyPI
Basically, `crowdin-cli-py` go through project directory, and looks for ... where translations should be placed after downloading (also the path have to be ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found