From 747391e2b625fe46308b304b034fb66c7342a3e7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 14 Nov 2025 13:58:35 +0000 Subject: [PATCH] Translate all user-visible text to German Co-authored-by: clayschaad <11883505+clayschaad@users.noreply.github.com> --- MemoryGame/Pages/Home.razor | 24 ++++++++--------- MemoryGame/Services/GameService.cs | 40 ++++++++++++++-------------- MemoryGame/wwwroot/images/bed.svg | 2 +- MemoryGame/wwwroot/images/book.svg | 2 +- MemoryGame/wwwroot/images/car.svg | 2 +- MemoryGame/wwwroot/images/cat.svg | 2 +- MemoryGame/wwwroot/images/chair.svg | 2 +- MemoryGame/wwwroot/images/clock.svg | 2 +- MemoryGame/wwwroot/images/cup.svg | 2 +- MemoryGame/wwwroot/images/dog.svg | 2 +- MemoryGame/wwwroot/images/door.svg | 2 +- MemoryGame/wwwroot/images/fork.svg | 2 +- MemoryGame/wwwroot/images/hat.svg | 2 +- MemoryGame/wwwroot/images/house.svg | 2 +- MemoryGame/wwwroot/images/knife.svg | 2 +- MemoryGame/wwwroot/images/phone.svg | 2 +- MemoryGame/wwwroot/images/shoe.svg | 2 +- MemoryGame/wwwroot/images/spoon.svg | 2 +- MemoryGame/wwwroot/images/table.svg | 2 +- MemoryGame/wwwroot/images/tree.svg | 2 +- MemoryGame/wwwroot/images/window.svg | 2 +- 21 files changed, 51 insertions(+), 51 deletions(-) diff --git a/MemoryGame/Pages/Home.razor b/MemoryGame/Pages/Home.razor index 6756c2e..207d9ee 100644 --- a/MemoryGame/Pages/Home.razor +++ b/MemoryGame/Pages/Home.razor @@ -4,38 +4,38 @@ @inject GameService GameService @inject NavigationManager Navigation -Memory Game +Memory-Spiel
@if (!_initialized) {
-

Loading...

+

Lädt...

} else if (_currentSession == null) {
-

Memory Game

-

Practice matching images with words

- +

Memory-Spiel

+

Übe das Zuordnen von Bildern zu Wörtern

+
} else if (_currentSession.IsComplete) {
-

Game Complete!

+

Spiel beendet!

- Correct: + Richtig: @_currentSession.CorrectAnswers
- Incorrect: + Falsch: @_currentSession.IncorrectAnswers
- +
} else @@ -46,7 +46,7 @@
- Round @(_currentSession.CurrentRoundIndex + 1) of @_currentSession.Rounds.Count + Runde @(_currentSession.CurrentRoundIndex + 1) von @_currentSession.Rounds.Count
@@ -120,12 +120,12 @@ _showFeedback = true; if (round.IsCorrect) { - _feedbackMessage = "Correct! ✓"; + _feedbackMessage = "Richtig! ✓"; _feedbackClass = "correct"; } else { - _feedbackMessage = $"Incorrect. The correct answer is: {round.CorrectAnswer.Word}"; + _feedbackMessage = $"Falsch. Die richtige Antwort ist: {round.CorrectAnswer.Word}"; _feedbackClass = "incorrect"; } diff --git a/MemoryGame/Services/GameService.cs b/MemoryGame/Services/GameService.cs index 4ddc0e0..2519b9a 100644 --- a/MemoryGame/Services/GameService.cs +++ b/MemoryGame/Services/GameService.cs @@ -10,26 +10,26 @@ public sealed class GameService private readonly List _defaultWords = [ - new() { Word = "fork", ImagePath = "images/fork.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "knife", ImagePath = "images/knife.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "spoon", ImagePath = "images/spoon.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "door", ImagePath = "images/door.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "window", ImagePath = "images/window.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "ball", ImagePath = "images/ball.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "house", ImagePath = "images/house.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "tree", ImagePath = "images/tree.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "car", ImagePath = "images/car.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "cat", ImagePath = "images/cat.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "dog", ImagePath = "images/dog.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "chair", ImagePath = "images/chair.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "table", ImagePath = "images/table.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "cup", ImagePath = "images/cup.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "book", ImagePath = "images/book.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "clock", ImagePath = "images/clock.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "bed", ImagePath = "images/bed.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "phone", ImagePath = "images/phone.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "shoe", ImagePath = "images/shoe.svg", CorrectCount = 0, IncorrectCount = 0 }, - new() { Word = "hat", ImagePath = "images/hat.svg", CorrectCount = 0, IncorrectCount = 0 } + new() { Word = "Gabel", ImagePath = "images/fork.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Messer", ImagePath = "images/knife.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Löffel", ImagePath = "images/spoon.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Tür", ImagePath = "images/door.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Fenster", ImagePath = "images/window.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Ball", ImagePath = "images/ball.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Haus", ImagePath = "images/house.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Baum", ImagePath = "images/tree.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Auto", ImagePath = "images/car.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Katze", ImagePath = "images/cat.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Hund", ImagePath = "images/dog.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Stuhl", ImagePath = "images/chair.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Tisch", ImagePath = "images/table.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Tasse", ImagePath = "images/cup.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Buch", ImagePath = "images/book.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Uhr", ImagePath = "images/clock.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Bett", ImagePath = "images/bed.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Telefon", ImagePath = "images/phone.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Schuh", ImagePath = "images/shoe.svg", CorrectCount = 0, IncorrectCount = 0 }, + new() { Word = "Hut", ImagePath = "images/hat.svg", CorrectCount = 0, IncorrectCount = 0 } ]; public GameService(LocalStorageService localStorage) diff --git a/MemoryGame/wwwroot/images/bed.svg b/MemoryGame/wwwroot/images/bed.svg index b338e13..8101a6a 100644 --- a/MemoryGame/wwwroot/images/bed.svg +++ b/MemoryGame/wwwroot/images/bed.svg @@ -6,5 +6,5 @@ - BED + BETT diff --git a/MemoryGame/wwwroot/images/book.svg b/MemoryGame/wwwroot/images/book.svg index e639c29..8dfb254 100644 --- a/MemoryGame/wwwroot/images/book.svg +++ b/MemoryGame/wwwroot/images/book.svg @@ -5,5 +5,5 @@ - BOOK + BUCH diff --git a/MemoryGame/wwwroot/images/car.svg b/MemoryGame/wwwroot/images/car.svg index 9486226..a267690 100644 --- a/MemoryGame/wwwroot/images/car.svg +++ b/MemoryGame/wwwroot/images/car.svg @@ -6,5 +6,5 @@ - CAR + AUTO diff --git a/MemoryGame/wwwroot/images/cat.svg b/MemoryGame/wwwroot/images/cat.svg index b42b445..ba63952 100644 --- a/MemoryGame/wwwroot/images/cat.svg +++ b/MemoryGame/wwwroot/images/cat.svg @@ -8,5 +8,5 @@ - CAT + KATZE diff --git a/MemoryGame/wwwroot/images/chair.svg b/MemoryGame/wwwroot/images/chair.svg index 9545e5a..b5e92d8 100644 --- a/MemoryGame/wwwroot/images/chair.svg +++ b/MemoryGame/wwwroot/images/chair.svg @@ -8,5 +8,5 @@ - CHAIR + STUHL diff --git a/MemoryGame/wwwroot/images/clock.svg b/MemoryGame/wwwroot/images/clock.svg index b6ef1ce..6ff6c0d 100644 --- a/MemoryGame/wwwroot/images/clock.svg +++ b/MemoryGame/wwwroot/images/clock.svg @@ -6,5 +6,5 @@ - CLOCK + UHR diff --git a/MemoryGame/wwwroot/images/cup.svg b/MemoryGame/wwwroot/images/cup.svg index d9dccd0..a6824c9 100644 --- a/MemoryGame/wwwroot/images/cup.svg +++ b/MemoryGame/wwwroot/images/cup.svg @@ -4,5 +4,5 @@ - CUP + TASSE diff --git a/MemoryGame/wwwroot/images/dog.svg b/MemoryGame/wwwroot/images/dog.svg index b59f228..916e9d5 100644 --- a/MemoryGame/wwwroot/images/dog.svg +++ b/MemoryGame/wwwroot/images/dog.svg @@ -8,5 +8,5 @@ - DOG + HUND diff --git a/MemoryGame/wwwroot/images/door.svg b/MemoryGame/wwwroot/images/door.svg index ea457fc..79473a7 100644 --- a/MemoryGame/wwwroot/images/door.svg +++ b/MemoryGame/wwwroot/images/door.svg @@ -4,5 +4,5 @@ - DOOR + TÜR diff --git a/MemoryGame/wwwroot/images/fork.svg b/MemoryGame/wwwroot/images/fork.svg index e3ef1ed..f1e9d35 100644 --- a/MemoryGame/wwwroot/images/fork.svg +++ b/MemoryGame/wwwroot/images/fork.svg @@ -7,5 +7,5 @@ - FORK + GABEL diff --git a/MemoryGame/wwwroot/images/hat.svg b/MemoryGame/wwwroot/images/hat.svg index 1a61d02..62de8de 100644 --- a/MemoryGame/wwwroot/images/hat.svg +++ b/MemoryGame/wwwroot/images/hat.svg @@ -4,5 +4,5 @@ - HAT + HUT diff --git a/MemoryGame/wwwroot/images/house.svg b/MemoryGame/wwwroot/images/house.svg index ec98015..a492d73 100644 --- a/MemoryGame/wwwroot/images/house.svg +++ b/MemoryGame/wwwroot/images/house.svg @@ -5,5 +5,5 @@ - HOUSE + HAUS diff --git a/MemoryGame/wwwroot/images/knife.svg b/MemoryGame/wwwroot/images/knife.svg index f20d780..9c411d2 100644 --- a/MemoryGame/wwwroot/images/knife.svg +++ b/MemoryGame/wwwroot/images/knife.svg @@ -4,5 +4,5 @@ - KNIFE + MESSER diff --git a/MemoryGame/wwwroot/images/phone.svg b/MemoryGame/wwwroot/images/phone.svg index 7a7db8e..66ddccc 100644 --- a/MemoryGame/wwwroot/images/phone.svg +++ b/MemoryGame/wwwroot/images/phone.svg @@ -5,5 +5,5 @@ - PHONE + TELEFON diff --git a/MemoryGame/wwwroot/images/shoe.svg b/MemoryGame/wwwroot/images/shoe.svg index 653887c..6c368ee 100644 --- a/MemoryGame/wwwroot/images/shoe.svg +++ b/MemoryGame/wwwroot/images/shoe.svg @@ -4,5 +4,5 @@ - SHOE + SCHUH diff --git a/MemoryGame/wwwroot/images/spoon.svg b/MemoryGame/wwwroot/images/spoon.svg index 75f65e8..f07a4cd 100644 --- a/MemoryGame/wwwroot/images/spoon.svg +++ b/MemoryGame/wwwroot/images/spoon.svg @@ -4,5 +4,5 @@ - SPOON + LÖFFEL diff --git a/MemoryGame/wwwroot/images/table.svg b/MemoryGame/wwwroot/images/table.svg index 192ff6e..b767ef8 100644 --- a/MemoryGame/wwwroot/images/table.svg +++ b/MemoryGame/wwwroot/images/table.svg @@ -5,5 +5,5 @@ - TABLE + TISCH diff --git a/MemoryGame/wwwroot/images/tree.svg b/MemoryGame/wwwroot/images/tree.svg index 30e431f..1c3e695 100644 --- a/MemoryGame/wwwroot/images/tree.svg +++ b/MemoryGame/wwwroot/images/tree.svg @@ -4,5 +4,5 @@ - TREE + BAUM diff --git a/MemoryGame/wwwroot/images/window.svg b/MemoryGame/wwwroot/images/window.svg index e9def7e..3bd2afa 100644 --- a/MemoryGame/wwwroot/images/window.svg +++ b/MemoryGame/wwwroot/images/window.svg @@ -5,5 +5,5 @@ - WINDOW + FENSTER