Skip to content

Localization: Extend AbstractLocalizationInterceptor to be less specific.#8306

Merged
ScarletKuro merged 1 commit intoMudBlazor:devfrom
ScarletKuro:localization
Mar 7, 2024
Merged

Localization: Extend AbstractLocalizationInterceptor to be less specific.#8306
ScarletKuro merged 1 commit intoMudBlazor:devfrom
ScarletKuro:localization

Conversation

@ScarletKuro
Copy link
Member

@ScarletKuro ScarletKuro commented Mar 7, 2024

Description

After merging this #7389 and going to sleep
I thought that I need to add additional constructor overload to AbstractLocalizationInterceptor otherwise it would be too specific - creating the ResourceManagerStringLocalizerFactory for our LanguageResource. But what if they need other resource or some additional options, then this abstraction should have been namaed differently and be specific to ResX, this overload makes things better.

How Has This Been Tested?

Existing unit tests should cover it.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library PR: needs review labels Mar 7, 2024
@codecov
Copy link

codecov bot commented Mar 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.61%. Comparing base (5c647aa) to head (6d8537a).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8306      +/-   ##
==========================================
- Coverage   88.65%   88.61%   -0.04%     
==========================================
  Files         407      407              
  Lines       12167    12169       +2     
  Branches     2430     2430              
==========================================
- Hits        10787    10784       -3     
- Misses        852      855       +3     
- Partials      528      530       +2     

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

@ScarletKuro ScarletKuro merged commit f89c963 into MudBlazor:dev Mar 7, 2024
@ScarletKuro ScarletKuro deleted the localization branch March 7, 2024 11:54
danielchalmers pushed a commit to danielchalmers/MudBlazor that referenced this pull request Mar 13, 2024
danielchalmers pushed a commit to danielchalmers/MudBlazor that referenced this pull request Mar 13, 2024
danielchalmers pushed a commit to danielchalmers/MudBlazor that referenced this pull request Mar 13, 2024
biegehydra pushed a commit to biegehydra/MudBlazor that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Adds a new feature or enhances existing functionality (not fixing a defect) in the main library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant