Skip to content

v1.1.1: Culture Synchronization Fixes & Format Enhancements

Choose a tag to compare

@StHung StHung released this 14 Jun 11:23
90df89b

🚀 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 UseFormatCulture property from LocalizationOptions. The library now relies entirely on FormatCultureBuilder to determine if a separate formatting culture is needed, making the API much cleaner.
    • Fixed an order-of-execution bug in LocalizationCultureManager.SetCulture to ensure system cultures (CurrentCulture and CurrentUICulture) are correctly established before notifying localized providers.
  • Bug Fixes:
    • Fixed an issue in the MAUI sample where CultureInfo.CurrentCulture was not updating alongside CurrentUICulture, causing numbers and dates to remain in the fallback English format. Added GetCultureManager() to MauiLocalization as a Service Locator bridge to properly route culture updates.
    • Updated StringLocalizerConverter and PluralStringLocalizerConverter unit tests to accurately test and assert based on the system's CurrentCulture.
  • Chore / Maintenance:
    • Enforced standard LF line endings and UTF-8 (without BOM) encoding across all files in the samples and tests directories for a perfectly clean codebase.

📦 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