v1.1.2: Strongly-typed RESX Keys & x:Static XAML Support
π Barbatos.i18n v1.1.2 is a feature update that introduces strongly-typed RESX key patterns and improves XAML integration for a cleaner developer experience.
β¨ What's Changed
- Feature / Enhancements:
- Added the
FromResource<TResource>(CultureInfo, string name)overload toLocalizationBuilder. This allows RESX sets to be registered under a custom short name (e.g.,nameof(Locales.Strings)) instead of the default fully-qualified type name. - Updated
Strings.csgeneration: Properties now returnnameof(PropertyName)as the lookup key. This enables the use of{x:Static locales:Strings.Test}directly in XAML to pass the correct key string to theStringLocalizerExtension.
- Added the
π¦ 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.2