-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
749e91a
commit 54c6b06
Showing
10 changed files
with
84 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
{} | ||
{ | ||
"namePrompt": "Gib deinen Namen ein", | ||
"codePrompt": "Gib einen Raumcode ein", | ||
"createRoom": "Raum erstellen", | ||
"joinRoom": "Raum beitreten", | ||
"or": "oder", | ||
"ready": { | ||
"yes": "Bereit", | ||
"no": "Nicht bereit" | ||
}, | ||
"lobby": { | ||
"leaveRoom": { | ||
"label": "Raum verlassen", | ||
"confirmation": "Möchtest du wirklich den Raum verlassen? Sobald das Spiel gestartet wurde, kannst du nicht wieder beitreten." | ||
} | ||
}, | ||
"ask": { | ||
"prompt": "Denke dir eine Frage für die anderen Spieler aus", | ||
"pickForMe": { | ||
"label": "Mir fällt nichts ein", | ||
"confirmation": "Möchtest du wirklich eine vorgeschriebene Frage benutzen, anstatt eine eigene zu schreiben? Das ist ein bisschen langweilig, findest du nicht?" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { readable } from "svelte/store"; | ||
|
||
export const FALLBACK = { | ||
namePrompt: "Enter your name", | ||
codePrompt: "Enter a room code", | ||
createRoom: "Create Room", | ||
joinRoom: "Join Room", | ||
or: "or", | ||
ready: { | ||
yes: "Ready", | ||
no: "Not Ready", | ||
}, | ||
lobby: { | ||
leaveRoom: { | ||
label: "Leave Room", | ||
confirmation: | ||
"Are you sure you want to leave the room? You will not be able to rejoin once the game has started.", | ||
}, | ||
}, | ||
ask: { | ||
prompt: "Think of a question for the other players", | ||
pickForMe: { | ||
label: "Pick for me", | ||
confirmation: | ||
"Are you sure you want to let the computer pick a question for you? That's a bit boring, don't you think?", | ||
}, | ||
}, | ||
}; | ||
|
||
/** | ||
* @type {import("svelte/store").Readable<FALLBACK>} | ||
*/ | ||
export const i18n = readable(FALLBACK, function start(set) { | ||
fetch(`content/${import.meta.env.VITE_LOCALE}/i18n.json`) | ||
.then((response) => response.json()) | ||
.then((data) => set(data)); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters