btcpayserver/BTCPayServer/Views
Wouter Samaey d8c1c51a21
Auto-detect language on payment page (#2552)
* 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>
2021-07-27 08:17:56 +02:00
..
Account 2FA: Fix login partial name 2021-06-30 13:11:27 +02:00
Apps Improves create point of sale view (#2646) 2021-07-23 12:57:19 +02:00
AppsPublic PoS: Fix images in cart view (#2649) 2021-07-02 11:28:38 +09:00
CoinSwitch New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
Error New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
EthereumLikeStore New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
Fido2 Bootstrap v5 migration (#2490) 2021-05-19 11:39:27 +09:00
Home New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
Invoice Auto-detect language on payment page (#2552) 2021-07-27 08:17:56 +02:00
Manage New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
MoneroLikeStore Bootstrap migration fixups (#2534) 2021-06-06 20:44:54 +09:00
Notifications New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
PaymentRequest New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
Public remove paybuttontest 2018-09-08 14:53:41 +09:00
PublicLightningNodeInfo Bootstrap v5 migration (#2490) 2021-05-19 11:39:27 +09:00
PullPayment New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
Server Updated status message when adding files and related test 2021-07-22 08:49:21 +02:00
Shared fix sync modal styling 2021-07-26 16:44:41 +02:00
Shopify New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
Stores Auto-detect language on payment page (#2552) 2021-07-27 08:17:56 +02:00
UserStores New unit test to scan for external links/forms and if they have rel="noreferrer noopener" (#2668) 2021-07-06 10:35:42 +02:00
Wallets Payouts: Detect External OnChain Payouts (#2462) 2021-07-16 09:57:37 +02:00
_ViewStart.cshtml Init 2017-09-13 15:55:16 +09:00
ViewsRazor.cs Improve and unify page headers (#2412) 2021-04-08 22:32:42 +09:00