diff --git a/.dockerignore b/.dockerignore index c4e78139..ce047d29 100644 --- a/.dockerignore +++ b/.dockerignore @@ -5,7 +5,7 @@ *.md docs/ tests/ -config.json +/config.json openclaw-go *.exe tmp/ diff --git a/.gitignore b/.gitignore index 51e71237..600a2d60 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,7 @@ app browser-poc openclaw-go goclaw -config.json +/config.json prompt.md *.bk.* diff --git a/ui/web/src/components/layout/topbar.tsx b/ui/web/src/components/layout/topbar.tsx index d2117bd8..f4b654c7 100644 --- a/ui/web/src/components/layout/topbar.tsx +++ b/ui/web/src/components/layout/topbar.tsx @@ -28,10 +28,8 @@ export function Topbar() { ? () => setMobileSidebarOpen(true) : toggleSidebar; - const cycleLanguage = () => { - const idx = SUPPORTED_LANGUAGES.indexOf(language); - const next = SUPPORTED_LANGUAGES[(idx + 1) % SUPPORTED_LANGUAGES.length] as Language; - setLanguage(next); + const handleLanguageChange = (e: React.ChangeEvent) => { + setLanguage(e.target.value as Language); }; return ( @@ -68,14 +66,18 @@ export function Topbar() { )} - +
+ + +