File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 6363
6464 export let options: Options | undefined = undefined ;
6565
66- const adaptedOptions = {
66+ $ : adaptedOptions = {
6767 ... options ,
6868 values: Object .fromEntries (
6969 Object .entries (options ?.values ?? {}).map (([k , v ]) => {
Original file line number Diff line number Diff line change 3636 import { locale as currentLocale } from ' svelte-i18n' ;
3737 import { get } from ' svelte/store' ;
3838
39- const playgroundSurveyUrl =
40- ' https://microbit.org/teach/playground-survey/exploring-machine-learning/' ;
39+ const playgroundSurveyUrlByLang: Record <string , string > = {
40+ en: ' https://microbit.org/teach/playground-survey/exploring-machine-learning/' ,
41+ cy: ' https://microbit.org/cy/teach/playground-survey/exploring-machine-learning/' ,
42+ };
4143
4244 $ : hasExistingSession = $gestures .some (g => g .name || g .recordings .length );
4345 let showDataLossWarning = false ;
6971 };
7072
7173 $ : title = getTitle (Paths .HOME , $t );
74+ $ : playgroundSurveyUrl =
75+ ($currentLocale ? playgroundSurveyUrlByLang [$currentLocale ] : undefined ) ??
76+ playgroundSurveyUrlByLang .en ;
7277 </script >
7378
7479<svelte:head >
You can’t perform that action at this time.
0 commit comments