diff --git a/src/messages/ui.en.json b/src/messages/ui.en.json index 41d52b092..6aa0fbe00 100644 --- a/src/messages/ui.en.json +++ b/src/messages/ui.en.json @@ -244,7 +244,7 @@ "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", "compatibility.platform.notSupported": "The tool is not supported on your current platform.", - "compatibility.platform.notSupported.joinDesktop": "Join us on desktop.", + "compatibility.platform.notSupported.joinDesktop": "Please use Google Chrome or Microsoft Edge on a computer.", "compatibility.webgl.notSupported": "WebGL not available. Enable WebGL to see 3D data view.", "loading": "loading", diff --git a/src/router/paths.ts b/src/router/paths.ts index d431a8412..89d2e93dd 100644 --- a/src/router/paths.ts +++ b/src/router/paths.ts @@ -6,6 +6,7 @@ import { writable, Writable, get, derived } from 'svelte/store'; import type { MessageFormatter } from '../i18n'; +import { appName } from '../script/environment'; export const Paths = { HOME: '/', PLAYGROUND: 'playground', @@ -31,7 +32,6 @@ export function navigate(path: PathType) { currentPathPrivate.set(path); } -const appName = 'micro:bit machine learning tool'; export const getTitle = (path: PathType, t: MessageFormatter) => { switch (path) { case '/': { diff --git a/src/script/environment.ts b/src/script/environment.ts index 9da7993a8..01981d9e0 100644 --- a/src/script/environment.ts +++ b/src/script/environment.ts @@ -4,6 +4,8 @@ * SPDX-License-Identifier: MIT */ +export const appName = 'micro:bit machine learning tool'; + // See CI & package.json scripts. export const version = import.meta.env.VITE_VERSION || 'local'; export type Stage = 'local' | 'review' | 'staging' | 'production'; diff --git a/src/views/IncompatiblePlatformView.svelte b/src/views/IncompatiblePlatformView.svelte index b9d362892..9148cb21d 100644 --- a/src/views/IncompatiblePlatformView.svelte +++ b/src/views/IncompatiblePlatformView.svelte @@ -6,11 +6,12 @@

- {'ML-Machine'} + {appName}

{$t('compatibility.platform.notSupported')}