From 488a1a45c6eb719db07c1fbfa942c71837a0412d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Wed, 30 Sep 2026 11:52:50 +0500 Subject: [PATCH] UI: translate Players, Companions, Client cards Co-Authored-By: Claude Sonnet 5.5 --- src/i18n/locales/de.ts | 51 ++++++++++++++++++++++++++++++++++ src/i18n/locales/en.ts | 51 ++++++++++++++++++++++++++++++++++ src/i18n/locales/es.ts | 51 ++++++++++++++++++++++++++++++++++ src/i18n/locales/fr.ts | 51 ++++++++++++++++++++++++++++++++++ src/i18n/locales/ru.ts | 51 ++++++++++++++++++++++++++++++++++ src/screens/ClientCard.tsx | 39 ++++++++++++++------------ src/screens/CompanionsCard.tsx | 29 ++++++++++--------- src/screens/PlayersPage.tsx | 27 ++++++++++-------- 8 files changed, 307 insertions(+), 43 deletions(-) diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index b86b0d2..955823d 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -147,6 +147,57 @@ const de: Partial> = { "install.doneTitle": "Dein Server ist bereit", "install.doneText": "Alles ist installiert. Starte ihn auf dem nächsten Bildschirm.", "install.open": "MEINEN SERVER ÖFFNEN", + + // Players + "players.title": "Spieler", + "players.createTitle": "Erstelle dein Konto", + "players.createText": "Das sind der Name und das Passwort, mit denen du dich im Spiel anmeldest.", + "players.startFirst": "Starte zuerst den Server – Konten werden erstellt, solange er läuft.", + "players.username": "Benutzername", + "players.password": "Passwort", + "players.admin": "Dieses Konto zum Administrator machen", + "players.adminHint": "Administratoren können im Spiel Gamemaster-Befehle nutzen. Tu dies nur für Konten, denen du vertraust.", + "players.create": "Konto erstellen", + "players.created": "Konto „{name}“ erstellt. Du kannst dich jetzt damit im Spiel anmelden.", + + // Companions + "comp.title": "KI-Begleiter", + "comp.population": "{online} jetzt online · insgesamt {total} erstellt", + "comp.reading": "Aktuelle Anzahl wird gelesen …", + "comp.startToSee": "Starte den Server, um zu sehen, wie viele Begleiter online sind.", + "comp.wantMore": "Möchtest du mehr Begleiter?", + "comp.custom": "Benutzerdefiniert", + "comp.numberLabel": "Anzahl der Begleiter", + "comp.largeWarning": "Große Mengen können mehr CPU und Speicher benötigen. Erhöhe schrittweise.", + "comp.hardware": "Dieser Computer: {cores} Kerne, {ram} GB Arbeitsspeicher.", + "comp.add": "{n} Begleiter hinzufügen", + "comp.addPlain": "Begleiter hinzufügen", + "comp.stoppedHint": "Der Server ist gestoppt: Sie werden beim nächsten Start erstellt.", + "comp.spawned": "{n} Begleiter werden erstellt. Sie erscheinen nach und nach in den nächsten Minuten.", + "comp.saved": "Gespeichert. {n} Begleiter melden sich beim Serverstart an.", + + // Client + "client.title": "Spielclient", + "client.looking": "Suche …", + "client.intro": "Sag dem Manager, wo dein Spiel installiert ist, um einen SPIELEN-Button zu erhalten. Deine Spieldateien werden nie geändert, außer der Serveradresse und dem Begleiter-Addon.", + "client.chooseFolder": "Spielordner wählen …", + "client.dialogTitle": "Wähle den Ordner deines Spielclients", + "client.connectsTo": "Verbindet mit", + "client.thisComputer": "✓ dieser Computer", + "client.notThisServer": "nicht dieser Server", + "client.addon": "Begleiter-Addon", + "client.installedVersion": "Installiert (Version {v})", + "client.installed": "Installiert", + "client.addonNotInstalled": "Nicht installiert", + "client.updateAvailable": "ein Update ist verfügbar", + "client.otherAddons": "Andere Addons", + "client.leftAsIs": "{n} – bleiben unverändert", + "client.pointLocal": "Spiel auf diesen Server ausrichten", + "client.pointedNote": "Das Spiel verbindet sich jetzt mit diesem Computer. Die vorherige Adresse wurde gespeichert.", + "client.installAddon": "Begleiter-Addon installieren", + "client.updateAddon": "Begleiter-Addon aktualisieren", + "client.addonNote": "Begleiter-Addon installiert. Andere Addons wurden nicht angetastet.", + "client.changeFolder": "Ordner ändern …", }; export default de; diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index a27443f..c1b7f63 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -147,6 +147,57 @@ const en = { "install.doneTitle": "Your server is ready", "install.doneText": "Everything is installed. Start it from the next screen.", "install.open": "OPEN MY SERVER", + + // Players + "players.title": "Players", + "players.createTitle": "Create your account", + "players.createText": "This is the name and password you use to log in to the game.", + "players.startFirst": "Start the server first — accounts are created while it is running.", + "players.username": "Username", + "players.password": "Password", + "players.admin": "Make this account an administrator", + "players.adminHint": "Administrators can use game-master commands in the game. Only do this for accounts you trust.", + "players.create": "Create account", + "players.created": "Account “{name}” created. You can log in to the game with it now.", + + // Companions + "comp.title": "AI companions", + "comp.population": "{online} online now · {total} created in total", + "comp.reading": "Reading the current population…", + "comp.startToSee": "Start the server to see how many companions are online.", + "comp.wantMore": "Would you like more companions?", + "comp.custom": "Custom", + "comp.numberLabel": "Number of companions", + "comp.largeWarning": "Large populations may need more CPU and memory. Increase gradually.", + "comp.hardware": "This computer: {cores} cores, {ram} GB memory.", + "comp.add": "Add {n} companions", + "comp.addPlain": "Add companions", + "comp.stoppedHint": "The server is stopped: they will be created the next time it runs.", + "comp.spawned": "Creating {n} companions. They appear gradually over the next minutes.", + "comp.saved": "Saved. {n} companions will log in when the server starts.", + + // Client + "client.title": "Game client", + "client.looking": "Looking…", + "client.intro": "Tell Manager where your game is installed to get a PLAY button. Your game files are never changed except the server address and the companion addon.", + "client.chooseFolder": "Choose game folder…", + "client.dialogTitle": "Choose your game client folder", + "client.connectsTo": "Connects to", + "client.thisComputer": "✓ this computer", + "client.notThisServer": "not this server", + "client.addon": "Companion addon", + "client.installedVersion": "Installed (version {v})", + "client.installed": "Installed", + "client.addonNotInstalled": "Not installed", + "client.updateAvailable": "an update is available", + "client.otherAddons": "Other addons", + "client.leftAsIs": "{n} — left exactly as they are", + "client.pointLocal": "Point the game at this server", + "client.pointedNote": "The game now connects to this computer. The previous address was saved.", + "client.installAddon": "Install companion addon", + "client.updateAddon": "Update companion addon", + "client.addonNote": "Companion addon installed. Other addons were not touched.", + "client.changeFolder": "Change folder…", } as const; export default en; diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index e4aa90e..4b2a707 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -147,6 +147,57 @@ const es: Partial> = { "install.doneTitle": "Tu servidor está listo", "install.doneText": "Todo está instalado. Inícialo desde la siguiente pantalla.", "install.open": "ABRIR MI SERVIDOR", + + // Players + "players.title": "Jugadores", + "players.createTitle": "Crea tu cuenta", + "players.createText": "Este es el nombre y la contraseña con los que inicias sesión en el juego.", + "players.startFirst": "Inicia primero el servidor: las cuentas se crean mientras está en marcha.", + "players.username": "Nombre de usuario", + "players.password": "Contraseña", + "players.admin": "Convertir esta cuenta en administrador", + "players.adminHint": "Los administradores pueden usar comandos de game master en el juego. Hazlo solo con cuentas de confianza.", + "players.create": "Crear cuenta", + "players.created": "Cuenta «{name}» creada. Ya puedes iniciar sesión en el juego con ella.", + + // Companions + "comp.title": "Compañeros de IA", + "comp.population": "{online} en línea ahora · {total} creados en total", + "comp.reading": "Leyendo la población actual…", + "comp.startToSee": "Inicia el servidor para ver cuántos compañeros hay en línea.", + "comp.wantMore": "¿Quieres más compañeros?", + "comp.custom": "Personalizado", + "comp.numberLabel": "Número de compañeros", + "comp.largeWarning": "Las poblaciones grandes pueden requerir más CPU y memoria. Aumenta poco a poco.", + "comp.hardware": "Este equipo: {cores} núcleos, {ram} GB de memoria.", + "comp.add": "Añadir {n} compañeros", + "comp.addPlain": "Añadir compañeros", + "comp.stoppedHint": "El servidor está detenido: se crearán la próxima vez que se inicie.", + "comp.spawned": "Creando {n} compañeros. Aparecerán gradualmente durante los próximos minutos.", + "comp.saved": "Guardado. {n} compañeros iniciarán sesión cuando se inicie el servidor.", + + // Client + "client.title": "Cliente del juego", + "client.looking": "Buscando…", + "client.intro": "Indica al Manager dónde está instalado el juego para obtener un botón JUGAR. Tus archivos del juego nunca se modifican, salvo la dirección del servidor y el addon de compañeros.", + "client.chooseFolder": "Elegir carpeta del juego…", + "client.dialogTitle": "Elige la carpeta de tu cliente del juego", + "client.connectsTo": "Se conecta a", + "client.thisComputer": "✓ este equipo", + "client.notThisServer": "no este servidor", + "client.addon": "Addon de compañeros", + "client.installedVersion": "Instalado (versión {v})", + "client.installed": "Instalado", + "client.addonNotInstalled": "No instalado", + "client.updateAvailable": "hay una actualización disponible", + "client.otherAddons": "Otros addons", + "client.leftAsIs": "{n}: se dejan exactamente como están", + "client.pointLocal": "Apuntar el juego a este servidor", + "client.pointedNote": "El juego ahora se conecta a este equipo. La dirección anterior se guardó.", + "client.installAddon": "Instalar addon de compañeros", + "client.updateAddon": "Actualizar addon de compañeros", + "client.addonNote": "Addon de compañeros instalado. Los demás addons no se tocaron.", + "client.changeFolder": "Cambiar carpeta…", }; export default es; diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index 153d926..a2c99ff 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -147,6 +147,57 @@ const fr: Partial> = { "install.doneTitle": "Votre serveur est prêt", "install.doneText": "Tout est installé. Démarrez-le depuis l’écran suivant.", "install.open": "OUVRIR MON SERVEUR", + + // Players + "players.title": "Joueurs", + "players.createTitle": "Créez votre compte", + "players.createText": "C’est le nom et le mot de passe que vous utilisez pour vous connecter au jeu.", + "players.startFirst": "Démarrez d’abord le serveur : les comptes sont créés pendant qu’il fonctionne.", + "players.username": "Nom d’utilisateur", + "players.password": "Mot de passe", + "players.admin": "Faire de ce compte un administrateur", + "players.adminHint": "Les administrateurs peuvent utiliser les commandes de maître de jeu. Ne le faites que pour des comptes de confiance.", + "players.create": "Créer le compte", + "players.created": "Compte « {name} » créé. Vous pouvez maintenant vous connecter au jeu avec.", + + // Companions + "comp.title": "Compagnons IA", + "comp.population": "{online} en ligne maintenant · {total} créés au total", + "comp.reading": "Lecture de la population actuelle…", + "comp.startToSee": "Démarrez le serveur pour voir combien de compagnons sont en ligne.", + "comp.wantMore": "Souhaitez-vous plus de compagnons ?", + "comp.custom": "Personnalisé", + "comp.numberLabel": "Nombre de compagnons", + "comp.largeWarning": "De grandes populations peuvent nécessiter plus de processeur et de mémoire. Augmentez progressivement.", + "comp.hardware": "Cet ordinateur : {cores} cœurs, {ram} Go de mémoire.", + "comp.add": "Ajouter {n} compagnons", + "comp.addPlain": "Ajouter des compagnons", + "comp.stoppedHint": "Le serveur est arrêté : ils seront créés au prochain démarrage.", + "comp.spawned": "Création de {n} compagnons. Ils apparaissent progressivement dans les prochaines minutes.", + "comp.saved": "Enregistré. {n} compagnons se connecteront au démarrage du serveur.", + + // Client + "client.title": "Client du jeu", + "client.looking": "Recherche…", + "client.intro": "Indiquez au Manager où le jeu est installé pour obtenir un bouton JOUER. Vos fichiers de jeu ne sont jamais modifiés, sauf l’adresse du serveur et l’addon des compagnons.", + "client.chooseFolder": "Choisir le dossier du jeu…", + "client.dialogTitle": "Choisissez le dossier de votre client de jeu", + "client.connectsTo": "Se connecte à", + "client.thisComputer": "✓ cet ordinateur", + "client.notThisServer": "pas ce serveur", + "client.addon": "Addon des compagnons", + "client.installedVersion": "Installé (version {v})", + "client.installed": "Installé", + "client.addonNotInstalled": "Non installé", + "client.updateAvailable": "une mise à jour est disponible", + "client.otherAddons": "Autres addons", + "client.leftAsIs": "{n} — laissés tels quels", + "client.pointLocal": "Diriger le jeu vers ce serveur", + "client.pointedNote": "Le jeu se connecte maintenant à cet ordinateur. L’ancienne adresse a été enregistrée.", + "client.installAddon": "Installer l’addon des compagnons", + "client.updateAddon": "Mettre à jour l’addon des compagnons", + "client.addonNote": "Addon des compagnons installé. Les autres addons n’ont pas été touchés.", + "client.changeFolder": "Changer de dossier…", }; export default fr; diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index 410c88b..b053d9f 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -147,6 +147,57 @@ const ru: Partial> = { "install.doneTitle": "Ваш сервер готов", "install.doneText": "Всё установлено. Запустите сервер на следующем экране.", "install.open": "ОТКРЫТЬ МОЙ СЕРВЕР", + + // Players + "players.title": "Игроки", + "players.createTitle": "Создайте свою учётную запись", + "players.createText": "Это имя и пароль, с которыми вы входите в игру.", + "players.startFirst": "Сначала запустите сервер — учётные записи создаются, пока он работает.", + "players.username": "Имя пользователя", + "players.password": "Пароль", + "players.admin": "Сделать эту учётную запись администратором", + "players.adminHint": "Администраторы могут использовать команды гейм-мастера в игре. Делайте это только для тех, кому доверяете.", + "players.create": "Создать учётную запись", + "players.created": "Учётная запись «{name}» создана. Теперь с ней можно войти в игру.", + + // Companions + "comp.title": "ИИ-компаньоны", + "comp.population": "Сейчас в сети: {online} · всего создано: {total}", + "comp.reading": "Считываю текущее количество…", + "comp.startToSee": "Запустите сервер, чтобы увидеть, сколько компаньонов в сети.", + "comp.wantMore": "Хотите больше компаньонов?", + "comp.custom": "Своё число", + "comp.numberLabel": "Количество компаньонов", + "comp.largeWarning": "Большое количество может потребовать больше процессора и памяти. Увеличивайте постепенно.", + "comp.hardware": "Этот компьютер: ядер — {cores}, памяти — {ram} ГБ.", + "comp.add": "Добавить компаньонов: {n}", + "comp.addPlain": "Добавить компаньонов", + "comp.stoppedHint": "Сервер остановлен: компаньоны будут созданы при следующем запуске.", + "comp.spawned": "Создаю компаньонов: {n}. Они появятся постепенно в течение нескольких минут.", + "comp.saved": "Сохранено. Компаньоны ({n}) войдут в игру при запуске сервера.", + + // Client + "client.title": "Клиент игры", + "client.looking": "Ищу…", + "client.intro": "Укажите, где установлена игра, чтобы появилась кнопка «Играть». Файлы игры не изменяются, кроме адреса сервера и аддона компаньонов.", + "client.chooseFolder": "Выбрать папку игры…", + "client.dialogTitle": "Выберите папку клиента игры", + "client.connectsTo": "Подключается к", + "client.thisComputer": "✓ этот компьютер", + "client.notThisServer": "не этот сервер", + "client.addon": "Аддон компаньонов", + "client.installedVersion": "Установлен (версия {v})", + "client.installed": "Установлен", + "client.addonNotInstalled": "Не установлен", + "client.updateAvailable": "доступно обновление", + "client.otherAddons": "Другие аддоны", + "client.leftAsIs": "{n} — остаются без изменений", + "client.pointLocal": "Направить игру на этот сервер", + "client.pointedNote": "Теперь игра подключается к этому компьютеру. Прежний адрес сохранён.", + "client.installAddon": "Установить аддон компаньонов", + "client.updateAddon": "Обновить аддон компаньонов", + "client.addonNote": "Аддон компаньонов установлен. Другие аддоны не затронуты.", + "client.changeFolder": "Сменить папку…", }; export default ru; diff --git a/src/screens/ClientCard.tsx b/src/screens/ClientCard.tsx index 38ce2f8..c107814 100644 --- a/src/screens/ClientCard.tsx +++ b/src/screens/ClientCard.tsx @@ -3,8 +3,11 @@ import { open } from "@tauri-apps/plugin-dialog"; import { api, asUiError, type ClientInfo, type UiError } from "@/lib/api"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; +import { useHuman, useT } from "@/i18n"; export function ClientCard({ serverId }: { serverId: string }) { + const t = useT(); + const human = useHuman(); const [info, setInfo] = useState(undefined); const [error, setError] = useState(null); const [note, setNote] = useState(null); @@ -31,7 +34,7 @@ export function ClientCard({ serverId }: { serverId: string }) { } async function choose() { - const picked = await open({ directory: true, multiple: false, title: "Choose your game client folder" }); + const picked = await open({ directory: true, multiple: false, title: t("client.dialogTitle") }); if (typeof picked === "string") await run(async () => void (await api.setClient(serverId, picked))); } @@ -40,48 +43,48 @@ export function ClientCard({ serverId }: { serverId: string }) { return ( -

Game client

- {info === undefined &&

Looking…

} +

{t("client.title")}

+ {info === undefined &&

{t("client.looking")}

} {info === null && ( <> -

Tell Manager where your game is installed to get a PLAY button. Your game files are never changed except the server address and the companion addon.

- +

{t("client.intro")}

+ )} {info && ( <>

{info.path}

-
Connects to
+
{t("client.connectsTo")}
{hosts.length ? hosts.filter(Boolean).join(", ") : "—"} - {pointsLocal ? ✓ this computer : not this server} + {pointsLocal ? {t("client.thisComputer")} : {t("client.notThisServer")}}
-
Companion addon
+
{t("client.addon")}
- {info.addon.installed ? `Installed${info.addon.version ? ` (version ${info.addon.version})` : ""}` : "Not installed"} - {info.addon.up_to_date === false && an update is available} + {info.addon.installed ? (info.addon.version ? t("client.installedVersion", { v: info.addon.version }) : t("client.installed")) : t("client.addonNotInstalled")} + {info.addon.up_to_date === false && {t("client.updateAvailable")}}
-
Other addons
-
{info.other_addons} — left exactly as they are
+
{t("client.otherAddons")}
+
{t("client.leftAsIs", { n: info.other_addons })}
{!pointsLocal && ( - )} {(!info.addon.installed || info.addon.up_to_date === false) && ( - )} - +
)} {note &&

{note}

} - {error &&

{error.human.code === "unknown" ? error.technical : error.human.message}

} + {error &&

{error.human.code === "unknown" ? error.technical : human(error.human).message}

}
); } diff --git a/src/screens/CompanionsCard.tsx b/src/screens/CompanionsCard.tsx index bfad808..9715b62 100644 --- a/src/screens/CompanionsCard.tsx +++ b/src/screens/CompanionsCard.tsx @@ -3,8 +3,11 @@ import { Loader2 } from "lucide-react"; import { api, asUiError, type CompanionSizes, type Population, type UiError } from "@/lib/api"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; +import { useHuman, useT } from "@/i18n"; export function CompanionsCard({ serverId }: { serverId: string }) { + const t = useT(); + const human = useHuman(); const [sizes, setSizes] = useState(null); const [pop, setPop] = useState(null); const [running, setRunning] = useState(false); @@ -33,7 +36,7 @@ export function CompanionsCard({ serverId }: { serverId: string }) { }, [serverId]); const count = choice === "custom" ? Number(custom) : (sizes?.sizes.find((s) => s.id === choice)?.bots ?? 0); - const warning = choice === "custom" ? (count > 500 ? "Large populations may need more CPU and memory. Increase gradually." : null) : (sizes?.sizes.find((s) => s.id === choice)?.warning ?? null); + const warning = choice === "custom" ? (count > 500 ? t("comp.largeWarning") : null) : (sizes?.sizes.find((s) => s.id === choice)?.warning ?? null); const valid = Number.isInteger(count) && count >= 1 && count <= 2000; async function add() { @@ -42,7 +45,7 @@ export function CompanionsCard({ serverId }: { serverId: string }) { setNote(null); try { const r = await api.addCompanions(serverId, count); - setNote(r.spawned ? `Creating ${count} companions. They appear gradually over the next minutes.` : `Saved. ${count} companions will log in when the server starts.`); + setNote(r.spawned ? t("comp.spawned", { n: count }) : t("comp.saved", { n: count })); } catch (e) { setError(asUiError(e)); } finally { @@ -52,17 +55,17 @@ export function CompanionsCard({ serverId }: { serverId: string }) { return ( -

AI companions

+

{t("comp.title")}

{pop - ? `${pop.bots_online} online now · ${pop.bots_total} created in total` + ? t("comp.population", { online: pop.bots_online, total: pop.bots_total }) : running - ? "Reading the current population…" - : "Start the server to see how many companions are online."} + ? t("comp.reading") + : t("comp.startToSee")}

- Would you like more companions? + {t("comp.wantMore")}
{sizes?.sizes.map((s) => (
{warning &&

{warning}

} - {sizes &&

This computer: {sizes.hardware.cores} cores, {sizes.hardware.ram_gb.toFixed(0)} GB memory.

} + {sizes &&

{t("comp.hardware", { cores: sizes.hardware.cores, ram: sizes.hardware.ram_gb.toFixed(0) })}

}
- {!running && The server is stopped: they will be created the next time it runs.} + {!running && {t("comp.stoppedHint")}}
{note &&

{note}

} - {error &&

{error.human.code === "unknown" ? error.technical : error.human.message}

} + {error &&

{error.human.code === "unknown" ? error.technical : human(error.human).message}

}
); } diff --git a/src/screens/PlayersPage.tsx b/src/screens/PlayersPage.tsx index ec9970e..d721469 100644 --- a/src/screens/PlayersPage.tsx +++ b/src/screens/PlayersPage.tsx @@ -2,8 +2,11 @@ import { useEffect, useState } from "react"; import { api, asUiError, type UiError } from "@/lib/api"; import { Button } from "@/components/ui/button"; import { Card } from "@/components/ui/card"; +import { useHuman, useT } from "@/i18n"; export function PlayersPage({ serverId }: { serverId: string }) { + const t = useT(); + const human = useHuman(); const [online, setOnline] = useState(null); const [username, setUsername] = useState(""); const [password, setPassword] = useState(""); @@ -42,37 +45,37 @@ export function PlayersPage({ serverId }: { serverId: string }) { const input = "w-72 rounded-md border border-line bg-bg px-3 py-2.5 text-[15px] outline-none focus:border-gold"; return (
-

Players

-

Who is playing right now?

+

{t("players.title")}

+

{t("q.players")}

-

Create your account

-

This is the name and password you use to log in to the game.

- {online === false &&

Start the server first — accounts are created while it is running.

} +

{t("players.createTitle")}

+

{t("players.createText")}

+ {online === false &&

{t("players.startFirst")}

}
- + setUsername(e.target.value)} autoComplete="off" />
- + setPassword(e.target.value)} autoComplete="new-password" />
- {done &&

Account “{done}” created. You can log in to the game with it now.

} + {done &&

{t("players.created", { name: done })}

} {error && (

- {error.human.code === "unknown" ? error.technical : error.human.message} + {error.human.code === "unknown" ? error.technical : human(error.human).message}

)}