[Android] Crowdin CLI tool could not find pre-fetched source files
See original GitHub issueDescribe 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.
- 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 thevalues
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%
-
Execute CLI command:
crowdin download --identity {{crowdinCredentials}} --config {{translationsConfig}} --verbose
-
See an error
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:
- Created a year ago
- Comments:24 (14 by maintainers)
Top GitHub 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.
Sent.