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 63
63
64
64
export let options: Options | undefined = undefined ;
65
65
66
- const adaptedOptions = {
66
+ $ : adaptedOptions = {
67
67
... options ,
68
68
values: Object .fromEntries (
69
69
Object .entries (options ?.values ?? {}).map (([k , v ]) => {
Original file line number Diff line number Diff line change 36
36
import { locale as currentLocale } from ' svelte-i18n' ;
37
37
import { get } from ' svelte/store' ;
38
38
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
+ };
41
43
42
44
$ : hasExistingSession = $gestures .some (g => g .name || g .recordings .length );
43
45
let showDataLossWarning = false ;
69
71
};
70
72
71
73
$ : title = getTitle (Paths .HOME , $t );
74
+ $ : playgroundSurveyUrl =
75
+ ($currentLocale ? playgroundSurveyUrlByLang [$currentLocale ] : undefined ) ??
76
+ playgroundSurveyUrlByLang .en ;
72
77
</script >
73
78
74
79
<svelte:head >
You can’t perform that action at this time.
0 commit comments