Skip to content

use application supportedLocales#646

Merged
epou merged 2 commits intomainfrom
use_application_supportedLanguage
Nov 14, 2025
Merged

use application supportedLocales#646
epou merged 2 commits intomainfrom
use_application_supportedLanguage

Conversation

@epou
Copy link
Member

@epou epou commented Nov 14, 2025

No description provided.

@epou epou requested a review from Copilot November 14, 2025 10:37
@epou epou self-assigned this Nov 14, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the locale support checking mechanism in the localization delegate. Instead of maintaining a hardcoded list of supported language codes, the implementation now delegates to a centralized application.supportedLocales() method.

Key Changes:

  • Replaced hardcoded list of 21 language codes with a call to application.supportedLocales()
  • Added import for Application.dart to access the centralized locale configuration

@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 25.63%. Comparing base (d8dfc4a) to head (04146f4).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #646      +/-   ##
==========================================
- Coverage   25.75%   25.63%   -0.12%     
==========================================
  Files          25       26       +1     
  Lines        1658     1693      +35     
==========================================
+ Hits          427      434       +7     
- Misses       1231     1259      +28     
Flag Coverage Δ
unittests 25.63% <ø> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@epou epou merged commit 2bfb7e8 into main Nov 14, 2025
3 of 4 checks passed
@epou epou deleted the use_application_supportedLanguage branch November 14, 2025 10:59
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.

2 participants