crowdin-cli: [Android] Crowdin CLI tool could not find pre-fetched source files

Describe the bug I am currently working on setting up Crowdin cli for a multi-module project for Android.I’ve followed the directions on how to pull sources and translations with the use of the cli-tool, but recently encountered an issue. Currently using the Crowdin-figma plugin, hence do not have source files in the repository, and the need to pull sources and their respective translations.

To Reproduce Steps to reproduce the behavior: I have setup the config and a kotlin script to move source files to their right destinations.

  1. Configuration file: the config for pulling translations The repo has been setup to follow this format: feature/$featureName/src/main.... The source file exists in the values folder. The string file for each of the feature is named as $featureName.xml. This is so that config can be reusable for multiple android modules.
{
    "source": "/feature/*/src/main/res/values/*.*",
    "translation": "/feature/%file_name%/src/main/res/values-%osx_locale%/%original_file_name%",
    "skip_untranslated_files": true,
    "export_only_approved": true,
 }

I have this configured in my Crowdin project, Resulting file after translations export: /feature/%file_name%/src/main/res/values-%osx_locale%/%original_file_name%

  1. Execute CLI command: crowdin download --identity {{crowdinCredentials}} --config {{translationsConfig}} --verbose

  2. See an error Screenshot 2022-08-04 at 01 37 02

Expected behavior It does well to output the correct folder structure for the languages available, but it could not place the translations file in those folders. Am I doing something wrong?

Environment:

  • OS: MacOS
  • Version: 3.7.9

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (14 by maintainers)

Most upvoted comments

There’s no config for uploading sources. We use the Crowdin-Figma plugin to populate the file on Crowdin. So the sequence of steps in the script only pulls the sources and the translations.

1. crowdin download sources --identity $crowdinCredentials --config $sourceConfig --verbose
2. crowdin download --identity $crowdinCredentials --config $translationsConfig --verbose

Sent.