async i18n and json translation format (#369)

* start working on loading locales async and as json

* finish off langs and UI

* fix path

* fix tests
This commit is contained in:
Andrew Camilleri
2018-11-09 08:48:38 +01:00
committed by Nicolas Dorier
parent aa1ac3da50
commit f23e2a3ec4
25 changed files with 379 additions and 353 deletions

View File

@@ -270,7 +270,7 @@ namespace BTCPayServer.Controllers
ServerUrl = HttpContext.Request.GetAbsoluteRoot(),
OrderId = invoice.OrderId,
InvoiceId = invoice.Id,
DefaultLang = storeBlob.DefaultLang ?? "en-US",
DefaultLang = storeBlob.DefaultLang ?? "en",
HtmlTitle = storeBlob.HtmlTitle ?? "BTCPay Invoice",
CustomCSSLink = storeBlob.CustomCSS?.AbsoluteUri,
CustomLogoLink = storeBlob.CustomLogo?.AbsoluteUri,