Skip to content

Commit

Permalink
Fix culture
Browse files Browse the repository at this point in the history
  • Loading branch information
pomianowski committed May 31, 2024
1 parent b00fcc6 commit ade84b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public void AddStringLocalizer_ShouldAddLocalizations_ToServiceCollection()
ILocalizationCultureManager manager =
serviceProvider.GetRequiredService<ILocalizationCultureManager>();

_ = manager.SetCulture("pl-PL");

_ = localizer["Test"].Value.Should().Be("Test po polsku");

_ = manager.SetCulture("en-US");
Expand Down
1 change: 1 addition & 0 deletions tests/Lepo.i18n.UnitTests/Resources/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@

namespace Lepo.i18n.UnitTests.Resources;

// ReSharper disable once ClassNeverInstantiated.Global
public partial class Test;

0 comments on commit ade84b3

Please sign in to comment.