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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dyfort.Umbraco.DictionaryMetadataProvider" Version="17.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dyfort.Umbraco.DictionaryMetadataProvider" Version="17.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Dyfort.Umbraco.DictionaryMetadataProvider" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dyfort.Umbraco.DictionaryMetadataProvider --version 17.0.0
                    
#r "nuget: Dyfort.Umbraco.DictionaryMetadataProvider, 17.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dyfort.Umbraco.DictionaryMetadataProvider@17.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dyfort.Umbraco.DictionaryMetadataProvider&version=17.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Dyfort.Umbraco.DictionaryMetadataProvider&version=17.0.0
                    
Install as a Cake Tool

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

Nuget Downloads

    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.

  1. Specific Validation Key Pattern: [Model].[Property].[Attribute] Example: Contact.Email.Required or Contact.Email.Required

  2. Display Name Key Pattern: [Model].[Property] Example: Contact.Email (Used for the <label> text)

  3. 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

MIT

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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