Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/app/AddProject.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'',
new Source(
$locales.get((l) => l.term.start),
'',
$locales.get((l) => l.ui.project.defaults.starterCode),
),
[],
$locales.getLocales(),
Expand Down
6 changes: 5 additions & 1 deletion src/locale/UITexts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ type UITexts = {
};
};
/** Project settings and controls */
project: {
project: {
defaults: {
/** The default template shown when opening a new project */
starterCode: string;
};
/** The error shown when a project ID is unknown. */
error: {
unknown: string;
Expand Down
3 changes: 3 additions & 0 deletions src/locale/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -4249,6 +4249,9 @@
}
},
"project": {
"defaults": {
"starterCode": "¶Welcome to your blank project! This is a comment.\nYou can use it to describe your project, take notes, and\nexplain what you want people to know about your work.\nIt supports *bold*, /italic/, <links@https://wordplay.dev> and more.¶\nPhrase('hi')"
},
"error": {
"unknown": "This project doesn't exist or you don't have access to it.",
"translate": "There was a problem translating your project.",
Expand Down
14 changes: 14 additions & 0 deletions static/schemas/LocaleText.json
Original file line number Diff line number Diff line change
Expand Up @@ -12044,6 +12044,19 @@
"description": "The text to show when all of the tiles are collapsed.",
"type": "string"
},
"defaults": {
"additionalProperties": false,
"properties": {
"starterCode": {
"description": "The default template shown when opening a new project",
"type": "string"
}
},
"required": [
"starterCode"
],
"type": "object"
},
"dialog": {
"additionalProperties": false,
"properties": {
Expand Down Expand Up @@ -12166,6 +12179,7 @@
}
},
"required": [
"defaults",
"error",
"button",
"field",
Expand Down
Loading