Dyfort.Umbraco.DictionaryMetadataProvider
17.0.0
dotnet add package Dyfort.Umbraco.DictionaryMetadataProvider --version 17.0.0
NuGet\Install-Package Dyfort.Umbraco.DictionaryMetadataProvider -Version 17.0.0
<PackageReference Include="Dyfort.Umbraco.DictionaryMetadataProvider" Version="17.0.0" />
<PackageVersion Include="Dyfort.Umbraco.DictionaryMetadataProvider" Version="17.0.0" />
<PackageReference Include="Dyfort.Umbraco.DictionaryMetadataProvider" />
paket add Dyfort.Umbraco.DictionaryMetadataProvider --version 17.0.0
#r "nuget: Dyfort.Umbraco.DictionaryMetadataProvider, 17.0.0"
#:package Dyfort.Umbraco.DictionaryMetadataProvider@17.0.0
#addin nuget:?package=Dyfort.Umbraco.DictionaryMetadataProvider&version=17.0.0
#tool nuget:?package=Dyfort.Umbraco.DictionaryMetadataProvider&version=17.0.0
Dyfort.Umbraco.DictionaryMetadataProvider
Dyfort.Umbraco.DictionaryMetadataProvider is a powerful extension for Umbraco that bridges the gap between C# Data Annotations and the Umbraco Dictionary. It allows editors to manage form labels, placeholders, and validation error messages directly within the Umbraco CMS backoffice.
Versions
This package is designed to work with Umbraco 10+. View all available versions.
Installation
PM > Install-Package Dyfort.Umbraco.DictionaryMetadataProvider
Usage & Conventions
The provider automatically cleans up class names by removing Model and ViewModel suffixes before looking up dictionary keys. This keeps your Umbraco Dictionary organized and editor-friendly.
Specific Validation Key Pattern: [Model].[Property].[Attribute] Example: Contact.Email.Required or Contact.Email.Required
Display Name Key Pattern: [Model].[Property] Example: Contact.Email (Used for the <label> text)
Global Validation Formats If you provide a global key like RequiredFormat, it will be used for all [Required] validation errors across your entire site, unless a specific property key is found.
public class LoginModel
{
[Required]
public string Username { get; set; }
}
You can create these Dictionary entries:
Key: Login.Username | Value: "Username"
Key: RequiredFormat | Value: "{0} is a required field."
Result:
Display Name: The label/metadata for the field becomes "Username".
Validation Message: When the field is empty, the user sees: "Username is a required field."
Troubleshooting
- Key Not Found: If a dictionary key is missing, the provider gracefully falls back to the default DataAnnotation message or the property name.
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Umbraco.Cms.Api.Management (>= 17.0.0 && < 18.0.0)
- Umbraco.Cms.Web.Website (>= 17.0.0 && < 18.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 17.0.0 | 92 | 1/31/2026 |
| 13.0.0 | 102 | 1/10/2026 |
| 1.0.0-beta1 | 384 | 1/6/2024 |