Skip to content

Conversation

@axunonb
Copy link
Member

@axunonb axunonb commented Jun 28, 2025

  • Fix method LocalizationProvider.GetString(string, CultureInfo?) to correctly handle fallback culture.
  • Introduce tests for fallback culture and key return behavior in LocalizationProviderTest. Implement a FakeResourceManager for resource simulation.
  • LocalizationProvider now has full code coverage

Should resolve issue 483

* Fix method `LocalizationProvider.GetString(string, CultureInfo?)` to correctly handle fallback culture.
* Introduce tests for fallback culture and key return behavior in `LocalizationProviderTest`. Implement a FakeResourceManager for resource simulation.
* `LocalizationProvider` now has full code coverage

Should resolve issue 483
@axunonb axunonb requested a review from karljj1 June 28, 2025 22:01
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Jun 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@c313597). Learn more about missing BASE report.
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##             main   #484   +/-   ##
=====================================
  Coverage        ?    97%           
=====================================
  Files           ?     99           
  Lines           ?   3400           
  Branches        ?      0           
=====================================
  Hits            ?   3295           
  Misses          ?    105           
  Partials        ?      0           

☔ 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.

@axunonb axunonb merged commit 2d6509d into main Jul 2, 2025
9 checks passed
@axunonb axunonb deleted the pr/loc-provider-fallback-culture branch July 2, 2025 11:59
@axunonb
Copy link
Member Author

axunonb commented Jul 2, 2025

Thanks for the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants