Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable crowdin stats command #9962

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

riknoll
Copy link
Member

@riknoll riknoll commented Apr 10, 2024

Re-implementing the crowdin stats command with the v2 APIs.

FYI, I tweaked the behavior somewhat. The previous version of the command always checked translations for all targets even if it was run from within a target repo. I assume this was a mistake, so I made it so that it now filters the translations to only include core and the strings from the target repo it's run within (e.g. running within pxt-arcade will only check for translations of strings in pxt-arcade and pxt-core). Running the command within pxt-core will go back to the old behavior and collect stats for all targets at the same time. @abchatra FYI

Also, this will probably take a lot longer to run then the old version. The new APIs require us to make many separate requests as opposed to the old API's single request.

@riknoll riknoll requested review from abchatra and a team April 10, 2024 23:37
@riknoll riknoll merged commit 24e1429 into master Apr 11, 2024
7 checks passed
@riknoll riknoll deleted the dev/riknoll/crowdinv2-stats branch April 11, 2024 00:16
riknoll added a commit that referenced this pull request Apr 11, 2024
riknoll added a commit that referenced this pull request Apr 11, 2024
* Upgrade to Crowdin V2 APIs (#9954)

* use crowdin v2 apis

* rename crowdin API

* add projectid setting

* fix test mode

* copy pxt-translations crowdin config

* re-enable crowdin stats (#9962)
riknoll added a commit that referenced this pull request Apr 30, 2024
* Upgrade to Crowdin V2 APIs (#9954)

* use crowdin v2 apis

* rename crowdin API

* add projectid setting

* fix test mode

* copy pxt-translations crowdin config

* re-enable crowdin stats (#9962)
riknoll added a commit that referenced this pull request Apr 30, 2024
…branch (#9991)

* [V9] Cherry picking crowdin work over to v9 branch (#9963)

* Upgrade to Crowdin V2 APIs (#9954)

* use crowdin v2 apis

* rename crowdin API

* add projectid setting

* fix test mode

* copy pxt-translations crowdin config

* re-enable crowdin stats (#9962)

* Add restore command and keep translations when updating (#9966) (#9968)

* add restore command and keep translations when updating

* add --test flag

* add parameter to prevent accidental runs
riknoll added a commit that referenced this pull request May 8, 2024
…branch (#9991)

* [V9] Cherry picking crowdin work over to v9 branch (#9963)

* Upgrade to Crowdin V2 APIs (#9954)

* use crowdin v2 apis

* rename crowdin API

* add projectid setting

* fix test mode

* copy pxt-translations crowdin config

* re-enable crowdin stats (#9962)

* Add restore command and keep translations when updating (#9966) (#9968)

* add restore command and keep translations when updating

* add --test flag

* add parameter to prevent accidental runs
riknoll added a commit that referenced this pull request May 17, 2024
…necraft stable (#10009)

* [stable9.0] Cherry picking crowdin changes over to Calliope's stable branch (#9991)

* [V9] Cherry picking crowdin work over to v9 branch (#9963)

* Upgrade to Crowdin V2 APIs (#9954)

* use crowdin v2 apis

* rename crowdin API

* add projectid setting

* fix test mode

* copy pxt-translations crowdin config

* re-enable crowdin stats (#9962)

* Add restore command and keep translations when updating (#9966) (#9968)

* add restore command and keep translations when updating

* add --test flag

* add parameter to prevent accidental runs

* hide asset name when assetEditor is false (#9878)

* Fixes for image editor in micro:bit (#9900)

* fix compile variants when palette is in dep

* add field editor param for the tagged template

* fix help link in monaco flyout (#10008)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants