2024-10-25 15:48:53 +02:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2024-07-24 20:16:20 +09:00
|
|
|
using BTCPayServer.Services;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.ServerViewModels;
|
|
|
|
|
|
|
|
public class EditDictionaryViewModel
|
|
|
|
{
|
2024-10-25 15:48:53 +02:00
|
|
|
[Display(Name = "Translations")]
|
2024-07-24 20:16:20 +09:00
|
|
|
public string Translations { get; set; }
|
|
|
|
public int Lines { get; set; }
|
2024-07-25 22:46:02 +09:00
|
|
|
public string Command { get; set; }
|
2024-07-24 20:16:20 +09:00
|
|
|
|
|
|
|
internal EditDictionaryViewModel SetTranslations(Translations translations)
|
|
|
|
{
|
2024-09-09 11:25:36 +09:00
|
|
|
Translations = translations.ToJsonFormat();
|
2024-07-24 20:16:20 +09:00
|
|
|
Lines = translations.Records.Count;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|