Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update error message (#21209)
ecmadaoa079bc66ac1a
diff --git a/backend/api/v1/instance_service.go b/backend/api/v1/instance_service.goindex d6ad01da3d..9f8438d674 100644--- a/backend/api/v1/instance_service.go+++ b/backend/api/v1/instance_service.go@@ -188,7 +188,7 @@ func (s *InstanceService) checkAndLogInstanceConnection(ctx context.Context, met}defer driver.Close(ctx)if err := driver.Ping(ctx); err != nil {- return newConnectionTestErrorWithCategory(connect.CodeInvalidArgument, err, "invalid datasource %s", dataSource.GetType())+ return newConnectionTestErrorWithCategory(connect.CodeInvalidArgument, err, "failed to connect to database")}return nil}()diff --git a/frontend/src/components/header/HeaderBreadcrumb.test.tsx b/frontend/src/components/header/HeaderBreadcrumb.test.tsxindex a5c6f2824d..4b28264639 100644--- a/frontend/src/components/header/HeaderBreadcrumb.test.tsx+++ b/frontend/src/components/header/HeaderBreadcrumb.test.tsx@@ -22,6 +22,10 @@ const mocks = vi.hoisted(() => ({resolve: vi.fn(({ name }: { name: string }) => ({fullPath: `/${name}`,})),+ project: {+ name: "projects/recent-project",+ title: "Recent Project",+ } as { name: string; title: string } | undefined,projectSwitchPanelProps: undefined as| { excludeDefaultProject?: boolean }| undefined,@@ -55,10 +59,7 @@ vi.mock("@/app/router", () => ({}));vi.mock("@/hooks/useAppState", () => ({- useProject: () => ({- name: "projects/recent-project",- title: "Recent Project",- }),+ useProject: () => mocks.project,useRecentVisit: () => ({record: mocks.record,}),@@ -172,6 +173,10 @@ const renderIntoContainer = (element: ReactElement) => {beforeEach(async () => {vi.clearAllMocks();+ mocks.project = {+ name: "projects/recent-project",+ title: "Recent Project",+ };mocks.projectSwitchPanelProps = undefined;mocks.workspaceList = [{@@ -217,6 +222,29 @@ describe("HeaderBreadcrumb", () => {unmount();});+ test("opens project switcher from the empty project placeholder", () => {+ mocks.project = undefined;+ const { container, render, unmount } = renderIntoContainer(+ <HeaderBreadcrumb />+ );++ render();++ const projectSelector = Array.from(+ container.querySelectorAll<HTMLButtonElement>("button")+ ).find((button) => button.textContent?.includes("Select project"));+ expect(projectSelector).not.toBeUndefined();++ act(() => {+ projectSelector?.click();+ });+ expect(+ container.querySelector('[data-testid="project-switch-panel"]')+ ).not.toBeNull();++ unmount();+ });+test("uses custom project selection when clicking the project title", () => {const onSelectProject = vi.fn();const { container, render, unmount } = renderIntoContainer(diff --git a/frontend/src/components/header/HeaderBreadcrumb.tsx b/frontend/src/components/header/HeaderBreadcrumb.tsxindex 39b3832218..ea3ac43cd1 100644--- a/frontend/src/components/header/HeaderBreadcrumb.tsx+++ b/frontend/src/components/header/HeaderBreadcrumb.tsx@@ -290,27 +290,37 @@ export function ProjectSegment({<span className="truncate max-w-48">{currentProject.title}</span></RouterLink>)- ) : (- <div className="inline-flex items-center gap-x-1.5 rounded-xs px-2 py-1 text-sm font-medium text-control">- <FolderKanban className="size-4 text-control-light shrink-0" />- <span className="truncate max-w-48 text-control-placeholder">- {t("project.select")}- </span>- </div>- )}+ ) : null}<Popover open={open} onOpenChange={setOpen}><PopoverTriggerrender={- <Button- type="button"- appearance="secondary"- aria-label={t("project.select")}- size="xs"- className="size-6 p-0 text-control-placeholder"- />+ hasProject && projectId ? (+ <Button+ type="button"+ appearance="secondary"+ aria-label={t("project.select")}+ size="xs"+ className="size-6 p-0 text-control-placeholder"+ />+ ) : (+ <Button+ type="button"+ appearance="secondary"+ size="sm"+ className="h-auto px-2 py-1 text-sm gap-x-1.5 text-control-placeholder"+ />+ )}>- <ChevronDown className="size-3.5" />+ {hasProject && projectId ? (+ <ChevronDown className="size-3.5" />+ ) : (+ <>+ <FolderKanban className="size-4 text-control-light shrink-0" />+ <span className="truncate max-w-48">{t("project.select")}</span>+ <ChevronDown className="size-3.5 shrink-0" />+ </>+ )}</PopoverTrigger><PopoverContentalign="start"diff --git a/frontend/src/components/instance/ConnectionRecovery.test.ts b/frontend/src/components/instance/ConnectionRecovery.test.tsindex d4283fbb49..8452fe55a0 100644--- a/frontend/src/components/instance/ConnectionRecovery.test.ts+++ b/frontend/src/components/instance/ConnectionRecovery.test.ts@@ -1,9 +1,33 @@import { readFileSync } from "node:fs";import { join } from "node:path";-import { describe, expect, test } from "vitest";-import { normalizeConnectionFailureCategory } from "./ConnectionRecovery";+import { act, createElement } from "react";+import { createRoot } from "react-dom/client";+import { beforeEach, describe, expect, test, vi } from "vitest";+import {+ ConnectionRecovery,+ normalizeConnectionFailureCategory,+} from "./ConnectionRecovery";++const mocks = vi.hoisted(() => ({ isSaaSMode: false }));++vi.mock("react-i18next", () => ({+ useTranslation: () => ({ t: (key: string) => key }),+}));++vi.mock("@/stores/app", () => ({+ useAppStore: (selector: (state: { isSaaSMode: () => boolean }) => unknown) =>+ selector({ isSaaSMode: () => mocks.isSaaSMode }),+}));++(+ globalThis as { IS_REACT_ACT_ENVIRONMENT?: boolean }+).IS_REACT_ACT_ENVIRONMENT = true;describe("ConnectionRecovery", () => {+ beforeEach(() => {+ mocks.isSaaSMode = false;+ });+test("normalizes backend connection failure categories", () => {expect(normalizeConnectionFailureCategory("auth_failed")).toBe("auth_failed"@@ -60,7 +84,7 @@ describe("ConnectionRecovery", () => {);expect(source).toContain(- 'href="https://docs.bytebase.com/get-started/connect/overview?source=console"'+ '"https://docs.bytebase.com/get-started/connect/overview?source=console"');expect(source).toContain('target="_blank"');expect(source).toContain('rel="noreferrer"');@@ -68,4 +92,53 @@ describe("ConnectionRecovery", () => {expect(enUS).not.toContain("Check Bytebase backend logs");expect(enUS).not.toContain("Review required connection fields");});++ test("shows Cloud-specific network recovery in SaaS mode", async () => {+ mocks.isSaaSMode = true;+ const container = document.createElement("div");+ const root = createRoot(container);++ await act(async () => {+ root.render(+ createElement(ConnectionRecovery, { category: "network_unreachable" })+ );+ });++ expect(container.textContent).toContain(+ "instance.connection-recovery.network.description-saas"+ );+ expect(container.textContent).toContain(+ "instance.connection-recovery.network.steps.firewall-saas"+ );+ expect(container.querySelector("a")).toHaveAttribute(+ "href",+ "https://docs.bytebase.com/get-started/cloud#prerequisites"+ );++ act(() => root.unmount());+ });++ test("shows deployment-specific network recovery when self-hosted", async () => {+ const container = document.createElement("div");+ const root = createRoot(container);++ await act(async () => {+ root.render(+ createElement(ConnectionRecovery, { category: "network_unreachable" })+ );+ });++ expect(container.textContent).toContain(+ "instance.connection-recovery.network.description-self-hosted"+ );+ expect(container.textContent).toContain(+ "instance.connection-recovery.network.steps.firewall-self-hosted"+ );+ expect(container.querySelector("a")).toHaveAttribute(+ "href",+ "https://docs.bytebase.com/get-started/connect/overview?source=console"+ );++ act(() => root.unmount());+ });});diff --git a/frontend/src/components/instance/ConnectionRecovery.tsx b/frontend/src/components/instance/ConnectionRecovery.tsxindex d3186a415f..cbc18f0298 100644--- a/frontend/src/components/instance/ConnectionRecovery.tsx+++ b/frontend/src/components/instance/ConnectionRecovery.tsx@@ -1,6 +1,7 @@import { ExternalLink } from "lucide-react";import { useTranslation } from "react-i18next";import { Alert } from "@/components/ui/alert";+import { useAppStore } from "@/stores/app";export type ConnectionFailureCategory =| "auth_failed"@@ -42,6 +43,7 @@ export function ConnectionRecovery({className?: string;}>) {const { t } = useTranslation();+ const isSaaSMode = useAppStore((s) => s.isSaaSMode());const recovery = {auth_failed: {title: t("instance.connection-recovery.auth.title"),@@ -54,10 +56,16 @@ export function ConnectionRecovery({},network_unreachable: {title: t("instance.connection-recovery.network.title"),- description: t("instance.connection-recovery.network.description"),+ description: isSaaSMode+ ? t("instance.connection-recovery.network.description-saas")+ : t("instance.connection-recovery.network.description-self-hosted"),steps: [t("instance.connection-recovery.network.steps.address"),- t("instance.connection-recovery.network.steps.firewall"),+ isSaaSMode+ ? t("instance.connection-recovery.network.steps.firewall-saas")+ : t(+ "instance.connection-recovery.network.steps.firewall-self-hosted"+ ),t("instance.connection-recovery.network.steps.private-network"),],},@@ -72,7 +80,9 @@ export function ConnectionRecovery({},timeout: {title: t("instance.connection-recovery.timeout.title"),- description: t("instance.connection-recovery.timeout.description"),+ description: isSaaSMode+ ? t("instance.connection-recovery.timeout.description-saas")+ : t("instance.connection-recovery.timeout.description-self-hosted"),steps: [t("instance.connection-recovery.timeout.steps.load"),t("instance.connection-recovery.timeout.steps.retry"),@@ -103,7 +113,9 @@ export function ConnectionRecovery({steps: [t("instance.connection-recovery.unknown.steps.fields"),t("instance.connection-recovery.unknown.steps.help"),- t("instance.connection-recovery.unknown.steps.logs"),+ isSaaSMode+ ? t("instance.connection-recovery.unknown.steps.logs-saas")+ : t("instance.connection-recovery.unknown.steps.logs-self-hosted"),],},}[category];@@ -122,7 +134,11 @@ export function ConnectionRecovery({</ul><aclassName="mt-3 inline-flex items-center gap-x-1 text-sm font-medium underline underline-offset-2"- href="https://docs.bytebase.com/get-started/connect/overview?source=console"+ href={+ isSaaSMode+ ? "https://docs.bytebase.com/get-started/cloud#prerequisites"+ : "https://docs.bytebase.com/get-started/connect/overview?source=console"+ }target="_blank"rel="noreferrer">diff --git a/frontend/src/components/instance/InstanceFormBody.i18n.test.ts b/frontend/src/components/instance/InstanceFormBody.i18n.test.tsindex f5a0646b61..4e61dc0e37 100644--- a/frontend/src/components/instance/InstanceFormBody.i18n.test.ts+++ b/frontend/src/components/instance/InstanceFormBody.i18n.test.ts@@ -35,8 +35,35 @@ describe("Instance form locale interpolation", () => {expect(i18n.t("instance.sentence.host.none-snowflake")).not.toContain("{");+ expect(i18n.exists("instance.sentence.host.saas")).toBe(true);+ expect(+ i18n.exists("instance.failed-to-connect-instance-saas-local-host")+ ).toBe(true);+ expect(+ i18n.exists(+ "instance.connection-recovery.network.description-self-hosted"+ )+ ).toBe(true);+ expect(+ i18n.exists("instance.connection-recovery.network.description-saas")+ ).toBe(true);expect(i18n.t("instance.sentence.proxy.snowflake")).toContain("@");expect(i18n.t("instance.sentence.proxy.snowflake")).not.toContain("{");});++ test("uses concise English connection status messages", () => {+ expect(enUS.instance["failed-to-connect-instance"]).toBe(+ "Connection test failed."+ );+ expect(enUS.instance["successfully-connected-instance"]).toBe(+ "Connection successful."+ );+ expect(enUS.instance["unable-to-connect"]).toContain(+ "Review the guidance above, or continue"+ );+ expect(enUS.instance.sentence["firewall-info"]).toBe(+ "Allowlist the Bytebase Cloud IP in your database firewall."+ );+ });});diff --git a/frontend/src/components/instance/InstanceFormBody.test.ts b/frontend/src/components/instance/InstanceFormBody.test.tsindex 9fb6912a06..1ed93ab6e3 100644--- a/frontend/src/components/instance/InstanceFormBody.test.ts+++ b/frontend/src/components/instance/InstanceFormBody.test.ts@@ -174,6 +174,27 @@ describe("InstanceFormBody", () => {);});+ test("keeps Docker-only host suggestions out of Bytebase Cloud", () => {+ const source = readFileSync(+ join(process.cwd(), "src/components/instance/InstanceFormBody.tsx"),+ "utf-8"+ );++ expect(source).toContain("if (!updated.host && !isSaaSMode)");+ expect(source).toContain('t("instance.sentence.host.saas")');+ expect(source).toContain('t("instance.sentence.host.none-snowflake")');+ });++ test("uses the localized testing label", () => {+ const source = readFileSync(+ join(process.cwd(), "src/components/instance/InstanceFormBody.tsx"),+ "utf-8"+ );++ expect(source).toContain('t("instance.testing-connection")');+ expect(source).not.toContain('`${t("instance.test-connection")}...`');+ });+test("shows connection recovery for explicit test connection failures", () => {const source = readFileSync(join(process.cwd(), "src/components/instance/InstanceFormBody.tsx"),diff --git a/frontend/src/components/instance/InstanceFormBody.tsx b/frontend/src/components/instance/InstanceFormBody.tsxindex 431d8b939b..c1354c95a1 100644--- a/frontend/src/components/instance/InstanceFormBody.tsx+++ b/frontend/src/components/instance/InstanceFormBody.tsx@@ -981,7 +981,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {break;}default: {- if (!updated.host) {+ if (!updated.host && !isSaaSMode) {updated.host = isDev() ? "127.0.0.1" : "host.docker.internal";}break;@@ -993,7 +993,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {});setBasicInfo((prev) => ({ ...prev, engine }));},- [resetDataSource, setDataSourceEditState, setBasicInfo]+ [resetDataSource, setDataSourceEditState, setBasicInfo, isSaaSMode]);const handleSelectInstanceEngine = useCallback(@@ -1539,7 +1539,9 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {placeholder={basicInfo.engine === Engine.SNOWFLAKE? t("instance.your-snowflake-account-locator")- : t("instance.sentence.host.none-snowflake")+ : isSaaSMode+ ? t("instance.sentence.host.saas")+ : t("instance.sentence.host.none-snowflake")}className="mt-1 w-full"disabled={!allowEdit}@@ -1809,7 +1811,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {}}>{state.isTestingConnection- ? `${t("instance.test-connection")}...`+ ? t("instance.testing-connection"): t("instance.test-connection")}</Button>{testConnectionFailure && (diff --git a/frontend/src/components/instance/InstanceFormButtons.test.tsx b/frontend/src/components/instance/InstanceFormButtons.test.tsxindex 27f19cf3ec..93223b234d 100644--- a/frontend/src/components/instance/InstanceFormButtons.test.tsx+++ b/frontend/src/components/instance/InstanceFormButtons.test.tsx@@ -62,6 +62,7 @@ vi.mock("@/app/analytics/provider", () => ({vi.mock("@/stores/app", () => {const appState = {hasFeature: () => true,+ isSaaSMode: () => false,createInstance: mocks.createInstance,fetchDatabases: mocks.fetchDatabases,batchUpdateDatabases: mocks.batchUpdateDatabases,@@ -463,6 +464,10 @@ describe("InstanceFormButtons", () => {expect(container.textContent).toContain("instance.connection-recovery.tls.description");+ expect(container.textContent).toContain(+ "instance.failed-to-connect-instance"+ );+ expect(container.textContent).not.toContain("common.warning");expect(context.emitShowConnectionOptions).not.toHaveBeenCalled();expect(mocks.createInstance).not.toHaveBeenCalled();diff --git a/frontend/src/components/instance/InstanceFormButtons.tsx b/frontend/src/components/instance/InstanceFormButtons.tsxindex d7b7450488..10926e6850 100644--- a/frontend/src/components/instance/InstanceFormButtons.tsx+++ b/frontend/src/components/instance/InstanceFormButtons.tsx@@ -534,7 +534,9 @@ export function InstanceFormButtons({}}><AlertDialogContent className="max-w-2xl">- <AlertDialogTitle>{t("common.warning")}</AlertDialogTitle>+ <AlertDialogTitle>+ {t("instance.failed-to-connect-instance")}+ </AlertDialogTitle><ConnectionRecoverycategory={connectionFailureDialogState.failureCategory}className="my-2"diff --git a/frontend/src/components/instance/InstanceFormContext.test.tsx b/frontend/src/components/instance/InstanceFormContext.test.tsxindex d3e0294597..287970d0e6 100644--- a/frontend/src/components/instance/InstanceFormContext.test.tsx+++ b/frontend/src/components/instance/InstanceFormContext.test.tsx@@ -24,6 +24,9 @@ import {const mocks = vi.hoisted(() => ({hasInstancePermission: vi.fn(() => true),+ pushNotification: vi.fn(),+ createInstance: vi.fn(),+ isSaaSMode: false,}));vi.mock("./permission", () => ({@@ -65,7 +68,7 @@ vi.mock("@/types", () => ({}));vi.mock("@/stores", () => ({- pushNotification: vi.fn(),+ pushNotification: mocks.pushNotification,}));let mockEnvironmentList: { id: string; name: string }[] = [];@@ -73,13 +76,14 @@ let mockEnvironmentList: { id: string; name: string }[] = [];vi.mock("@/stores/app", () => {const appState = () => ({createDataSource: vi.fn(),- createInstance: vi.fn(),+ createInstance: mocks.createInstance,updateDataSource: vi.fn(),getEnvironmentByName: (name: string) => ({ name }),hasInstanceFeature: () => false,instanceLicenseCount: () => 1,activatedInstanceCount: () => 0,currentPlan: () => 1,+ isSaaSMode: () => mocks.isSaaSMode,environmentList: mockEnvironmentList,});return {@@ -158,6 +162,20 @@ const Probe = () => {);};+const ConnectionProbe = ({ host }: { host: string }) => {+ const ctx = useInstanceFormContext();+ return (+ <button+ type="button"+ onClick={async () => {+ await ctx.testConnection({ ...ctx.adminDataSource, host });+ }}+ >+ Test+ </button>+ );+};+const renderIntoContainer = () => {const container = document.createElement("div");const root = createRoot(container);@@ -181,6 +199,8 @@ describe("InstanceFormProvider", () => {beforeEach(() => {vi.clearAllMocks();mocks.hasInstancePermission.mockReturnValue(true);+ mocks.isSaaSMode = false;+ mocks.createInstance.mockResolvedValue(create(InstanceSchema, {}));mockEnvironmentList = [];vi.useRealTimers();});@@ -223,6 +243,66 @@ describe("InstanceFormProvider", () => {harness.unmount();});+ test("explains local-only hosts in Bytebase Cloud without Docker advice", async () => {+ mocks.isSaaSMode = true;+ mocks.createInstance.mockRejectedValue(new Error("connection refused"));+ const harness = renderIntoContainer();++ await harness.render(+ <InstanceFormProvider>+ <ConnectionProbe host="127.1.2.3" />+ </InstanceFormProvider>+ );+ await act(async () => {+ (harness.container.firstElementChild as HTMLButtonElement).click();+ await Promise.resolve();+ await Promise.resolve();+ });++ expect(mocks.pushNotification).toHaveBeenCalledWith(+ expect.objectContaining({+ description: expect.stringContaining(+ "instance.failed-to-connect-instance-saas-local-host"+ ),+ })+ );+ expect(mocks.pushNotification).not.toHaveBeenCalledWith(+ expect.objectContaining({+ description: expect.stringContaining(+ "instance.failed-to-connect-instance-localhost"+ ),+ })+ );++ harness.unmount();+ });++ test("keeps Docker host advice for self-hosted local connections", async () => {+ mocks.createInstance.mockRejectedValue(new Error("connection refused"));+ const harness = renderIntoContainer();++ await harness.render(+ <InstanceFormProvider>+ <ConnectionProbe host="0.0.0.0" />+ </InstanceFormProvider>+ );+ await act(async () => {+ (harness.container.firstElementChild as HTMLButtonElement).click();+ await Promise.resolve();+ await Promise.resolve();+ });++ expect(mocks.pushNotification).toHaveBeenCalledWith(+ expect.objectContaining({+ description: expect.stringContaining(+ "instance.failed-to-connect-instance-localhost"+ ),+ })+ );++ harness.unmount();+ });+test("refreshes form state when an unknown instance is replaced by the fetched instance", async () => {const fetchedInstance = create(InstanceSchema, {name: "instances/prod",diff --git a/frontend/src/components/instance/InstanceFormContext.tsx b/frontend/src/components/instance/InstanceFormContext.tsxindex e893278604..91309a6632 100644--- a/frontend/src/components/instance/InstanceFormContext.tsx+++ b/frontend/src/components/instance/InstanceFormContext.tsx@@ -61,6 +61,17 @@ export type LocalState = {isRequesting: boolean;};+const localConnectionHosts = new Set([+ "localhost",+ "0.0.0.0",+ "::1",+ "[::1]",+ "host.docker.internal",+]);++const isLocalConnectionHost = (host: string) =>+ localConnectionHosts.has(host) || host.startsWith("127.");+type TestConnectionResult = {success: boolean;message: string;@@ -153,6 +164,7 @@ export function InstanceFormProvider({}) {const { t } = useTranslation();const environmentList = useAppStore((s) => s.environmentList);+ const isSaaSMode = useAppStore((s) => s.isSaaSMode());const [state, setState] = useState<LocalState>(() => ({editingDataSourceId: instance?.dataSources.find(@@ -529,9 +541,21 @@ export function InstanceFormProvider({? err.metadata.get(connectionFailureCategoryHeader): undefined);- let error = extractGrpcErrorMessage(err);+ let error =+ err instanceof ConnectError+ ? err.rawMessage+ : extractGrpcErrorMessage(err);if (!silent) {- if (host === "localhost" || host === "127.0.0.1") {+ const normalizedHost = host.trim().toLowerCase();+ if (isSaaSMode && isLocalConnectionHost(normalizedHost)) {+ error = `${error}\n\n${t(+ "instance.failed-to-connect-instance-saas-local-host",+ { host }+ )}`;+ } else if (+ isLocalConnectionHost(normalizedHost) &&+ normalizedHost !== "host.docker.internal"+ ) {error = `${error}\n\n${t("instance.failed-to-connect-instance-localhost")}`;}pushNotification({@@ -604,7 +628,15 @@ export function InstanceFormProvider({}}},- [isCreating, basicInfo, instance, extractDataSourceFromEdit, parent, t]+ [+ isCreating,+ basicInfo,+ instance,+ extractDataSourceFromEdit,+ parent,+ isSaaSMode,+ t,+ ]);// Debounced valueChanged to avoid expensive deep comparison on every keystroke.diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 97ef6cf76a..b19bef61d8 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -982,10 +982,12 @@},"docs": "Open connection guide","network": {- "description": "Confirm the host and port are reachable from Bytebase Cloud. Check firewall rules, allowlists, proxies, tunnels, and whether the database only accepts private network traffic.",+ "description-saas": "Confirm the host and port are reachable from Bytebase Cloud. Check firewall rules, allowlists, proxies, tunnels, and whether the database only accepts private network traffic.",+ "description-self-hosted": "Confirm the host and port are reachable from your Bytebase deployment. Check firewall rules, network routing, proxies, tunnels, and whether the database only accepts traffic from another network.","steps": {"address": "Verify the host or socket and port match the database endpoint.",- "firewall": "If you use Bytebase Cloud, allowlist the required Cloud IP in your database firewall.",+ "firewall-saas": "Allowlist the Bytebase Cloud IP in your database firewall.",+ "firewall-self-hosted": "Allow connections from the network where Bytebase is deployed.","private-network": "For a private database, configure VPN, private networking, or an SSH tunnel first."},"title": "Check network reachability"@@ -1000,7 +1002,8 @@"title": "Check database permissions"},"timeout": {- "description": "The database did not respond in time. Check firewall rules, port settings, network routing, and whether the database allows connections from Bytebase Cloud.",+ "description-saas": "The database did not respond in time. Check firewall rules, port settings, network routing, and whether the database allows connections from Bytebase Cloud.",+ "description-self-hosted": "The database did not respond in time. Check firewall rules, port settings, network routing, and whether the database allows connections from your Bytebase deployment.","steps": {"load": "Confirm the database is online and accepts new connections.","retry": "If the database is behind a firewall, finish the allowlist or tunnel setup before retrying.",@@ -1022,7 +1025,8 @@"steps": {"fields": "Check host, port, username, password or secret source, and SSL/TLS mode.","help": "If your database is private, configure VPN, private networking, or an SSH tunnel before retrying.",- "logs": "If the database has firewall rules, allow Bytebase Cloud or your deployed Bytebase network to connect."+ "logs-saas": "If the database has firewall rules, allow Bytebase Cloud to connect.",+ "logs-self-hosted": "If the database has firewall rules, allow connections from the network where Bytebase is deployed."},"title": "Review connection settings"},@@ -1087,8 +1091,9 @@"vault-tls-config": "Vault TLS Configuration (Optional)","vault-url": "Vault URL"},- "failed-to-connect-instance": "Failed to connect instance.",- "failed-to-connect-instance-localhost": "If you run Bytebase with Docker, please try \"host.docker.internal\" for the host address.",+ "failed-to-connect-instance": "Connection test failed.",+ "failed-to-connect-instance-localhost": "This address points to the Bytebase host. If the database runs on the Docker host, try \"host.docker.internal\" as the host address.",+ "failed-to-connect-instance-saas-local-host": "\"{{host}}\" is a local-only address that Bytebase Cloud cannot use to reach your database. Enter a database hostname or IP address reachable from Bytebase Cloud.","filter-instance-name": "Filter instance name","find-gcp-project-id": "To find GCP Project ID, see","find-gcp-project-id-and-instance-id": "To find GCP Project ID and instance ID, see",@@ -1258,7 +1263,7 @@"template": "Below is an example to create user '{{user}}' with password {{password}} for {{warehouse}} and grant the user with the needed privileges."}},- "firewall-info": "If you use inbound firewall rules for your database instance, please refer to Bytebase Cloud connection instruction.",+ "firewall-info": "Allowlist the Bytebase Cloud IP in your database firewall.","google-cloud-sql": {"instance-name": "Instance Connection Name","instance-name-tips": "The instance connection name should look like {{instance}}.",@@ -1270,7 +1275,8 @@}},"host": {- "none-snowflake": "e.g. host.docker.internal | host ip | local socket"+ "none-snowflake": "e.g. host.docker.internal | host IP | local socket",+ "saas": "e.g. db.example.com | database IP"},"proxy": {"snowflake": "For proxy server, append @PROXY_HOST and specify PROXY_PORT in the port"@@ -1279,7 +1285,7 @@"show-how-to-create": "Show how to create","snowflake-web-console": "Snowflake Web Console","successfully-archived-instance": "Successfully archived the instance '{{0}}'.",- "successfully-connected-instance": "Successfully connected instance.",+ "successfully-connected-instance": "Connection successful.","successfully-created-instance-createdinstance-name": "Successfully created instance '{{0}}'.","successfully-restored-instance": "Successfully restored the instance '{{0}}'.","successfully-updated-instance-instance-name": "Successfully updated instance '{{0}}'.",@@ -1302,7 +1308,7 @@"testing-connection": "Testing Connection...","token-write-only": "YOUR_TOKEN - write only","type-or-paste-credentials-write-only": "Type or paste CREDENTIALS - write only",- "unable-to-connect": "Bytebase is unable to connect the instance. We recommend you to review the connection info again. But it's OK to ignore this warning for now. You can still fix the connection info from the instance detail page after creation.\n\nError detail: {{0}}",+ "unable-to-connect": "Bytebase couldn't connect with these settings. Review the guidance above, or continue and update the connection later.\n\nTechnical details: {{0}}","users": "Users","your-snowflake-account-locator": "Your Snowflake account locator"},diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex fd0f7e54ba..3c3900ca34 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -982,10 +982,12 @@},"docs": "Abrir guía de conexión","network": {- "description": "Confirma que el host y el puerto sean accesibles desde Bytebase Cloud. Revisa reglas de firewall, listas de permitidos, proxies, túneles y si la base de datos solo acepta tráfico de red privada.",+ "description-saas": "Confirma que el host y el puerto sean accesibles desde Bytebase Cloud. Revisa reglas de firewall, listas de permitidos, proxies, túneles y si la base de datos solo acepta tráfico de red privada.",+ "description-self-hosted": "Confirma que el host y el puerto sean accesibles desde tu despliegue de Bytebase. Revisa el firewall, las rutas de red, los proxies, los túneles y si la base de datos solo acepta tráfico de otra red.","steps": {"address": "Verifica que el host o socket y el puerto coincidan con el endpoint de la base de datos.",- "firewall": "Si usas Bytebase Cloud, agrega la IP requerida de Cloud a la lista permitida del firewall de la base de datos.",+ "firewall-saas": "Agrega la IP de Bytebase Cloud a la lista permitida del firewall de la base de datos.",+ "firewall-self-hosted": "Permite conexiones desde la red donde está desplegado Bytebase.","private-network": "Para una base de datos privada, configura primero VPN, red privada o túnel SSH."},"title": "Revisar alcance de red"@@ -1000,7 +1002,8 @@"title": "Revisar permisos de base de datos"},"timeout": {- "description": "La base de datos no respondió a tiempo. Revisa reglas de firewall, configuración de puertos, rutas de red y si la base de datos permite conexiones desde Bytebase Cloud.",+ "description-saas": "La base de datos no respondió a tiempo. Revisa reglas de firewall, configuración de puertos, rutas de red y si la base de datos permite conexiones desde Bytebase Cloud.",+ "description-self-hosted": "La base de datos no respondió a tiempo. Revisa las reglas de firewall, los puertos, las rutas de red y si la base de datos permite conexiones desde tu despliegue de Bytebase.","steps": {"load": "Confirma que la base de datos esté en línea y acepte nuevas conexiones.","retry": "Si la base de datos está detrás de un firewall, completa primero la lista permitida o el túnel.",@@ -1022,7 +1025,8 @@"steps": {"fields": "Revisa host, puerto, usuario, contraseña o fuente de secreto y modo SSL/TLS.","help": "Si la base de datos es privada, configura VPN, red privada o túnel SSH antes de reintentar.",- "logs": "Si la base de datos tiene reglas de firewall, permite conexiones desde Bytebase Cloud o la red donde está desplegado Bytebase."+ "logs-saas": "Si la base de datos tiene reglas de firewall, permite conexiones desde Bytebase Cloud.",+ "logs-self-hosted": "Si la base de datos tiene reglas de firewall, permite conexiones desde la red donde está desplegado Bytebase."},"title": "Revisar configuración de conexión"},@@ -1087,8 +1091,9 @@"vault-tls-config": "Configuración TLS de Vault (opcional)","vault-url": "URL de Vault"},- "failed-to-connect-instance": "Error al conectar la instancia.",- "failed-to-connect-instance-localhost": "Si ejecuta Bytebase con Docker, intente \"host.docker.internal\" para la dirección del host.",+ "failed-to-connect-instance": "La prueba de conexión falló.",+ "failed-to-connect-instance-localhost": "Esta dirección apunta al host de Bytebase. Si la base de datos se ejecuta en el host de Docker, prueba \"host.docker.internal\" como dirección del host.",+ "failed-to-connect-instance-saas-local-host": "\"{{host}}\" es una dirección local que Bytebase Cloud no puede usar para acceder a tu base de datos. Introduce un nombre de host o una dirección IP accesible desde Bytebase Cloud.","filter-instance-name": "Filtrar nombre de instancia","find-gcp-project-id": "Para encontrar el ID del proyecto de GCP, consulta","find-gcp-project-id-and-instance-id": "Para encontrar el ID de proyecto y el ID de instancia de GCP, consulte",@@ -1258,7 +1263,7 @@"template": "A continuación se muestra un ejemplo para crear el usuario '{{user}}' con la contraseña {{password}} para {{warehouse}} y otorgar al usuario los privilegios necesarios."}},- "firewall-info": "Si usa reglas de firewall entrante para su instancia de base de datos, consulte la instrucción de conexión de Bytebase Cloud.",+ "firewall-info": "Agrega la IP de Bytebase Cloud a la lista permitida del firewall de la base de datos.","google-cloud-sql": {"instance-name": "Nombre de conexión de instancia","instance-name-tips": "El nombre de la conexión de la instancia debería ser {{instance}}.",@@ -1270,7 +1275,8 @@}},"host": {- "none-snowflake": "por ejemplo, host.docker.internal | host ip | local socket"+ "none-snowflake": "por ejemplo, host.docker.internal | IP del host | socket local",+ "saas": "por ejemplo, db.example.com | IP de la base de datos"},"proxy": {"snowflake": "Para el servidor proxy, agregue @PROXY_HOST y especifique PROXY_PORT en el puerto"@@ -1279,7 +1285,7 @@"show-how-to-create": "Mostrar cómo crear","snowflake-web-console": "Consola web de Snowflake","successfully-archived-instance": "Se archivó exitosamente la instancia '{{0}}'.",- "successfully-connected-instance": "Instancia conectada correctamente.",+ "successfully-connected-instance": "Conexión correcta.","successfully-created-instance-createdinstance-name": "Se ha creado correctamente la instancia '{{0}}'.","successfully-restored-instance": "Se restauró exitosamente la instancia '{{0}}'.","successfully-updated-instance-instance-name": "Se ha actualizado correctamente la instancia '{{0}}'.",@@ -1302,7 +1308,7 @@"testing-connection": "Probando conexión...","token-write-only": "TU_TOKEN - solo escritura","type-or-paste-credentials-write-only": "Escriba o pegue las CREDENCIALES - solo escritura",- "unable-to-connect": "Bytebase no puede conectar la instancia. Le recomendamos que revise la información de conexión nuevamente. Pero está bien ignorar esta advertencia por ahora. Aún puede solucionar la información de conexión desde la página de detalles de la instancia después de la creación.\n\nDetalle del error: {{0}}",+ "unable-to-connect": "Bytebase no pudo conectarse con esta configuración. Revisa las indicaciones anteriores o continúa y actualiza la conexión más tarde.\n\nDetalles técnicos: {{0}}","users": "Usuarios","your-snowflake-account-locator": "Su localizador de cuentas Snowflake"},diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 4bd5b323b0..15241dc0e5 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -982,10 +982,12 @@},"docs": "接続ガイドを開く","network": {- "description": "ホストとポートが Bytebase Cloud から到達可能か確認してください。ファイアウォールルール、許可リスト、プロキシ、トンネル、およびデータベースがプライベートネットワーク接続のみを許可していないかを確認してください。",+ "description-saas": "ホストとポートが Bytebase Cloud から到達可能か確認してください。ファイアウォールルール、許可リスト、プロキシ、トンネル、およびデータベースがプライベートネットワーク接続のみを許可していないかを確認してください。",+ "description-self-hosted": "ホストとポートが Bytebase のデプロイ環境から到達可能か確認してください。ファイアウォールルール、ネットワークルーティング、プロキシ、トンネル、およびデータベースが別のネットワークからの通信のみを許可していないかを確認してください。","steps": {"address": "ホストまたはソケットとポートがデータベースエンドポイントと一致していることを確認してください。",- "firewall": "Bytebase Cloud を使用する場合は、必要な Cloud IP をデータベースファイアウォールの許可リストに追加してください。",+ "firewall-saas": "Bytebase Cloud の IP をデータベースファイアウォールの許可リストに追加してください。",+ "firewall-self-hosted": "Bytebase がデプロイされているネットワークからの接続を許可してください。","private-network": "プライベートデータベースの場合は、VPN、プライベートネットワーク、または SSH トンネルを先に設定してください。"},"title": "ネットワーク到達性を確認"@@ -1000,7 +1002,8 @@"title": "データベース権限を確認"},"timeout": {- "description": "データベースが時間内に応答しませんでした。ファイアウォールルール、ポート設定、ネットワークルーティング、および Bytebase Cloud からの接続が許可されているかを確認してください。",+ "description-saas": "データベースが時間内に応答しませんでした。ファイアウォールルール、ポート設定、ネットワークルーティング、および Bytebase Cloud からの接続が許可されているかを確認してください。",+ "description-self-hosted": "データベースが時間内に応答しませんでした。ファイアウォールルール、ポート設定、ネットワークルーティング、および Bytebase のデプロイ環境からの接続が許可されているかを確認してください。","steps": {"load": "データベースがオンラインで、新しい接続を受け付けていることを確認してください。","retry": "データベースがファイアウォールの背後にある場合は、許可リストまたはトンネル設定を完了してから再試行してください。",@@ -1022,7 +1025,8 @@"steps": {"fields": "ホスト、ポート、ユーザー名、パスワードまたはシークレットソース、SSL/TLS モードを確認してください。","help": "データベースがプライベートの場合は、VPN、プライベートネットワーク、または SSH トンネルを設定してから再試行してください。",- "logs": "データベースにファイアウォールルールがある場合は、Bytebase Cloud またはデプロイ済み Bytebase ネットワークからの接続を許可してください。"+ "logs-saas": "データベースにファイアウォールルールがある場合は、Bytebase Cloud からの接続を許可してください。",+ "logs-self-hosted": "データベースにファイアウォールルールがある場合は、Bytebase がデプロイされているネットワークからの接続を許可してください。"},"title": "接続設定を確認"},@@ -1087,8 +1091,9 @@"vault-tls-config": "Vault TLS 構成 (オプション)","vault-url": "ボールトの URL"},- "failed-to-connect-instance": "インスタンスへの接続に失敗しました。",- "failed-to-connect-instance-localhost": "Docker デプロイメントを使用している場合は、ホスト アドレスとして「host.docker.internal」を使用してみてください。",+ "failed-to-connect-instance": "接続テストに失敗しました。",+ "failed-to-connect-instance-localhost": "このアドレスは Bytebase ホストを指しています。データベースが Docker ホストで実行されている場合は、ホストアドレスに「host.docker.internal」を使用してください。",+ "failed-to-connect-instance-saas-local-host": "「{{host}}」はローカル専用アドレスのため、Bytebase Cloud からデータベースへの接続には使用できません。Bytebase Cloud から到達可能なデータベースのホスト名または IP アドレスを入力してください。","filter-instance-name": "インスタンス名のフィルタリング","find-gcp-project-id": "GCP プロジェクト ID とインスタンス ID を表示するには、次を参照してください。","find-gcp-project-id-and-instance-id": "GCP プロジェクト ID の確認方法については、次を参照してください",@@ -1258,7 +1263,7 @@"template": "ユーザー {{user}}、パスワード {{password}}、ウェアハウス {{warehouse}} を作成し、必要な権限を付与する例は次のとおりです。"}},- "firewall-info": "データベースインスタンスにインバウンドファイアウォールルールを使用する場合は、ByteBase Cloud Connection命令を参照してください。",+ "firewall-info": "Bytebase Cloud の IP をデータベースファイアウォールの許可リストに追加してください。","google-cloud-sql": {"instance-name": "インスタンス接続名","instance-name-tips": "インスタンス接続名は {{instance}} である必要があります。",@@ -1270,7 +1275,8 @@}},"host": {- "none-snowflake": "たとえば、host.docker.internal | host ip | local socket"+ "none-snowflake": "例: host.docker.internal | ホスト IP | ローカルソケット",+ "saas": "例: db.example.com | データベース IP"},"proxy": {"snowflake": "プロキシ サーバーの場合は、@PROXY_HOST を追加し、ポートに PROXY_PORT を指定します。"@@ -1279,7 +1285,7 @@"show-how-to-create": "作成方法","snowflake-web-console": "スノーフレークウェブコンソール","successfully-archived-instance": "インスタンス '{{0}}' を正常にアーカイブしました。",- "successfully-connected-instance": "インスタンスに正常に接続されました。",+ "successfully-connected-instance": "接続に成功しました。","successfully-created-instance-createdinstance-name": "インスタンス '{{0}}' が正常に作成されました。","successfully-restored-instance": "インスタンス '{{0}}' を正常に復元しました。","successfully-updated-instance-instance-name": "インスタンス '{{0}}' が正常に更新されました。",@@ -1302,7 +1308,7 @@"testing-connection": "接続テスト中...","token-write-only": "YOUR_TOKEN - 書き込み専用","type-or-paste-credentials-write-only": "資格情報を入力または貼り付けます - 書き込みのみ",- "unable-to-connect": "Bytebase はインスタンスに接続できません。接続情報を再度確認することをお勧めします。ただし、今のところこの警告は無視してかまいません。作成後もインスタンスの詳細ページで接続情報を修正できます。\n\nエラーの詳細:{{0}}",+ "unable-to-connect": "この設定では Bytebase から接続できませんでした。上のガイダンスを確認するか、そのまま続行して後で接続を更新してください。\n\n技術的な詳細: {{0}}","users": "ユーザー","your-snowflake-account-locator": "Snowflake アカウント ロケーター"},diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 8837478863..680916ca67 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -982,10 +982,12 @@},"docs": "Mở hướng dẫn kết nối","network": {- "description": "Xác nhận host và port có thể truy cập từ Bytebase Cloud. Kiểm tra firewall, allowlist, proxy, tunnel và liệu cơ sở dữ liệu có chỉ nhận lưu lượng mạng riêng hay không.",+ "description-saas": "Xác nhận host và port có thể truy cập từ Bytebase Cloud. Kiểm tra firewall, allowlist, proxy, tunnel và liệu cơ sở dữ liệu có chỉ nhận lưu lượng mạng riêng hay không.",+ "description-self-hosted": "Xác nhận host và port có thể truy cập từ môi trường triển khai Bytebase. Kiểm tra firewall, định tuyến mạng, proxy, tunnel và liệu cơ sở dữ liệu có chỉ nhận lưu lượng từ mạng khác hay không.","steps": {"address": "Xác minh host hoặc socket và port khớp với endpoint cơ sở dữ liệu.",- "firewall": "Nếu dùng Bytebase Cloud, hãy thêm IP Cloud bắt buộc vào allowlist của firewall cơ sở dữ liệu.",+ "firewall-saas": "Thêm IP của Bytebase Cloud vào allowlist của firewall cơ sở dữ liệu.",+ "firewall-self-hosted": "Cho phép kết nối từ mạng nơi Bytebase được triển khai.","private-network": "Với cơ sở dữ liệu riêng tư, hãy cấu hình VPN, mạng riêng hoặc SSH tunnel trước."},"title": "Kiểm tra khả năng truy cập mạng"@@ -1000,7 +1002,8 @@"title": "Kiểm tra quyền cơ sở dữ liệu"},"timeout": {- "description": "Cơ sở dữ liệu không phản hồi kịp thời. Kiểm tra firewall, cấu hình port, định tuyến mạng và liệu cơ sở dữ liệu có cho phép kết nối từ Bytebase Cloud hay không.",+ "description-saas": "Cơ sở dữ liệu không phản hồi kịp thời. Kiểm tra firewall, cấu hình port, định tuyến mạng và liệu cơ sở dữ liệu có cho phép kết nối từ Bytebase Cloud hay không.",+ "description-self-hosted": "Cơ sở dữ liệu không phản hồi kịp thời. Kiểm tra firewall, cấu hình port, định tuyến mạng và liệu cơ sở dữ liệu có cho phép kết nối từ môi trường triển khai Bytebase hay không.","steps": {"load": "Xác nhận cơ sở dữ liệu đang online và nhận kết nối mới.","retry": "Nếu cơ sở dữ liệu nằm sau firewall, hãy hoàn tất allowlist hoặc tunnel trước khi thử lại.",@@ -1022,7 +1025,8 @@"steps": {"fields": "Kiểm tra host, port, username, password hoặc nguồn secret và chế độ SSL/TLS.","help": "Nếu cơ sở dữ liệu là riêng tư, hãy cấu hình VPN, mạng riêng hoặc SSH tunnel trước khi thử lại.",- "logs": "Nếu cơ sở dữ liệu có firewall, hãy cho phép Bytebase Cloud hoặc mạng Bytebase đã triển khai kết nối."+ "logs-saas": "Nếu cơ sở dữ liệu có firewall, hãy cho phép Bytebase Cloud kết nối.",+ "logs-self-hosted": "Nếu cơ sở dữ liệu có firewall, hãy cho phép kết nối từ mạng nơi Bytebase được triển khai."},"title": "Kiểm tra cấu hình kết nối"},@@ -1087,8 +1091,9 @@"vault-tls-config": "Cấu hình Vault TLS (Tùy chọn)","vault-url": "URL Vault"},- "failed-to-connect-instance": "Không kết nối được với phiên bản.",- "failed-to-connect-instance-localhost": "Nếu bạn chạy Bytebase bằng Docker, vui lòng thử \"host.docker.internal\" cho địa chỉ máy chủ.",+ "failed-to-connect-instance": "Kiểm tra kết nối thất bại.",+ "failed-to-connect-instance-localhost": "Địa chỉ này trỏ đến máy chủ Bytebase. Nếu cơ sở dữ liệu chạy trên máy chủ Docker, hãy thử dùng \"host.docker.internal\" làm địa chỉ host.",+ "failed-to-connect-instance-saas-local-host": "\"{{host}}\" là địa chỉ chỉ dùng cục bộ nên Bytebase Cloud không thể dùng để truy cập cơ sở dữ liệu. Hãy nhập hostname hoặc địa chỉ IP của cơ sở dữ liệu mà Bytebase Cloud có thể truy cập.","filter-instance-name": "Lọc tên phiên bản","find-gcp-project-id": "Để tìm ID dự án GCP, xem","find-gcp-project-id-and-instance-id": "Để tìm ID dự án GCP và ID phiên bản, xem",@@ -1258,7 +1263,7 @@"template": "Dưới đây là ví dụ để tạo người dùng '{{user}}' với mật khẩu {{password}} cho {{warehouse}} và cấp cho người dùng các đặc quyền cần thiết."}},- "firewall-info": "Nếu bạn sử dụng các quy tắc tường lửa gửi đến cho thể hiện cơ sở dữ liệu của mình, vui lòng tham khảo Hướng dẫn kết nối đám mây Bytebase.",+ "firewall-info": "Thêm IP của Bytebase Cloud vào allowlist của firewall cơ sở dữ liệu.","google-cloud-sql": {"instance-name": "Tên kết nối phiên bản","instance-name-tips": "Tên kết nối phiên bản phải giống như {{instance}}.",@@ -1270,7 +1275,8 @@}},"host": {- "none-snowflake": "ví dụ: host.docker.internal | địa chỉ IP máy chủ | local socket"+ "none-snowflake": "ví dụ: host.docker.internal | IP máy chủ | local socket",+ "saas": "ví dụ: db.example.com | IP cơ sở dữ liệu"},"proxy": {"snowflake": "Đối với máy chủ proxy, thêm @PROXY_HOST và chỉ định PROXY_PORT trong cổng"@@ -1279,7 +1285,7 @@"show-how-to-create": "Hiển thị cách tạo","snowflake-web-console": "Bảng điều khiển web Snowflake","successfully-archived-instance": "Đã lưu trữ thành công phiên bản '{{0}}'.",- "successfully-connected-instance": "Đã kết nối thành công với phiên bản.",+ "successfully-connected-instance": "Kết nối thành công.","successfully-created-instance-createdinstance-name": "Đã tạo thành công phiên bản '{{0}}'.","successfully-restored-instance": "Đã khôi phục thành công trường hợp '{{0}}'.","successfully-updated-instance-instance-name": "Đã cập nhật thành công phiên bản '{{0}}'.",@@ -1302,7 +1308,7 @@"testing-connection": "Đang kiểm tra kết nối...","token-write-only": "YOUR_TOKEN - chỉ ghi","type-or-paste-credentials-write-only": "Nhập hoặc dán THÔNG TIN XÁC THỰC - chỉ ghi",- "unable-to-connect": "Bytebase không thể kết nối với phiên bản. Chúng tôi khuyên bạn nên xem xét lại thông tin kết nối. Nhưng bạn có thể bỏ qua cảnh báo này ngay bây giờ. Bạn vẫn có thể sửa thông tin kết nối từ trang chi tiết phiên bản sau khi tạo.\n\nChi tiết lỗi: {{0}}",+ "unable-to-connect": "Bytebase không thể kết nối với các cài đặt này. Hãy xem hướng dẫn ở trên hoặc tiếp tục và cập nhật kết nối sau.\n\nChi tiết kỹ thuật: {{0}}","users": "Người dùng","your-snowflake-account-locator": "Định vị tài khoản Snowflake của bạn"},diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex f0a2ef2247..96f2368b7e 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -982,10 +982,12 @@},"docs": "打开连接指南","network": {- "description": "请确认 Bytebase Cloud 可以访问主机和端口。检查防火墙规则、允许列表、代理、隧道,以及数据库是否只接受私有网络流量。",+ "description-saas": "请确认 Bytebase Cloud 可以访问主机和端口。检查防火墙规则、允许列表、代理、隧道,以及数据库是否只接受私有网络流量。",+ "description-self-hosted": "请确认部署 Bytebase 的网络可以访问主机和端口。检查防火墙规则、网络路由、代理、隧道,以及数据库是否只接受来自其他网络的流量。","steps": {"address": "确认主机或 Socket、端口与数据库端点一致。",- "firewall": "如果使用 Bytebase Cloud,请在数据库防火墙中允许所需的 Cloud IP。",+ "firewall-saas": "请在数据库防火墙中将 Bytebase Cloud IP 加入允许列表。",+ "firewall-self-hosted": "允许来自 Bytebase 部署网络的连接。","private-network": "如果数据库是私有网络,请先配置 VPN、私有网络或 SSH 隧道。"},"title": "检查网络连通性"@@ -1000,7 +1002,8 @@"title": "检查数据库权限"},"timeout": {- "description": "数据库未及时响应。请检查防火墙规则、端口设置、网络路由,以及数据库是否允许来自 Bytebase Cloud 的连接。",+ "description-saas": "数据库未及时响应。请检查防火墙规则、端口设置、网络路由,以及数据库是否允许来自 Bytebase Cloud 的连接。",+ "description-self-hosted": "数据库未及时响应。请检查防火墙规则、端口设置、网络路由,以及数据库是否允许来自 Bytebase 部署网络的连接。","steps": {"load": "确认数据库在线并接受新连接。","retry": "如果数据库位于防火墙后,请先完成允许列表或隧道配置再重试。",@@ -1022,7 +1025,8 @@"steps": {"fields": "检查主机、端口、用户名、密码或密钥来源,以及 SSL/TLS 模式。","help": "如果数据库是私有网络,请先配置 VPN、私有网络或 SSH 隧道后再重试。",- "logs": "如果数据库有防火墙规则,请允许 Bytebase Cloud 或已部署的 Bytebase 网络连接。"+ "logs-saas": "如果数据库有防火墙规则,请允许 Bytebase Cloud 连接。",+ "logs-self-hosted": "如果数据库有防火墙规则,请允许来自 Bytebase 部署网络的连接。"},"title": "检查连接配置"},@@ -1087,8 +1091,9 @@"vault-tls-config": "Vault TLS 配置(可选)","vault-url": "Vault URL"},- "failed-to-connect-instance": "连接到实例失败。",- "failed-to-connect-instance-localhost": "如果您使用的 Docker 部署,请尝试使用 \"host.docker.internal\" 作为 Host 地址。",+ "failed-to-connect-instance": "连接测试失败。",+ "failed-to-connect-instance-localhost": "此地址指向 Bytebase 主机。如果数据库运行在 Docker 宿主机上,请尝试使用 \"host.docker.internal\" 作为主机地址。",+ "failed-to-connect-instance-saas-local-host": "“{{host}}”是仅限本机使用的地址,Bytebase Cloud 无法通过它访问您的数据库。请输入 Bytebase Cloud 可访问的数据库主机名或 IP 地址。","filter-instance-name": "过滤实例名称","find-gcp-project-id": "查看 GCP 项目 ID 的方法见","find-gcp-project-id-and-instance-id": "查看 GCP 项目 ID 与实例 ID 的方法见",@@ -1258,7 +1263,7 @@"template": "创建用户 {{user}},密码 {{password}},warehouse 为{{warehouse}},并授予必要权限的例子如下。"}},- "firewall-info": "如果您为数据库实例使用入站防火墙规则,请参阅 ByteBase Cloud Connection 文档。",+ "firewall-info": "请在数据库防火墙中将 Bytebase Cloud IP 加入允许列表。","google-cloud-sql": {"instance-name": "实例连接名称","instance-name-tips": "实例连接名称应为 {{instance}}。",@@ -1270,7 +1275,8 @@}},"host": {- "none-snowflake": "例如 host.docker.internal | ip | local socket"+ "none-snowflake": "例如 host.docker.internal | 主机 IP | 本地 Socket",+ "saas": "例如 db.example.com | 数据库 IP"},"proxy": {"snowflake": "对于代理服务器,加上 @PROXY_HOST,并在端口里指定 PROXY_PORT"@@ -1279,7 +1285,7 @@"show-how-to-create": "如何创建","snowflake-web-console": "Snowflake Web 控制台","successfully-archived-instance": "成功归档实例'{{0}}'。",- "successfully-connected-instance": "成功连接到实例。",+ "successfully-connected-instance": "连接成功。","successfully-created-instance-createdinstance-name": "成功创建实例'{{0}}'。","successfully-restored-instance": "已成功恢复实例“{{0}}”。","successfully-updated-instance-instance-name": "成功更新实例'{{0}}'。",@@ -1302,7 +1308,7 @@"testing-connection": "测试连接中...","token-write-only": "YOUR_TOKEN - 仅写入","type-or-paste-credentials-write-only": "输入或粘贴 CREDENTIALS - 仅写入",- "unable-to-connect": "Bytebase 无法连接到实例。我们推荐您再检查一遍连接信息。但也可以暂时忽略此警告。您在创建后仍能在实例详细页里修复连接信息。\n\n错误详情:{{0}}",+ "unable-to-connect": "Bytebase 无法使用这些设置连接数据库。请检查上方指引,或继续操作并稍后更新连接。\n\n技术详情:{{0}}","users": "用户","your-snowflake-account-locator": "您的 Snowflake 账户定位符"},