feat: replace languages api with languages from distribution#330
Merged
andrii-bodnar merged 3 commits intomasterfrom Feb 5, 2026
Merged
feat: replace languages api with languages from distribution#330andrii-bodnar merged 3 commits intomasterfrom
andrii-bodnar merged 3 commits intomasterfrom
Conversation
- update logic for supported languages and remove deprecated models; - add new tests;
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #330 +/- ##
=============================================
+ Coverage 0 58.10% +58.10%
- Complexity 0 403 +403
=============================================
Files 0 57 +57
Lines 0 1785 +1785
Branches 0 321 +321
=============================================
+ Hits 0 1037 +1037
- Misses 0 524 +524
- Partials 0 224 +224 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
This PR is being reviewed by Cursor Bugbot
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
crowdin/src/main/java/com/crowdin/platform/data/remote/TranslationDataRepository.kt
Outdated
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Moderate risk because it changes the supported-language source/type and caching behavior, which affects locale matching and downstream translation/loading flows; failures could surface as missing language info or incorrect language selection.
Overview
Switches supported-language resolution from the Crowdin core API to the distribution endpoint
/{hash}/languages.json, replacing the oldLanguagesInfo/custom_languagesmodels with aSupportedLanguagesmap (code -> {name, locale}).Adds timestamp-based caching of supported languages in
DataManagerviaCachedLanguageskeyed to the currentSyncData/manifest timestamp, and updates locale matching (getMatchedCode) plus string/translation loading and realtime updates to rely on this map with clearer failure handling when language details are missing.Written by Cursor Bugbot for commit e1f82eb. This will update automatically on new commits. Configure here.