2022-12-07 14:05:11 +01:00
|
|
|
namespace zero.Localization;
|
|
|
|
|
|
2024-10-21 11:59:05 +02:00
|
|
|
public record Translation
|
2022-12-07 14:05:11 +01:00
|
|
|
{
|
2022-12-07 15:20:53 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Key of the translation
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Key { get; set; }
|
|
|
|
|
|
2022-12-07 14:05:11 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Value of the translation
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Value { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Display + input type
|
|
|
|
|
/// </summary>
|
|
|
|
|
public TranslationDisplay Display { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public enum TranslationDisplay
|
|
|
|
|
{
|
|
|
|
|
Text = 0,
|
2022-12-07 15:20:53 +01:00
|
|
|
Html = 1
|
2022-12-07 14:05:11 +01:00
|
|
|
}
|