-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: add missing languages and correctly find languageCode #27
Conversation
The last commit is a fix to projects with files hidden to certain languages, which simply catches the request and makes it fall back to null so it can later be removed from getLanguageTranslations |
I committed that fix a while ago but for some reason github didn’t pick up, so I force-pushed |
Looks good. Just a minor comment. I will merged and release new version tomorrow and also will bump the axios library |
Done. Please use the squash and merge option when you merge since we got a few commits here :P |
BTW I plan on opening a second PR to fix a few performance issues and other minor improvements, if you wanna wait a few hours for that, otherwise feel free to merge and release and that can come later :) |
This PR adds missing languages that were recently added to Crowdin (obtained through
/languages
on the API) and also fixes the find function to look for the osxLocale instead of the twoLettersCode, as this code is often repeated in some languages and caused them to be incorrectly retrieved. These changes were tested and confirmed to work. There is one issue left, which is that, for files that are only available to specific languages, the client will throw an error as it cannot fetch the endpoint. I can fix this by removing these files from the final array, let me know if you'd like that fix or a different approach, as the CDN currently does not tell us which files are available in what languages beforehand.