Coder Social home page Coder Social logo

onesky-gradle-plugin's People

Contributors

frett avatar iwo-polanski-brainly avatar marcin-4k avatar scana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

marcin-4k frett

onesky-gradle-plugin's Issues

When downloading translations the plugin doesn't take any custom locales into account

OneSky allows you to set a custom locale for a language:
Screenshot 2024-04-02 at 11 52 54 AM

When downloading translation files from the OneSky website it respects this custom locale, but the plugin currently uses the original locale.

It appears that the fetch project languages API has an undocumented custom_code attribute that is returned for languages.

Sample response from one of our projects:

        {
            "code": "lv-LV",
            "custom_locale": "lv",
            "english_name": "Latvian (Latvia)",
            "is_base_language": false,
            "is_ready_to_publish": false,
            "last_updated_at": "2024-03-28T20:38:38+0000",
            "last_updated_at_timestamp": 1711658318,
            "local_name": "Latviešu (Latvija)",
            "locale": "lv",
            "region": "LV",
            "translation_progress": "100.0%"
        },
        {
            "code": "te-IN",
            "custom_locale": null,
            "english_name": "Telugu (India)",
            "is_base_language": false,
            "is_ready_to_publish": false,
            "last_updated_at": "2023-12-29T22:22:27+0000",
            "last_updated_at_timestamp": 1703888547,
            "local_name": "తెలుగు (భారత దేశం)",
            "locale": "te",
            "region": "IN",
            "translation_progress": "59.4%"
        },

It would be nice if the plugin respected the custom_locale when downloading a translation.

Run download tasks in parallel

Currently translations are being downloaded one by one - would be worth it to try to download more at a time.
OneSky's API limitation should be considered.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.