mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
d8c1c51a21
* Auto-detect language on payment page based on the requst Accept-Language header, which is the language you configured in your browser/OS and this 99.99% accurate * Update BTCPayServer/Services/LanguageService.cs Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> * Update BTCPayServer/Services/LanguageService.cs Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer/Services/LanguageService.cs Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Update BTCPayServer/Services/LanguageService.cs Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> * Added loop for all locales in Accept-Language sorted by weight + check if know this language * New public method so a unit test can be created for it * Unit test for language detection * Fix language service when not in browser context * fall back to default lang * Auto-detect setting + ?lang=auto support * Added invoice param "?lang=auto" info to docs * Using null-coalescing assignment operator * Reduce complexity and http dependency in language service Co-authored-by: britttttk <39231115+britttttk@users.noreply.github.com> Co-authored-by: Andrew Camilleri <evilkukka@gmail.com> |
||
---|---|---|
.. | ||
GreenField | ||
AccessTokenController.cs | ||
AccountController.cs | ||
AppsController.Crowdfund.cs | ||
AppsController.cs | ||
AppsController.PointOfSale.cs | ||
AppsPublicController.cs | ||
ErrorController.cs | ||
HomeController.cs | ||
InvoiceController.API.cs | ||
InvoiceController.cs | ||
InvoiceController.UI.cs | ||
Macaroons.cs | ||
ManageController.2FA.cs | ||
ManageController.APIKeys.cs | ||
ManageController.cs | ||
ManageController.Notifications.cs | ||
NotificationsController.cs | ||
PaymentRequestController.cs | ||
PublicController.cs | ||
PublicLightningNodeInfoController.cs | ||
PullPaymentController.cs | ||
RateController.cs | ||
ServerController.cs | ||
ServerController.Plugins.cs | ||
ServerController.Storage.cs | ||
ServerController.Users.cs | ||
StorageController.cs | ||
StoresController.cs | ||
StoresController.Email.cs | ||
StoresController.Integrations.cs | ||
StoresController.LightningLike.cs | ||
StoresController.Onchain.cs | ||
UserStoresController.cs | ||
VaultController.cs | ||
WalletsController.cs | ||
WalletsController.PSBT.cs | ||
WalletsController.PullPayments.cs |