localize-applications
Installation
SKILL.md
Localize ABP Applications
ABP's localization builds on Microsoft.Extensions.Localization and is used across every layer — validation messages, exception messages, application services, and any C#/Razor code — not just the UI. This skill covers the framework mechanism; sibling skills own the UI-specific wiring.
When to Use
- Defining a
LocalizationResourcemarker class and registering it withAbpLocalizationOptions. - Storing translations in per-culture embedded json files loaded via
AddVirtualJson. - Reusing shared keys through inheritance (
AddBaseTypes/[InheritResource]). - Consuming strings with
IStringLocalizer<TResource>or theLproperty on ABP base classes. - Localizing
BusinessExceptionerror codes and data-annotation validation messages.
When Not to Use
- Navigation menu items — use menus-and-localization (this skill is the resource/json backend it points to).
- Client-side UI pipes — Angular
abpLocalizationpipe or Blazor localization → angular-ui / blazor-ui. - Text template definitions (emails, etc.) → render-text-templates.