Skip to content

"Vibe-Trading: Your Personal Trading Agent"

test(i18n): cover German, and fix a mandate hint that lost its subject

Haozhe Wu09e0472e8122
diff --git a/frontend/src/i18n/__tests__/i18n.test.ts b/frontend/src/i18n/__tests__/i18n.test.ts
index 166adfa60..6209c991f 100644
--- a/frontend/src/i18n/__tests__/i18n.test.ts
+++ b/frontend/src/i18n/__tests__/i18n.test.ts
@@ -154,9 +154,12 @@ describe("i18n utilities", () => {
expect(isRtl("")).toBe(false);
});
- it("SUPPORTED_LANGUAGES contains all 6 registered locales", () => {
+ it("SUPPORTED_LANGUAGES lists every locale in switcher order", () => {
+ // The set is pinned against the locales directory above; this case pins
+ // the order the switcher renders, and that "en" stays first so the
+ // primary-match fallback in Layout resolves regional codes to it.
const codes = SUPPORTED_LANGUAGES.map((l) => l.code);
- expect(codes).toEqual(["en", "zh-CN", "ja", "ko", "ar", "es"]);
+ expect(codes).toEqual(["en", "zh-CN", "ja", "ko", "ar", "es", "de"]);
});
it("accepts zh-CN as an explicit supported language", async () => {
diff --git a/frontend/src/i18n/locales/de.json b/frontend/src/i18n/locales/de.json
index 20231fba2..98ea0ca8b 100644
--- a/frontend/src/i18n/locales/de.json
+++ b/frontend/src/i18n/locales/de.json
@@ -1007,7 +1007,7 @@
"expiresIn": "läuft ab in {{time}}",
"expired": "abgelaufen",
"limitsUnavailable": "Limits nicht verfügbar",
- "noActiveMandate": "Kein aktives Mandat. Agent bitten, eines vorzuschlagen, dann committed werden, bevor die Connector-Runtime gestartet wird.",
+ "noActiveMandate": "Kein aktives Mandat. Bitten Sie den Agenten, eines vorzuschlagen, und bestätigen Sie es, bevor die Connector-Runtime gestartet wird.",
"haltedControlsDisabled": "Angehalten — Runner-Steuerung deaktiviert",
"runtimeActive": "Runtime aktiv innerhalb Mandat",
"idle": "Inaktiv",