crowdin / android-studio-plugin

Integrate your Android project with Crowdin
https://support.crowdin.com/android-studio/
MIT License
57 stars 27 forks source link

Crowdin Pluggin android studio Download section empty #140

Open iZakirSheikh opened 3 days ago

iZakirSheikh commented 3 days ago

Describe the bug I can clearly see the files in upload section and progress section. but there are no- files in Download section.

Environment:

  1. Android Studio Ladybug
  2. OS version Windows 11
andrii-bodnar commented 3 days ago

Hi @iZakirSheikh, please provide your crowdin.yml configuration file and an example of the structure of localization files in the project.

iZakirSheikh commented 2 days ago

Hello @andrii-bodnar, I have partially resolved the issue by first manually downloading the empty translation files from Crowdin as a zip file and then moving them to my app folder. After this, the download section began to function normally. Below is my Crowdin .yml file; please note that I provide the API Key and project ID in the plugin settings

preserve_hierarchy: true
files:
  - source: "**/values/strings.xml"
    translation: "/values-%android_code%/%original_file_name%" #CORRECT
    update_strings: true
    cleanup_mode: true
    import_eq_suggestions: true
    auto_approve_imported: true
    translate_hidden: true
andrii-bodnar commented 22 hours ago

@iZakirSheikh yes, actually it's expected behavior because plugin relies on local translation files while rendering the file tree in the Downloads tab.

iZakirSheikh commented 4 hours ago

@iZakirSheikh yes, actually it's expected behavior because plugin relies on local translation files while rendering the file tree in the Downloads tab.

Thank you for the clarification. However, it would have been helpful if this was explicitly mentioned, perhaps in the GitHub README of the plugin—it could have saved a lot of time.

Additionally, I noticed that downloading translations takes longer than expected, even though the files are only a few kilobytes in size. Ideally, this process should happen on the fly for better efficiency.

Lastly, I’d suggest making the plugin's buttons more intuitive. For example, placing the "Download Sources" button right next to "Download Translation" can be confusing, as users may not always want to update sources from Crowdin.

Thanks!