dotnet-localization

Localize .NET applications using .resx files and IStringLocalizer patterns.

Updated Aug 16, 2025
One-click install
npx skills add https://github.com/dodyg/blue-nile-pds --skill dotnet-localization-dodyg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-localization
Source: https://github.com/dodyg/blue-nile-pds/tree/main/.agents/skills/dotnet-localization
Command: npx skills add https://github.com/dodyg/blue-nile-pds --skill dotnet-localization-dodyg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers need to provide multilingual support for .NET applications, but managing .resx files, satellite assemblies, culture fallback, pluralization, RTL layouts, and modern alternatives can be complex and error‑prone.

Core Features & Use Cases

  • Manage .resx resource files and satellite assemblies with proper culture fallback.
  • Use IStringLocalizer patterns and DI registration for runtime localization.
  • Apply JSON‑based resources and source generators for AOT‑compatible projects.
  • Format dates, numbers, and currencies according to CultureInfo.
  • Enable right‑to‑left layout support across Blazor, MAUI, Uno Platform, and WPF.
  • Implement CLDR‑compliant pluralization using MessageFormat.NET or SmartFormat.NET.
  • Integrate localization into Blazor, MAUI, Uno Platform, and WPF applications.

Quick Start

Use the dotnet-localization skill to add localization to a new .NET project with default resources.

Frequently Asked Questions about dotnet-localization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add localization to a .NET MAUI or Blazor application?

You can localize .NET apps using JSON-based resources and source generators. This approach provides AOT-compatible resource access, avoiding reflection overhead and ensuring ahead-of-time compilation safety for modern .NET projects.

Does .NET localization support right-to-left layout and pluralization?

Yes, .NET localization supports RTL layout across Blazor, MAUI, Uno Platform, and WPF. It also implements CLDR-compliant pluralization using MessageFormat.NET or SmartFormat.NET.

What is the best way to manage culture fallback for .resx files in .NET?

The best way to manage culture fallback for .resx files is using satellite assemblies with Microsoft.Extensions.Localization. This handles missing culture resources by automatically falling back to the default culture.

Do I need .NET 8.0 to use IStringLocalizer for runtime culture support?

Yes, .NET 8.0 or later is required for this localization setup. It integrates with Microsoft.Extensions.Localization and optionally uses source generator packages for AOT-safe resource access.

How do I format dates and numbers according to CultureInfo in localized .NET apps?

You format dates, numbers, and currencies according to CultureInfo using built-in .NET globalization APIs. This runs alongside IStringLocalizer to ensure correct region-specific data formatting.