Allow translations of BTCPay Server Backend by admins (#5662)

This commit is contained in:
Nicolas Dorier
2024-07-24 20:16:20 +09:00
committed by GitHub
parent acbc75d077
commit ca4abcb497
43 changed files with 1575 additions and 27 deletions

View File

@@ -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;
}
}