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: fetch languages from Crowdin API #35

Merged
merged 4 commits into from
Feb 12, 2022
Merged

refactor: fetch languages from Crowdin API #35

merged 4 commits into from
Feb 12, 2022

Conversation

ImRodry
Copy link
Contributor

@ImRodry ImRodry commented Feb 9, 2022

This PR removes the hardcoded languages array from exportPattern.ts and fetches them once they're used and caches them (if cache isn't disabled). Resolves #32

src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
@ImRodry
Copy link
Contributor Author

ImRodry commented Feb 11, 2022

All requests have been addressed, could you re-review? I also made sure to test a bunch of scenarios and I can confirm the languages API is only fetched once with cache enabled!

@yevheniyJ
Copy link
Collaborator

Thanks! Will take a look later on. Probably will release it this weekend. Thanks

@yevheniyJ yevheniyJ merged commit 08b07b6 into crowdin:main Feb 12, 2022
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.

Proposal: get language list from Crowdin API
2 participants