btcpayserver/BTCPayServer/Models/StoreViewModels
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
..
CheckoutExperienceViewModel.cs Auto-detect language on payment page (#2552) 2021-07-27 08:17:56 +02:00
CreateStoreViewModel.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
DerivationSchemeViewModel.cs Remove the DerivationSchemeViewmodel.Enabled property 2021-06-17 15:08:04 +09:00
EditWebhookViewModel.cs Add Greenfield API 2020-11-13 14:15:03 +09:00
IntegrationsViewModel.cs Abstract Store integrations (#2384) 2021-04-08 13:37:05 +09:00
LightningNodeViewModel.cs Lightning setup redesign 2021-04-20 12:09:27 +02:00
PairingModel.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
PayButtonViewModel.cs Fix Pay Button steps and range validation 2021-05-05 11:27:02 +02:00
RatesViewModel.cs Removing rates hint 2020-10-18 03:11:17 -05:00
RecoverySeedBackupViewModel.cs Split mnemonics correctly 2020-09-03 23:59:54 +09:00
StoresViewModel.cs Showing warning hint on stores listing page 2020-10-18 03:11:17 -05:00
StoreUsersViewModel.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
StoreViewModel.cs Add payjoin option to hot wallet setup (#2450) 2021-06-18 10:25:17 +09:00
TestWebhookViewModel.cs Add ability to send test webhook call 2021-06-03 21:16:24 -07:00
TokensViewModel.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
WalletSetupRequest.cs Add payjoin option to hot wallet setup (#2450) 2021-06-18 10:25:17 +09:00
WalletSetupViewModel.cs Add payjoin option to hot wallet setup (#2450) 2021-06-18 10:25:17 +09:00
WebhooksViewModel.cs Add webhook delivery status indicator (#2679) 2021-07-12 21:58:11 +09:00