Android: Couldn't find any file to download
See original GitHub issueDescribe the bug I tried setting up Crowdin CLI for an android project. I came up with a configuration file shown below to download translation files.
To Reproduce Steps to reproduce the behavior:
- Configuration file: ‘…’
"base_path" : "."
"base_url" : "https://api.crowdin.com"
"preserve_hierarchy": true
files: [
{
"source" : "/values/*.*",
"translation" : "/values-%android_code%/%original_file_name%",
"translation_replace": {
"pt_BR": "pt",
},
}
]
- Execute CLI command:
crowdin list sources
crowdin download ##Credentials & config
- See an error
I got this warning without any translations file added:
Couldn't find any file to download
Downloaded translations don't match the current project configuration. The translations for the following sources will be omitted (use --verbose to get the list of the omitted translations):
Expected behavior I expect to be able to pull translations.
crowdin list sources
works by listing all the english string files but crowdin download
does not seem to work as expected.
Environment:
- OS: Mac
- Version: 3.7.8
Screenshots If applicable, add screenshots to help explain your problem.
Additional context I see that a zip file got downloaded and extracted but this happens in split seconds, and then the extracted folder is no longer found.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Downloaded files not showing up in My Files
Is this problem occurring only when you try to download something using the Google app? If so, go to Settings>Apps, select Google, then ......
Read more >Fix problems downloading apps from the Play Store
Try the steps below if: Your downloads and app updates get stuck and won't finish. You can't download or install apps or games...
Read more >Can't Open A File on Android? Here Are Steps You Can Take
1. Check If Its A Genuine File Or A Malware · 2. Reboot Your Phone · 3. Download An App That Can Help...
Read more >How to fix Can't find an application to open this file in Android
How to fix Can't find an application to open this file in Android |Tablet-unable to open this file type android -can find an...
Read more >Can't find file downloaded by download manager in android
// Getting path to store the file String path = root.getAbsolutePath(); path += curr.getName(); request.setDestinationInExternalPublicDir(path, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Afolayan you could use the Language Mapping feature to change the language code for this placeholder to the preferred one.
@Afolayan thank you!
Please see this comment and below. Your issue is also related to the
Resulting file after translations export
.For CLI this export pattern should be the same as the
translation
pattern in thecrowdin.yml
configuration file. CLI passing it during the sources upload, but in case of files were uploaded in a different way, it should be specified manually.It might affect some existing integrations because files structure will change in an exported archive with translations.