btcpayserver/BTCPayServer/wwwroot
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
..
bundles
cart PoS: Fix images in cart view (#2649) 2021-07-02 11:28:38 +09:00
checkout Bootstrap v5 migration (#2490) 2021-05-19 11:39:27 +09:00
crowdfund remove unused code in fireworks.js (#2673) 2021-07-07 13:25:34 +09:00
crowdfund-admin Richtext editor fixes (#2613) 2021-06-24 19:51:35 +09:00
fonts Self-host webfonts 2020-08-06 22:18:26 +02:00
img Add files via upload (#2615) 2021-06-24 23:13:06 +09:00
imlegacy Update BitCore branding (#2501) 2021-05-08 00:34:38 +09:00
js Richtext editor fixes (#2613) 2021-06-24 19:51:35 +09:00
light-pos App: Light PoS on top of the existing PoS (#1909) 2020-09-21 08:06:31 +02:00
locales update languages 2020-12-11 12:58:13 +09:00
main Improves create point of sale view (#2646) 2021-07-23 12:57:19 +02:00
modal Remove allowtransparency from checkout overlay 2021-01-28 10:34:34 +01:00
paybutton remove log 2021-05-05 12:19:35 +02:00
payment-request Toast messages in payment request (#2010) 2020-10-24 10:20:19 +02:00
payment-request-admin Richtext editor fixes (#2613) 2021-06-24 19:51:35 +09:00
pos-admin Richtext editor fixes (#2613) 2021-06-24 19:51:35 +09:00
shopify Restoring BtcPay keywords 2020-09-29 16:54:33 -05:00
swagger/v1 Auto-detect language on payment page (#2552) 2021-07-27 08:17:56 +02:00
tests Add JS Modal test (#1342) 2020-02-19 17:39:14 +09:00
vendor Richtext editor fixes (#2613) 2021-06-24 19:51:35 +09:00
favicon.ico
manifest.json