I18n через jsonb-поля

This commit is contained in:
2025-04-24 15:53:05 +04:00
parent 35b571eb57
commit 31ad99ade5
33 changed files with 409 additions and 264 deletions
+10
View File
@@ -0,0 +1,10 @@
namespace Pf2eModel.Model.Common.I18n;
public class LocaleItem(LocaleType type, string value)
{
public LocaleType Locale { get; set; } = type;
public string Value { get; set; } = value;
public LocaleItem(KeyValuePair<string, string> item) : this(LocaleExtension.GetTypeByString(item.Key), item.Value) { }
}