diff --git a/webui/index.html b/webui/index.html index 92fb88c1..ca10b7d9 100644 --- a/webui/index.html +++ b/webui/index.html @@ -90,6 +90,17 @@ } catch {} })(); + nanobot + + +
+
+
+ + Loading nanobot… +
+
+
- nanobot - - -
-
-
- - Loading nanobot… -
-
-
diff --git a/webui/src/i18n/locales/pt-BR/common.json b/webui/src/i18n/locales/pt-BR/common.json index cfe23f35..e5740d49 100644 --- a/webui/src/i18n/locales/pt-BR/common.json +++ b/webui/src/i18n/locales/pt-BR/common.json @@ -165,7 +165,7 @@ "webuiDefaultAccess": "Acesso padrão", "cliAppsCatalog": "Catálogo", "cliAppsFilter": "Filtro", - "engine": "Engine", + "engine": "Motor", "logs": "Logs", "diagnostics": "Diagnóstico", "contextWindow": "Janela de contexto", @@ -588,7 +588,7 @@ "editTitle": "Editar automação", "save": "Salvar", "deleteTitle": "Excluir automação", - "deleteDescription": "Isso remove {{name}} do store de cron. As mensagens anteriores da conversa permanecem na sessão.", + "deleteDescription": "Isso remove {{name}} do armazenamento do cron. As mensagens anteriores da conversa permanecem na sessão.", "cancel": "Cancelar", "status": { "system": "Sistema", @@ -1152,4 +1152,4 @@ "absolutePathRequired": "Informe um caminho absoluto de pasta nesta máquina." } } -} \ No newline at end of file +} diff --git a/webui/src/tests/i18n.test.tsx b/webui/src/tests/i18n.test.tsx index 43e34280..d9eb54cd 100644 --- a/webui/src/tests/i18n.test.tsx +++ b/webui/src/tests/i18n.test.tsx @@ -1,3 +1,7 @@ +import { readFileSync } from "node:fs"; +import { resolve } from "node:path"; +import { runInNewContext } from "node:vm"; + import { act, render, screen, waitFor } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { describe, expect, it, vi } from "vitest"; @@ -5,7 +9,11 @@ import { describe, expect, it, vi } from "vitest"; import { LanguageSwitcher } from "@/components/LanguageSwitcher"; import { ThreadComposer } from "@/components/thread/ThreadComposer"; import { resources } from "@/i18n"; -import { LOCALE_STORAGE_KEY, resolveInitialLocale } from "@/i18n/config"; +import { + LOCALE_STORAGE_KEY, + resolveInitialLocale, + supportedLocales, +} from "@/i18n/config"; const QUICK_ACTION_KEYS = ["plan", "analyze", "brainstorm", "code", "summarize", "more"]; const IMAGE_QUICK_ACTION_KEYS = ["icon", "sticker", "poster", "product", "portrait", "edit"]; @@ -128,6 +136,46 @@ const LOCALIZED_WORKSPACE_COPY_KEYS = [ "workspace.dialog.usePath", "workspace.dialog.absolutePathRequired", ]; +const INDEX_HTML = readFileSync(resolve(process.cwd(), "index.html"), "utf8"); +const PREBOOT_SCRIPT = INDEX_HTML.match( + /