Manages database-backed translations in Orchard Core using the OrchardCore.DataLocalization module. Covers the Dynamic Translations editor, translation statistics, permissions, built-in and custom localization data providers, recipe/deployment steps, IDataLocalizer, TranslationsManager, and the Liquid d filter.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OrchardCore.DataLocalization (depends on OrchardCore.Localization)
for database-backed translations of dynamic strings such as content type and
field display names, admin menu text, and permission categories.OrchardCore.Localization, see orchardcore-localization) for
static UI strings in views and code, including permission descriptions
declared with LocalizationSource.Create(value, typeof(DeclaringType)).OrchardCore.ContentLocalization for translating content items.ILocalizationDataProvider to expose custom translatable strings.IDataLocalizer (aliased as D) in Razor and the d filter in Liquid.{ "steps": [...] }.sealed modifier, except View Models.{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.DataLocalization"
]
}
]
}
Settings → Localization → Dynamic Translations opens the translation editor: pick a culture, search, filter by category, and edit each string; auto-save (on by default) saves after 2 seconds of inactivity. The Statistics page shows overall, per-culture, and per-category progress (green ≥75%, yellow 25–74%, red <25%).
OrchardCore.Localization.Data.DataLocalizationPermissions declares:
| Permission | Description |
|---|---|
ViewDynamicTranslations | View translations and statistics (read-only). Implied by ManageTranslations. |
ManageTranslations | Edit translations for all cultures. |
ManageTranslations_{culture} | Edit one culture, e.g. ManageTranslations_fr-FR ("Manage French (France) translations"), generated for each supported culture with CreateCulturePermission(). Implied by ManageTranslations. |
ManageLocalization | Legacy, kept for compatibility; implied by ManageTranslations. |
Defaults: Administrator gets ManageTranslations, Editor gets
ViewDynamicTranslations. The admin menu entry and the strings API require
ViewDynamicTranslations, so grant it together with a culture permission to a
role that should edit only one culture (under Data Localization in the role
editor).
| Provider | Context | Strings Provided |
|---|---|---|
Content types (OrchardCore.Contents) | Content Types | Content type display names |
Content fields (OrchardCore.Contents) | Content Fields:{PartName} | Content field display names, grouped by part |
Permissions (OrchardCore.Roles) | Permissions or Permissions:{Group} | Permission categories, and descriptions that are not templates and have no PO context |
Admin menus (OrchardCore.AdminMenu) | Admin Menus or Admin Menus:{MenuName} | Admin menu and admin node text |
Search (OrchardCore.Search) | Search | Search-related text such as the placeholder |
Built-in permission descriptions now carry a PO context, so they are translated
with PO files and are not listed here. Descriptions of permissions created by a
PermissionTemplate (such as "Edit Article" from the content type templates, or
"Manage French (France) translations") are formatted into context-free text by
CreateDynamicPermission(...), so they still are. Values that still contain
{0} are skipped.
using OrchardCore.Localization.Data;
public sealed class MenuItemLocalizationDataProvider : ILocalizationDataProvider
{
public Task<IEnumerable<DataLocalizedString>> GetDescriptorsAsync()
{
var strings = new List<DataLocalizedString>
{
new("Menu Items", "Dashboard", string.Empty),
new("Menu Items", "User Settings", string.Empty),
new("Menu Items", "Reports", string.Empty),
};
return Task.FromResult<IEnumerable<DataLocalizedString>>(strings);
}
}
using OrchardCore.Localization.Data;
public sealed class Startup : StartupBase
{
public override void ConfigureServices(IServiceCollection services)
{
services.AddScoped<ILocalizationDataProvider, MenuItemLocalizationDataProvider>();
}
}
The DataLocalizedString(context, name, value) constructor takes the context
(category), the key, and the value (empty for descriptors). Use the context
to disambiguate keys; Group:SubGroup contexts are shown as sub-groups.
| Key Type | Example Key | Displayed if Untranslated | Result |
|---|---|---|---|
| Display value | "Welcome Message" | Welcome Message | Good |
| Technical ID | "welcome_msg_001" | welcome_msg_001 | Bad |
| Code constant | "CONTENT_TYPE_ARTICLE" | CONTENT_TYPE_ARTICLE | Bad |
The Translations step takes a flat translations array; entries are merged
into the existing translations of each culture by context and key.
{
"steps": [
{
"name": "Translations",
"translations": [
{ "culture": "fr-FR", "context": "Menu Items", "key": "Dashboard", "value": "Tableau de bord" },
{ "culture": "fr-FR", "context": "Content Types", "key": "Article", "value": "Article" },
{ "culture": "es-ES", "context": "Content Types", "key": "Article", "value": "Artículo" }
]
}
]
}
The same step also accepts the legacy DynamicDataTranslations step name.
Translations format above, with all or
selected cultures (IncludeAll, Cultures) and optional Categories.DynamicDataTranslations step.@using OrchardCore.Localization.Data
@inject IDataLocalizer D
<h1>@D["Article", "Content Types"]</h1>
<p>@D["Hello {0}", "My Context", userName]</p>
DataLocalizedString converts implicitly to string, and Razor HTML-encodes
it. Translated values should contain plain text only. ResourceNotFound tells
whether a translation exists. When a breadcrumb or other API needs
IHtmlContent, wrap .Value ?? string.Empty in an HtmlContentString rather
than using Html.Raw.
| Feature | IStringLocalizer (T) | IDataLocalizer (D) |
|---|---|---|
| Source | PO files (static) | Database (dynamic) |
| HTML encoding | Auto-encoded by Razor | Auto-encoded by Razor |
| Pluralization | Supported | Not supported |
| Arguments | T["Hello {0}", name] | D["Hello {0}", "Context", name] |
| Use case | Static UI strings | Dynamic data (content types, menus, categories) |
dThe d filter is documented under Data Localization Filters in the Liquid
reference:
{{ "Blog" | d: "Content Types" }}
It returns the translation for the current culture, for example مدونة for
ar. For missing translations or unsupported cultures it returns
Blog.Content Types.
Inject the scoped TranslationsManager (OrchardCore.DataLocalization.Services;
the ITranslationsManager interface is not registered). UpdateTranslationAsync(culture, translations)
replaces the translations of a culture, RemoveTranslationAsync(culture)
removes them, and GetTranslationsDocumentAsync() returns the cached
TranslationsDocument. The localization cache is refreshed when the document
changes.
| Use Case | Recommended Approach |
|---|---|
| Static UI strings and declared permission descriptions | PO files (OrchardCore.Localization) |
| Content type/field display names | Data Localization |
| Permission categories and template-based descriptions | Data Localization |
| Admin menu items | Data Localization |
| User-defined content | Content Localization (OrchardCore.ContentLocalization) |
| Database-stored dynamic strings | Data Localization with a custom provider |
OrchardCore.Email.EmailPermissions).IDataResourceStringProvider was removed; implement ILocalizationDataProvider.d filter's arguments now use the Fluid 3 ToStringValue(context)/StringValue.Create(...) APIs internally; custom filters must do the same (see orchardcore-liquid).d is now
"Data Localization Filters".What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-data-localizationfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard./orchardcore-admin-edit-viewsSkill for writing Orchard Core admin editor views with the ocat CSS classes and cards. Covers Edit views for content parts and fields, field editor variants, part, field and site settings editors, Fields.Edit views, admin pages rendering Model.Editor built with IDisplayManager, the ocat classes and their layout rules, label associations and group captions, part and field wrapper classes, validation, hints and the Hint_Admin shape, cards declared in placement and the Card and CardContainer shapes, split editor shapes, tabs and columns, the edit page action bar, the horizontal form layout, and the UI text casing standard. Use this skill when requests mention Orchard Core admin edit views, admin forms, grouping fields in cards, Edit.cshtml, Fields.Edit.cshtml, Settings.Edit.cshtml, ocat classes, label casing, or field hints. Strong matches include ocat-wrapper, ocat-card, Hint_Admin, PlacementLocationBuilder, IDisplayManager, ContentPartDisplayDriver, SiteDisplayDriver./orchardcore-admin-listsSkill for Orchard Core 4.0 admin index views (list pages) rendered with the AdminList shape. Covers the List and Grid layouts, AdminListContext of TModel, the admin-list and admin-list-column tag helpers, column width and alignment, row display drivers placing shapes for SummaryAdmin and SummaryAdminGrid, row templates and zones, AdminListActions Buttons and Menu layouts, AdminListToolbar, AdminListSearch, the list-management script for select-all and bulk actions, IAdminListColumnsProvider, AdminListOptions, user layout selection, per-list alternates, sortable lists, and upgrading overridden list views. Use this skill when requests mention Orchard Core admin index views, an admin index page, admin lists, converting a hand-written admin listing, grid layout, list columns, row actions menu, or adding a column to the content items list. Strong matches include OrchardCore.Admin.Abstractions, AdminListContext, AdminListColumn, IAdminListColumnsProvider, AdminListOptions, AdminListLayout, ContentsAdminList./orchardcore-admin-menuSkill for creating admin menus in Orchard Core. Covers admin menu content, the link, placeholder, content types, and lists admin node types, the AdminMenu recipe and deployment step, ManageAdminMenu, ViewAdminMenuAll and per-menu ViewAdminMenu permissions from AdminMenuPermissions, custom admin nodes with AdminNode, IAdminNodeNavigationBuilder and AddAdminNode, data localization of node text, rendering in the 4.0 TheAdmin menu, and upgrading from the removed legacy admin menu layout. Use this skill when requests mention Orchard Core Admin Menu, Create and Manage Admin Menus, Admin Menu Deployment Recipe Step, Built-In Admin Node Types, Custom Admin Node Class, LegacyAdminMenuNavigation, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminMenu, OrchardCore.AdminMenu.Abstractions, AdminMenuPermissions, LinkAdminNode, PlaceholderAdminNode, OrchardCore.Lists, OrchardCore.Navigation./orchardcore-admin-schemesSkill for the Orchard Core 4.0 TheAdmin redesign and its admin schemes. Covers scheme records with their four colors, typography, density, corners, horizontal form layout and content width, Design > Themes > Schemes, the default scheme, the per-user scheme picker and its cookie, the seven built-in schemes, the AdminSchemes recipe step and Admin Schemes deployment step, the schemes.css stylesheet, the --ta-* design tokens, ta-content-fluid, dark mode utilities and nested color modes, TheOldAdmin and how to switch to it, and the breaking changes for custom admin themes and Layout overrides. Use this skill when requests mention admin schemes, admin colors, rebranding TheAdmin, dark mode of the admin, the admin content width, the horizontal form layout, TheOldAdmin, or upgrading a custom admin theme to the new TheAdmin. Strong matches include AdminScheme, AdminSchemes, DefaultSchemeId, HorizontalFormLayout, ContentWidth, data-ta-scheme, --ta-primary, ta-content-fluid, TheOldAdmin, and OrchardCore.Themes.TheAdmin.Other plugins' skills for the same job