mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Allow translations of BTCPay Server Backend by admins (#5662)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using BTCPayServer.Services;
|
||||
|
||||
namespace BTCPayServer.Models.ServerViewModels;
|
||||
|
||||
public class EditDictionaryViewModel
|
||||
{
|
||||
public string Translations { get; set; }
|
||||
public int Lines { get; set; }
|
||||
|
||||
internal EditDictionaryViewModel SetTranslations(Translations translations)
|
||||
{
|
||||
Translations = translations.ToTextFormat();
|
||||
Lines = translations.Records.Count;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user