Skip to content

v1.1.2: Strongly-typed RESX Keys & x:Static XAML Support

Choose a tag to compare

@StHung StHung released this 07 Jul 16:27

πŸš€ 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 to LocalizationBuilder. 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.cs generation: Properties now return nameof(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 the StringLocalizerExtension.

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