Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

fix(i18n): rebuild office scene on language switch

taoooa8292697f7b1
diff --git a/src/renderer/src/scene/office/OfficeFloor.tsx b/src/renderer/src/scene/office/OfficeFloor.tsx
index adc94c3e..a9c6aa27 100644
--- a/src/renderer/src/scene/office/OfficeFloor.tsx
+++ b/src/renderer/src/scene/office/OfficeFloor.tsx
@@ -164,7 +164,7 @@ function firstWords(prompt: string | undefined, maxWords = 6, maxChars = 42): st
}
export function OfficeFloor() {
- const { t } = useTranslation();
+ const { t, i18n } = useTranslation();
const hostRef = useRef<HTMLDivElement | null>(null);
const appRef = useRef<Application | null>(null);
const mountIdRef = useRef(0);
@@ -1741,7 +1741,7 @@ export function OfficeFloor() {
appRef.current = null;
while (host.firstChild) host.removeChild(host.firstChild);
};
- }, [officeTheme, glGeneration]);
+ }, [officeTheme, glGeneration, i18n.language]);
return (
<div