localizegen

Generate strongly-typed C# localization classes from .resx files.

4|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/shinyorg/skills --skill localizegen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: localizegen
Source: https://github.com/shinyorg/skills/tree/main/skills/localizegen
Command: npx skills add https://github.com/shinyorg/skills --skill localizegen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of strongly-typed localization classes from .resx files, simplifying internationalization in .NET applications and improving developer experience with IntelliSense support.

Core Features & Use Cases

  • Strongly-typed access: Generate C# properties and methods for resource strings, eliminating magic strings and runtime errors.
  • Format string handling: Automatically creates methods for localized strings with parameters.
  • Use Case: Integrate localization into your .NET application by generating type-safe accessors for all your UI text, ensuring consistency and ease of use across different languages.

Quick Start

Use the localizegen skill to generate strongly-typed localization classes from your .resx files.

Frequently Asked Questions about localizegen

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

FAQPage Schema
How do I generate strongly-typed localization classes from .resx files in .NET?

Generate strongly-typed localization classes from .resx files using a .NET source generator to create C# properties and methods. This approach eliminates magic strings, prevents runtime errors, and provides IntelliSense support for resource strings.

What is the best way to handle format parameters in .NET internationalization resource strings?

Handling format parameters in .NET internationalization is done by generating C# methods from .resx resource strings. The source generator automatically creates methods with parameters for localized strings, ensuring type-safe formatting across different languages.

How does strongly-typed localization improve developer experience compared to magic strings?

Strongly-typed localization improves developer experience by replacing magic strings with generated C# properties and methods. This provides compile-time validation, prevents runtime errors from missing resources, and enables IntelliSense autocomplete when accessing UI text.

Can I use generated localization classes with Microsoft.Extensions.Localization?

Yes, generated localization classes integrate with Microsoft.Extensions.Localization for robust internationalization. The source generator creates type-safe accessors from .resx files that work directly within the .NET dependency injection and localization infrastructure.

Do I need a source generator to automate .resx file localization in .NET?

A .NET source generator automates .resx file localization by generating C# properties and methods at compile time. This removes manual resource lookup code, ensures compile-time safety for localized strings, and streamlines internationalization workflows.