From 06e3185ee5765133e2e3461c691f1ba101bb21c6 Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Wed, 18 Oct 2023 19:47:24 -0700 Subject: [PATCH] Fallback to English tutorial. --- src/components/app/Header.svelte | 1 + src/components/app/TutorialView.svelte | 7 ++++++- src/components/settings/LocaleChooser.svelte | 2 +- src/concepts/NodeConcept.ts | 18 ++++++++++++------ src/db/LocalesDatabase.ts | 12 +++++++----- src/locale/Locales.ts | 9 ++++++++- src/routes/learn/+page.svelte | 6 ++++++ 7 files changed, 41 insertions(+), 14 deletions(-) diff --git a/src/components/app/Header.svelte b/src/components/app/Header.svelte index 13ce15dc2..b61806f3c 100644 --- a/src/components/app/Header.svelte +++ b/src/components/app/Header.svelte @@ -14,6 +14,7 @@ font-weight: bold; text-align: start; transform: rotate(-1deg); + white-space: nowrap; } .block { diff --git a/src/components/app/TutorialView.svelte b/src/components/app/TutorialView.svelte index 1235912a7..8229e6135 100644 --- a/src/components/app/TutorialView.svelte +++ b/src/components/app/TutorialView.svelte @@ -37,6 +37,7 @@ export let progress: Progress; export let navigate: (progress: Progress) => void; + export let fallback: boolean; // Get the concept index and path from the project view and put it in // a store, and the store in a context so that ContextViewUI can access the index. @@ -222,7 +223,11 @@ on:pointerdown|stopPropagation|preventDefault={() => nextButton?.focus()} >
-
Learn
+
{#if fallback}🚧{/if}{$locales.get( + (l) => l.ui.page.learn.header + )}