From f9d63c6c49d757dbb6c3126bbc873b2750c10b4c Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Thu, 24 Apr 2025 20:23:14 +0200 Subject: [PATCH] Translate UI text to German for Home, Lobby, and Song Submission screens to enhance localization --- client/src/components/HomeScreen.jsx | 18 +++++----- client/src/components/LobbyScreen.jsx | 36 +++++++++---------- .../src/components/SongSubmissionScreen.jsx | 34 +++++++++--------- 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/client/src/components/HomeScreen.jsx b/client/src/components/HomeScreen.jsx index e62e61b..42b2af3 100644 --- a/client/src/components/HomeScreen.jsx +++ b/client/src/components/HomeScreen.jsx @@ -30,7 +30,7 @@ const HomeScreen = () => {
Song Battle Logo -

Song Battle

+

Liedkampf

@@ -39,25 +39,25 @@ const HomeScreen = () => { className={isCreateMode ? 'active' : ''} onClick={() => setIsCreateMode(true)} > - Create Game + Erstellen
- + setPlayerName(e.target.value)} - placeholder="Enter your name" + placeholder="Gib deinen Namen ein" maxLength={20} required /> @@ -65,13 +65,13 @@ const HomeScreen = () => { {!isCreateMode && (
- + setLobbyId(e.target.value.toUpperCase())} - placeholder="Enter 6-letter code" + placeholder="6-stelligen Code eingeben" maxLength={6} required /> @@ -79,7 +79,7 @@ const HomeScreen = () => { )}
-

Let your favorite songs battle it out!

+

ich weiß doch auch nicht

); diff --git a/client/src/components/LobbyScreen.jsx b/client/src/components/LobbyScreen.jsx index 5e74787..bc45fbc 100644 --- a/client/src/components/LobbyScreen.jsx +++ b/client/src/components/LobbyScreen.jsx @@ -50,24 +50,24 @@ const LobbyScreen = () => { return (
-

Game Lobby

+

Spiellobby

-

Game Code: {lobby.id}

+

Spielcode: {lobby.id}

-

Players ({lobby.players.length})

+

Spieler ({lobby.players.length})

    {lobby.players.map(player => (
  • - {player.name} {player.id === lobby.hostId && '(Host)'} {player.id === currentPlayer.id && '(You)'} - {!player.isConnected && (Disconnected)} + {player.name} {player.id === lobby.hostId && '(Gastgeber)'} {player.id === currentPlayer.id && '(Du)'} + {!player.isConnected && (Getrennt)}
  • ))}
@@ -75,13 +75,13 @@ const LobbyScreen = () => {
-

Game Settings

-

Songs per player: {settings.songsPerPlayer}

-

Max players: {settings.maxPlayers}

+

Spieleinstellungen

+

Lieder pro Spieler: {settings.songsPerPlayer}

+

Maximale Spieler: {settings.maxPlayers}

{isHost && ( )}
@@ -93,16 +93,16 @@ const LobbyScreen = () => { onClick={handleStartGame} disabled={lobby.players.length < lobby.settings.minPlayers} > - Start Game + Spiel starten )}
{lobby.players.length < lobby.settings.minPlayers && isHost && ( -

Need at least {lobby.settings.minPlayers} players to start

+

Mindestens {lobby.settings.minPlayers} Spieler werden benötigt

)}
@@ -110,10 +110,10 @@ const LobbyScreen = () => { {showSettings && (
-

Game Settings

+

Spieleinstellungen

- + {
- + {
diff --git a/client/src/components/SongSubmissionScreen.jsx b/client/src/components/SongSubmissionScreen.jsx index 8118ff7..e9c36f9 100644 --- a/client/src/components/SongSubmissionScreen.jsx +++ b/client/src/components/SongSubmissionScreen.jsx @@ -308,11 +308,11 @@ const SongSubmissionScreen = () => { return (
-

Submit Your Songs

+

Füge deine Lieder hinzu

{isReady - ? 'Waiting for other players...' - : `Submit ${lobby?.settings?.songsPerPlayer || 0} songs to battle`} + ? 'Warte auf andere Spieler...' + : `Füge ${lobby?.settings?.songsPerPlayer || 0} Lieder für den Kampf hinzu`}

@@ -356,7 +356,7 @@ const SongSubmissionScreen = () => { onClick={() => setIsFormVisible(true)} > - Add Song + Lied hinzufügen )}
@@ -364,17 +364,17 @@ const SongSubmissionScreen = () => { {isFormVisible && (
-

Add a Song

+

Lied hinzufügen

- +
{isSearching && ( @@ -398,14 +398,14 @@ const SongSubmissionScreen = () => { {selectedVideo && (
-

Selected Song

+

Ausgewähltes Lied

- View on YouTube + Auf YouTube ansehen
@@ -430,7 +430,7 @@ const SongSubmissionScreen = () => { {searchResults.length > 0 && (
-

Search Results

+

Suchergebnisse

{searchResults.map(result => (
{ setSearchQuery(''); setSearchResults([]); }}> - Cancel + Abbrechen
@@ -485,22 +485,22 @@ const SongSubmissionScreen = () => { className="btn primary" onClick={handleSetReady} > - Ready to Battle + Kampfbereit )}
{isReady && (
-

Ready to Battle!

-

Waiting for other players to submit their songs...

+

Kampfbereit!

+

Warte auf andere Spieler, die ihre Lieder einreichen...

-

Players Ready

+

Spieler bereit

    {lobby && lobby.players.map(player => (
  • - {player.name} {player.id === currentPlayer.id && '(You)'} + {player.name} {player.id === currentPlayer.id && '(Du)'} {player.isReady ? ( ) : (