mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 17:45:22 +00:00
ble/alerts/translations: Copy edit.
This commit is contained in:
committed by
David Lechner
parent
dd7f13d33f
commit
97ea2b1ac7
@@ -4,7 +4,7 @@
|
||||
import './index.scss';
|
||||
import { AnchorButton, Button, Intent } from '@blueprintjs/core';
|
||||
import React from 'react';
|
||||
import { appName, pybricksBluetoothTroubleshootingUrl } from '../../app/constants';
|
||||
import { pybricksBluetoothTroubleshootingUrl } from '../../app/constants';
|
||||
import ExternalLinkIcon from '../../components/ExternalLinkIcon';
|
||||
import type { CreateToast } from '../../toasterTypes';
|
||||
import { useI18n } from './i18n';
|
||||
@@ -19,15 +19,7 @@ const NoHub: React.VoidFunctionComponent<NoHubProps> = ({ onFlashFirmware }) =>
|
||||
return (
|
||||
<>
|
||||
<p>{i18n.translate('noHub.message')}</p>
|
||||
<p>
|
||||
{i18n.translate('noHub.suggestion1', {
|
||||
appName,
|
||||
buttonName: (
|
||||
<strong>{i18n.translate('noHub.flashFirmwareButton')}</strong>
|
||||
),
|
||||
})}
|
||||
</p>
|
||||
<p>{i18n.translate('noHub.suggestion2')}</p>
|
||||
<p>{i18n.translate('noHub.suggestion')}</p>
|
||||
<div className="pb-ble-alerts-buttons">
|
||||
<Button icon="download" onClick={onFlashFirmware}>
|
||||
{i18n.translate('noHub.flashFirmwareButton')}
|
||||
|
||||
@@ -19,16 +19,15 @@
|
||||
"suggestion2": "If the problem persists, try removing the \"{hubName}\" device in your OS Bluetooth settings, then try connecting again."
|
||||
},
|
||||
"noHub": {
|
||||
"message": "Could not find your hub?",
|
||||
"suggestion1": "{appName} requires custom firmware to be flashed to your hub. If you have not done this already, click the {buttonName} button below to do so now.",
|
||||
"suggestion2": "If you have flashed the Pybricks firmware to the hub already and you are still having problems connecting, please visit the troubleshooting guide.",
|
||||
"flashFirmwareButton": "Flash Firmware",
|
||||
"troubleshootButton": "Troubleshooting Tips"
|
||||
"message": "No hub detected.",
|
||||
"suggestion": "Have you installed the Pybricks firmware yet?",
|
||||
"flashFirmwareButton": "Install Pybricks firmware",
|
||||
"troubleshootButton": "Solve connectivity issues"
|
||||
},
|
||||
"oldFirmware": {
|
||||
"message": "A new firmware version is available for this hub. Please install the latest version to use all new features.",
|
||||
"flashFirmware": {
|
||||
"label": "Flash firmware now"
|
||||
"label": "Update Pybricks firmware"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user