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

refactor: update Crowdin API to v2 #1177

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

mykola-mokhnach
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach commented Nov 5, 2023

Fixes #1115

Also replaced long-time-deprecated request libs with axios

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. Did you run the script once at least?

ci-jobs/crowdin-sync-translations.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@eglitise eglitise left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
I noticed that Crowdin also has their own JS client (https://github.com/crowdin/crowdin-api-client-js), maybe it could simplify some parts of the code? It could even be added to devDependencies instead of dependencies.

ci-jobs/crowdin-common.js Outdated Show resolved Hide resolved
ci-jobs/crowdin-update-resources.js Outdated Show resolved Hide resolved
ci-jobs/crowdin-sync-translations.js Outdated Show resolved Hide resolved
ci-jobs/crowdin-common.js Outdated Show resolved Hide resolved
@mykola-mokhnach
Copy link
Contributor Author

Thanks! I noticed that Crowdin also has their own JS client (https://github.com/crowdin/crowdin-api-client-js), maybe it could simplify some parts of the code? It could even be added to devDependencies instead of dependencies.

I am usually not a big fan of adding new dependencies in case the original implementation is simple and does not require a lot of boilerplate code.

@mykola-mokhnach mykola-mokhnach merged commit c92a0f1 into appium:main Nov 6, 2023
@mykola-mokhnach mykola-mokhnach deleted the crowdin branch November 6, 2023 09:09
shiva-guntoju pushed a commit to shiva-guntoju/appium-inspector that referenced this pull request Feb 2, 2024
laib3 pushed a commit to laib3/appium-inspector that referenced this pull request Nov 16, 2024
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.

Update crowdin api from v1 to v2
3 participants