Skip to content

Conversation

@MykhailoNester
Copy link
Collaborator

@MykhailoNester MykhailoNester commented Jan 14, 2026

  • replace languages api with languages from distribution;
  • update logic for supported languages and remove deprecated models;
  • add new tests;

Note

Moves language metadata to distribution-provided languages.json and introduces a map-based SupportedLanguages.

  • Replace LanguagesInfo and related models/mappers with SupportedLanguages (code -> LanguageDetails); remove deprecated classes
  • Fetch languages via CrowdinDistributionApi.getLanguages and update usages in Crowdin, StringDataRemoteRepository, TranslationDataRepository, MappingRepository
  • Add cached lookup in DataManager using CachedLanguages keyed by SyncData.timestamp
  • Simplify locale matching by removing custom-languages path; update getMatchedCode
  • Remove CrowdinApi.getLanguagesInfo; adjust API interfaces accordingly
  • Update example SettingsFragment to new API and add/modify unit tests for languages fetch and cache behavior

Written by Cursor Bugbot for commit 8af81ae. This will update automatically on new commits. Configure here.

- update logic for supported languages and remove deprecated models;
- add new tests;
@MykhailoNester MykhailoNester self-assigned this Jan 14, 2026
@MykhailoNester MykhailoNester added the enhancement New feature or request label Jan 14, 2026
@codecov
Copy link

codecov bot commented Jan 14, 2026

Codecov Report

❌ Patch coverage is 77.19298% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.94%. Comparing base (5fbd84f) to head (8af81ae).

Files with missing lines Patch % Lines
.../platform/data/remote/TranslationDataRepository.kt 68.43% 2 Missing and 4 partials ⚠️
...platform/data/remote/StringDataRemoteRepository.kt 57.15% 2 Missing and 1 partial ⚠️
...crowdin/platform/data/remote/CrowdingRepository.kt 77.78% 0 Missing and 2 partials ⚠️
...wdin/src/main/java/com/crowdin/platform/Crowdin.kt 0.00% 1 Missing ⚠️
...n/platform/realtimeupdate/RealTimeUpdateManager.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             master     #330       +/-   ##
=============================================
+ Coverage          0   57.94%   +57.94%     
- Complexity        0      403      +403     
=============================================
  Files             0       58       +58     
  Lines             0     1790     +1790     
  Branches          0      320      +320     
=============================================
+ Hits              0     1037     +1037     
- Misses            0      529      +529     
- Partials          0      224      +224     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

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.

@andrii-bodnar andrii-bodnar changed the title feat: Replace languages api with languages from distribution; feat: replace languages api with languages from distribution Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants