Skip to content

Commit

Permalink
fix: normalize default language capitalization
Browse files Browse the repository at this point in the history
Fixes: #123
  • Loading branch information
bdunderscore committed Jan 14, 2024
1 parent 72588ee commit 5fe8086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

### Fixed
- Normalize the representation of the "default language" locale (#124)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion Editor/UI/Localization/Localizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public sealed class Localizer
/// <param name="loader"></param>
public Localizer(string defaultLanguage, Func<List<(string, Func<string, string>)>> loader)
{
DefaultLanguage = defaultLanguage;
DefaultLanguage = CultureInfo.GetCultureInfo(defaultLanguage).Name;
LanguagePrefs.RegisterLanguage(defaultLanguage);

_localizationLoader = loader;
Expand Down

0 comments on commit 5fe8086

Please sign in to comment.