btcpayserver/BTCPayServer/Models/ServerViewModels/EditDictionaryViewModel.cs
d11n a962e60de9
More Translations (#6318)
* Store selector

* Footer

* Notifications

* Checkout Appearance

* Users list

* Forms

* Emails

* Pay Button

* Edit Dictionary

* Remove newlines, fix typos

* Forms

* Pull payments and payouts

* Various pages

* Use local docs link

* Fix

* Even more translations

* Fixes #6325

* Account pages

* Notifications

* Placeholders

* Various pages and components

* Add more
2024-10-25 22:48:53 +09:00

19 lines
532 B
C#

using System.ComponentModel.DataAnnotations;
using BTCPayServer.Services;
namespace BTCPayServer.Models.ServerViewModels;
public class EditDictionaryViewModel
{
[Display(Name = "Translations")]
public string Translations { get; set; }
public int Lines { get; set; }
public string Command { get; set; }
internal EditDictionaryViewModel SetTranslations(Translations translations)
{
Translations = translations.ToJsonFormat();
Lines = translations.Records.Count;
return this;
}
}