Skip to content

# v1.1.3: Dynamic Supported Culture Detection

Choose a tag to compare

@StHung StHung released this 18 Jul 06:42

πŸš€ Barbatos.i18n v1.1.3 is a feature update that makes it easy to discover which cultures are available at runtime, so language-switcher UIs can be built without hardcoding the culture list.

✨ What's Changed

  • Feature / Enhancements:
    • Added GetSupportedCultures() to ILocalizationCultureManager. Returns the distinct CultureInfo set registered across your localization provider(s), so a ComboBox/Picker language switcher can bind directly to it instead of hardcoding the culture list.
    • Added GetOperatingSystemCultures() as a default interface method on ILocalizationCultureManager, used as the fallback for GetSupportedCultures() when no localization sets are registered yet. Returns every specific culture known to the OS/ICU globalization data via CultureInfo.GetCultures(CultureTypes.SpecificCultures), falling back further to CultureInfo.CurrentCulture if that data is unavailable (e.g. globalization-invariant mode on some mobile platforms). Since it ships as a default interface method, existing ILocalizationCultureManager implementations get this behavior for free β€” no code changes required, fully non-breaking.

πŸ“¦ 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.3 ​