Skip to content

Commit 7bfeb18

Browse files
Tweak the non-desktop platforms text (#198)
1 parent 8a9242e commit 7bfeb18

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/messages/ui.en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"connectMB.transferHex.altText": "animation of dragging a hex file from the downloads folder onto the micro:bit drive or device listed in the file explorer",
245245

246246
"compatibility.platform.notSupported": "The tool is not supported on your current platform.",
247-
"compatibility.platform.notSupported.joinDesktop": "Join us on desktop.",
247+
"compatibility.platform.notSupported.joinDesktop": "Please use Google Chrome or Microsoft Edge on a computer.",
248248
"compatibility.webgl.notSupported": "WebGL not available. Enable WebGL to see 3D data view.",
249249

250250
"loading": "loading",

src/router/paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import { writable, Writable, get, derived } from 'svelte/store';
88
import type { MessageFormatter } from '../i18n';
9+
import { appName } from '../script/environment';
910
export const Paths = {
1011
HOME: '/',
1112
PLAYGROUND: 'playground',
@@ -31,7 +32,6 @@ export function navigate(path: PathType) {
3132
currentPathPrivate.set(path);
3233
}
3334

34-
const appName = 'micro:bit machine learning tool';
3535
export const getTitle = (path: PathType, t: MessageFormatter) => {
3636
switch (path) {
3737
case '/': {

src/script/environment.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: MIT
55
*/
66

7+
export const appName = 'micro:bit machine learning tool';
8+
79
// See CI & package.json scripts.
810
export const version = import.meta.env.VITE_VERSION || 'local';
911
export type Stage = 'local' | 'review' | 'staging' | 'production';

src/views/IncompatiblePlatformView.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66

77
<script>
88
import { t } from '../i18n';
9+
import { appName } from '../script/environment';
910
</script>
1011

1112
<div class="h-screen w-screen bg-secondary flex flex-col justify-center items-center">
1213
<p class="mb-4 text-secondarytext font-extrabold text-5xl">
13-
{'ML-Machine'}
14+
{appName}
1415
</p>
1516
<p class="text-primarytext text-center mb-2">
1617
{$t('compatibility.platform.notSupported')}

0 commit comments

Comments
 (0)