Skip to content

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

Answered by andrii-bodnar
Afolayan asked this question in Q&A
Discussion options

You must be logged in to vote

@Afolayan here is a working single config that will allow you to download source and translation files:

"preserve_hierarchy": "true"

files: [
 {
    "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,
    "excluded_target_languages": [
      "ach"
    ]
 },
]

You don't need the translation_replace here. Just configure the right language mapping in your Crowdin project settings.

It requires changes in the files structure in the Crowdin project (just create the folders in UI and move the file):

And my CLI output:

As you can se…

Replies: 26 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andrii-bodnar
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #462 on August 08, 2022 08:07.