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.

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

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:24 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
Afolayancommented, Aug 4, 2022

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
1reaction
Afolayancommented, Aug 4, 2022

Sent.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discussions · crowdin/crowdin-cli - GitHub
Online meetup? · [Android] Crowdin CLI tool could not find pre-fetched source files · Language(s) 'fr de' doesn't exist in the project. ·...
Read more >
Console Client (CLI) | Crowdin Developer Portal
Crowdin CLI is a command line tool that allows you to manage and synchronize your localization resources with your Crowdin project:
Read more >
Configuration File | Crowdin Developer Portal
Crowdin CLI uses a configuration file that contains a description of the resources to manage: files to be uploaded into Crowdin and the...
Read more >
Using CLI in CI | Crowdin Developer Portal
Use Crowdin CLI with tools like Jenkins and Grunt to automate your regular localization tasks (e.g., uploading source files, downloading finished translations, ...
Read more >
Uploading Files for Localization - Crowdin Documentation
Open your project and go to Content > Files. Drag and drop files from your machine, or click Upload Files. You can upload...
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