v1.1.1: Culture Synchronization Fixes & Format Enhancements
🚀 Barbatos.i18n v1.1.1 is a patch release focusing on fixing critical culture synchronization bugs and cleaning up the internal API.
🛠️ What's Changed
- Refactor: Redesign Culture Synchronization
- Removed the redundant
UseFormatCultureproperty fromLocalizationOptions. The library now relies entirely onFormatCultureBuilderto determine if a separate formatting culture is needed, making the API much cleaner. - Fixed an order-of-execution bug in
LocalizationCultureManager.SetCultureto ensure system cultures (CurrentCultureandCurrentUICulture) are correctly established before notifying localized providers.
- Removed the redundant
- Bug Fixes:
- Fixed an issue in the MAUI sample where
CultureInfo.CurrentCulturewas not updating alongsideCurrentUICulture, causing numbers and dates to remain in the fallback English format. AddedGetCultureManager()toMauiLocalizationas a Service Locator bridge to properly route culture updates. - Updated
StringLocalizerConverterandPluralStringLocalizerConverterunit tests to accurately test and assert based on the system'sCurrentCulture.
- Fixed an issue in the MAUI sample where
- Chore / Maintenance:
- Enforced standard
LFline endings andUTF-8(without BOM) encoding across all files in thesamplesandtestsdirectories for a perfectly clean codebase.
- Enforced standard
📦 Updating via NuGet
You can update your projects to use this latest version via the NuGet Package Manager:
dotnet add package Barbatos.i18n --version 1.1.1