mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 06:47:50 +01:00
* 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
19 lines
532 B
C#
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;
|
|
}
|
|
}
|