e.stopPropagation()}>
- Abwesenheit-Nachricht setzen
-
- Nachricht:
+ {t("away.dialog.message")}
- OK
+ {t("away.dialog.ok")}
- Speichern
+ {t("away.dialog.save")}
- Abbrechen
+ {t("away.dialog.cancel")}
@@ -767,18 +774,18 @@ function AwayDialog({
}
const OPTIONS_SECTIONS = [
- { id: "anwendung", icon: "🎧", label: "Anwendung" },
- { id: "wiedergabe", icon: "🔊", label: "Wiedergabe" },
- { id: "aufnahme", icon: "🎙️", label: "Aufnahme" },
- { id: "design", icon: "🖌️", label: "Design" },
- { id: "erweiterungen", icon: "🧩", label: "Erweiterungen" },
- { id: "hotkeys", icon: "⌨️", label: "Hotkeys" },
- { id: "whispern", icon: "🤫", label: "Whispern" },
- { id: "downloads", icon: "⬇️", label: "Downloads" },
- { id: "chat", icon: "💬", label: "Chat" },
- { id: "sicherheit", icon: "🛡️", label: "Sicherheit" },
- { id: "nachrichten", icon: "🔤", label: "Nachrichten" },
- { id: "meldungen", icon: "ℹ️", label: "Meldungen" },
+ { id: "anwendung", icon: "🎧" },
+ { id: "wiedergabe", icon: "🔊" },
+ { id: "aufnahme", icon: "🎙️" },
+ { id: "design", icon: "🖌️" },
+ { id: "erweiterungen", icon: "🧩" },
+ { id: "hotkeys", icon: "⌨️" },
+ { id: "whispern", icon: "🤫" },
+ { id: "downloads", icon: "⬇️" },
+ { id: "chat", icon: "💬" },
+ { id: "sicherheit", icon: "🛡️" },
+ { id: "nachrichten", icon: "🔤" },
+ { id: "meldungen", icon: "ℹ️" },
] as const;
interface AudioSettings {
@@ -831,27 +838,28 @@ function MicLevelBar({ levelRef, active }: { levelRef: React.MutableRefObject
- Wiedergabe
- Ändern der Wiedergabeeinstellungen
+ {t("playback.title")}
+ {t("playback.subtitle")}
-
+
- - Standard
+ - {t("playback.default")}
@@ -901,23 +909,24 @@ function WiedergabePanel({ audio }: { audio: AudioSettings }) {
}
function AufnahmePanel({ audio }: { audio: AudioSettings }) {
+ const t = useT();
return (
<>
-
Aufnahme
-
Ändern der Aufnahmeeinstellungen
+
{t("recording.title")}
+
{t("recording.subtitle")}
- - Standard
+ - {t("playback.default")}
@@ -1001,6 +1010,25 @@ function AufnahmePanel({ audio }: { audio: AudioSettings }) {
);
}
+function AnwendungPanel() {
+ const t = useT();
+ const { langPref, setLangPref } = useLanguage();
+ return (
+ <>
+
{t("app.title")}
+
{t("app.subtitle")}
+
+ >
+ );
+}
+
function OptionsDialog({
section,
onSectionChange,
@@ -1012,13 +1040,14 @@ function OptionsDialog({
onClose: () => void;
audio: AudioSettings;
}) {
+ const t = useT();
const active = OPTIONS_SECTIONS.find((s) => s.id === section) ?? OPTIONS_SECTIONS[0];
return (
e.stopPropagation()}>
- Optionen
-
+ {t("options.title")}
+
✕
@@ -1031,27 +1060,29 @@ function OptionsDialog({
onClick={() => onSectionChange(s.id)}
>
{s.icon}
-
{s.label}
+
{t(`options.section.${s.id}`)}
))}
- {active.id === "wiedergabe" ? (
+ {active.id === "anwendung" ? (
+
+ ) : active.id === "wiedergabe" ? (
) : active.id === "aufnahme" ? (
) : (
<>
-
{active.label}
-
Diese Einstellungen sind noch nicht implementiert.
+
{t(`options.section.${active.id}`)}
+
{t("options.notImplemented")}
>
)}
- OK
- Abbrechen
+ {t("options.ok")}
+ {t("options.cancel")}
@@ -1059,7 +1090,7 @@ function OptionsDialog({
);
}
-function App() {
+function AppInner() {
const [host, setHost] = useState(() => localStorage.getItem(LAST_HOST_KEY) ?? "localhost");
const [nickname, setNickname] = useState(() => localStorage.getItem(LAST_NICKNAME_KEY) ?? "Claude Code");
const [serverPassword, setServerPassword] = useState("");
@@ -1751,6 +1782,7 @@ function App() {
const outputMuted = ownClient?.outputMuted ?? false;
const displayTalkers =
selfActive && ownClient ? new Set(talkers).add(ownClient.id) : talkers;
+ const t = useT();
return (
@@ -1760,7 +1792,7 @@ function App() {
className="ts-menubar-item ts-menubar-item-active"
onClick={() => setConnectionsMenuOpen((v) => !v)}
>
- Verbindungen
+ {t("menu.connections")}
{connectionsMenuOpen && (
@@ -1773,7 +1805,7 @@ function App() {
}}
>
🟢
- Verbinden
+ {t("menu.connections.connect")}
Strg+S
🔴
- Aktuelle Verbindung trennen
+ {t("menu.connections.disconnectCurrent")}
Strg+D
❌
- Alle Verbindungen trennen
+ {t("menu.connections.disconnectAll")}
)}
@@ -1807,18 +1839,18 @@ function App() {
className="ts-menubar-item ts-menubar-item-active"
onClick={() => setFavoritesMenuOpen((v) => !v)}
>
- Favoriten
+ {t("menu.favorites")}
{favoritesMenuOpen && (
⭐
- Zu Favoriten hinzufügen
+ {t("menu.favorites.add")}
Strg+B
🗂️
- Favoriten verwalten
+ {t("menu.favorites.manage")}
{favorites.length > 0 &&
}
{favorites.map((f) => (
@@ -1838,7 +1870,7 @@ function App() {
)}
- {["Selbst", "Rechte"].map((item) => (
+ {[t("menu.self"), t("menu.rights")].map((item) => (
{item}
@@ -1848,17 +1880,17 @@ function App() {
className="ts-menubar-item ts-menubar-item-active"
onClick={() => setExtrasMenuOpen((v) => !v)}
>
- Extras
+ {t("menu.extras")}
{extrasMenuOpen && (
{[
- { icon: "🪪", label: "Identitäten", shortcut: "Strg+I" },
- { icon: "📇", label: "Kontakte", shortcut: "Strg+Umschalt+O" },
- { icon: "🔗", label: "Gesammelte URLs", shortcut: "Strg+U" },
- { icon: "📁", label: "Dateitransfers", shortcut: "Strg+T" },
- { icon: "🧑🤝🧑", label: "Freund einladen" },
- { icon: "✉️", label: "Offline Nachrichten", shortcut: "Strg+O" },
+ { icon: "🪪", label: t("menu.extras.identities"), shortcut: "Strg+I" },
+ { icon: "📇", label: t("menu.extras.contacts"), shortcut: "Strg+Umschalt+O" },
+ { icon: "🔗", label: t("menu.extras.collectedUrls"), shortcut: "Strg+U" },
+ { icon: "📁", label: t("menu.extras.fileTransfers"), shortcut: "Strg+T" },
+ { icon: "🧑🤝🧑", label: t("menu.extras.inviteFriend") },
+ { icon: "✉️", label: t("menu.extras.offlineMessages"), shortcut: "Strg+O" },
].map((item) => (
{item.icon}
@@ -1868,9 +1900,9 @@ function App() {
))}
{[
- { icon: "🗒️", label: "Whisperlisten", shortcut: "Strg+Umschalt+W" },
- { icon: "🕓", label: "Whisper Verlauf", shortcut: "Strg+Umschalt+H" },
- { icon: "📜", label: "Client Protokoll", shortcut: "Strg+L" },
+ { icon: "🗒️", label: t("menu.extras.whisperLists"), shortcut: "Strg+Umschalt+W" },
+ { icon: "🕓", label: t("menu.extras.whisperHistory"), shortcut: "Strg+Umschalt+H" },
+ { icon: "📜", label: t("menu.extras.clientLog"), shortcut: "Strg+L" },
].map((item) => (
{item.icon}
@@ -1880,10 +1912,10 @@ function App() {
))}
{[
- { icon: "🚫", label: "Bannliste", shortcut: "Strg+Umschalt+B" },
- { icon: "⚠️", label: "Beschwerdeliste", shortcut: "Strg+Umschalt+C" },
- { icon: "🔑", label: "ServerQuery Login" },
- { icon: "📄", label: "Server Protokoll", shortcut: "Strg+Umschalt+L" },
+ { icon: "🚫", label: t("menu.extras.banList"), shortcut: "Strg+Umschalt+B" },
+ { icon: "⚠️", label: t("menu.extras.complaintList"), shortcut: "Strg+Umschalt+C" },
+ { icon: "🔑", label: t("menu.extras.serverQueryLogin") },
+ { icon: "📄", label: t("menu.extras.serverLog"), shortcut: "Strg+Umschalt+L" },
].map((item) => (
{item.icon}
@@ -1893,9 +1925,9 @@ function App() {
))}
{[
- { icon: "🔴", label: "Aufnahme starten", shortcut: "Strg+Umschalt+R" },
- { icon: "🔴", label: "Start Multitrack Recording" },
- { icon: "⏹️", label: "Aufnahme beenden", shortcut: "Strg+Umschalt+T" },
+ { icon: "🔴", label: t("menu.extras.startRecording"), shortcut: "Strg+Umschalt+R" },
+ { icon: "🔴", label: t("menu.extras.startMultitrackRecording") },
+ { icon: "⏹️", label: t("menu.extras.stopRecording"), shortcut: "Strg+Umschalt+T" },
].map((item) => (
{item.icon}
@@ -1906,7 +1938,7 @@ function App() {
🟠
- Overwolf installieren
+ {t("menu.extras.installOverwolf")}
⚙️
- Optionen
+ {t("menu.extras.options")}
Alt+P
)}
-
Hilfe
+
{t("menu.help")}
@@ -1933,7 +1965,7 @@ function App() {
className={`ts-icon-button${isAway ? " ts-away-on" : ""}`}
onClick={() => sendAway(!isAway, "")}
disabled={!connected}
- title={isAway ? "Back online" : "Set away"}
+ title={isAway ? t("toolbar.backOnline") : t("toolbar.setAway")}
>
💤
@@ -1941,7 +1973,7 @@ function App() {
className="ts-icon-caret"
onClick={() => setAwayMenuOpen((v) => !v)}
disabled={!connected}
- title="Away options"
+ title={t("toolbar.awayOptions")}
>
▾
@@ -1955,7 +1987,7 @@ function App() {
}}
>
💤
-
Global abwesend setzen
+
{t("away.setGlobal")}
✎
- Abwesenheit-Status global setzen
+ {t("away.setGlobalStatus")}
{awayPresets.length > 0 &&
}
{awayPresets.map((preset) => (
@@ -1990,15 +2022,15 @@ function App() {
onClick={handleToggleMic}
title={
!micOn
- ? "Enable microphone"
+ ? t("toolbar.micEnable")
: inputMuted
- ? "Unmute microphone"
- : "Mute microphone"
+ ? t("toolbar.micUnmute")
+ : t("toolbar.micMute")
}
>
{micOn && !inputMuted ? "🎤" : "🔇"}
-
@@ -2241,7 +2273,7 @@ function App() {
: pmThreads[activeTab]?.messages.map((entry, i) => (
- {entry.fromSelf ? "You" : pmThreads[activeTab].partnerName}:
+ {entry.fromSelf ? t("chat.you") : pmThreads[activeTab].partnerName}:
{" "}
{entry.message}
@@ -2253,13 +2285,13 @@ function App() {
className={`ts-chat-tab${activeTab === "server" ? " ts-chat-tab-active" : ""}`}
onClick={() => setActiveTab("server")}
>
- Server
+ {t("chat.server")}
setActiveTab("channel")}
>
- Channel
+ {t("chat.channel")}
{Object.values(pmThreads).map((thread) => (
- Send
+ {t("chat.send")}