ble/alerts/BluetoothNotAvailable: add browser support paragraph

Browsers such as Brave and Opera are based on Chromium but disable
Web Bluetooth. In this case, we can't tell the difference between the
browser not supporting it or the Bluetooth adapter not being present.
So we make the error message cover all possibilities.

Issue: https://github.com/pybricks/support/discussions/804
Issue: https://github.com/pybricks/support/issues/635
This commit is contained in:
David Lechner
2022-11-18 19:28:00 -06:00
committed by David Lechner
parent bdf9f3c850
commit 597419be47
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -12,6 +12,7 @@ const BluetoothNotAvailable: React.VoidFunctionComponent = () => {
<>
<p>{i18n.translate('bluetoothNotAvailable.message')}</p>
<p>{i18n.translate('bluetoothNotAvailable.suggestion')}</p>
<p>{i18n.translate('bluetoothNotAvailable.browserSupport')}</p>
</>
);
};
+2 -1
View File
@@ -7,7 +7,8 @@
},
"bluetoothNotAvailable": {
"message": "No Bluetooth adapter could be found.",
"suggestion": "Please connect or enable a Bluetooth Low Energy adapter and restart the browser."
"suggestion": "Please connect or enable a Bluetooth Low Energy adapter and restart the browser.",
"browserSupport": "Some browsers like Brave and Opera do not support Web Bluetooth. Be sure to use a supported browser such as Chrome or Edge."
},
"noGatt": {
"message": "The web browser did not give permission to use Bluetooth Low Energy."