feat(strings): implement CharacterMappingLoader for JSON-based character mappings

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-12 23:52:41 +00:00
parent e7ac544a2f
commit ca05d69be2
3 changed files with 264 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
namespace Umbraco.Cms.Core.Strings;
/// <summary>
/// Represents a character mapping JSON file.
/// </summary>
internal sealed class CharacterMappingFile
{
/// <summary>
/// Name of the mapping set.
/// </summary>
public required string Name { get; init; }
/// <summary>
/// Optional description.
/// </summary>
public string? Description { get; init; }
/// <summary>
/// Priority for override ordering. Higher values override lower.
/// </summary>
public int Priority { get; init; }
/// <summary>
/// Character to string mappings.
/// </summary>
public required Dictionary<string, string> Mappings { get; init; }
}