Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat(frontend): migrate /users page from Vue to React (#19829)

Danny Xuce37991400e5
diff --git a/frontend/eslint.config.mjs b/frontend/eslint.config.mjs
index 1e0574b0d7..4a38f86840 100644
--- a/frontend/eslint.config.mjs
+++ b/frontend/eslint.config.mjs
@@ -74,4 +74,12 @@ export default [
},
},
},
+ // React .tsx files use their own locale files (src/react/locales/),
+ // so disable vue-i18n missing-keys checks for them.
+ {
+ files: ["src/react/**/*.tsx"],
+ rules: {
+ "@intlify/vue-i18n/no-missing-keys": "off",
+ },
+ },
];
diff --git a/frontend/src/components/User/Settings/AADSyncDrawer.vue b/frontend/src/components/User/Settings/AADSyncDrawer.vue
deleted file mode 100644
index 7234ed06cf..0000000000
--- a/frontend/src/components/User/Settings/AADSyncDrawer.vue
+++ /dev/null
@@ -1,185 +0,0 @@
-<template>
- <Drawer :show="show" @close="$emit('close')">
- <DrawerContent
- class="w-200 max-w-[90vw] relative"
- :title="$t('settings.members.entra-sync.self')"
- >
- <template #default>
- <div class="flex flex-col gap-y-4">
- <div class="text-sm text-control-light">
- {{ $t(`settings.members.entra-sync.description`) }}
- <LearnMoreLink
- url="https://docs.bytebase.com/administration/scim/overview?source=console"
- class="ml-1"
- />
- </div>
-
- <MissingExternalURLAttention />
-
- <div class="flex flex-col gap-y-2">
- <div class="gap-x-2">
- <div class="font-medium">
- {{ $t(`settings.members.entra-sync.endpoint`) }}
- </div>
- <div class="text-sm text-gray-400">
- {{ $t(`settings.members.entra-sync.endpoint-tip`) }}
- </div>
- </div>
- <div class="flex gap-x-2">
- <NInput
- ref="scimUrlFieldRef"
- class="w-full"
- readonly
- :value="scimUrl"
- :placeholder="$t('banner.external-url')"
- @click="handleSelect(scimUrlFieldRef)"
- />
- <CopyButton
- quaternary
- :text="false"
- :size="'medium'"
- :content="scimUrl"
- :disabled="!scimUrl"
- @click="handleSelect(scimUrlFieldRef)"
- />
- </div>
- </div>
-
- <div class="flex flex-col gap-y-2">
- <div class="gap-x-2">
- <div class="font-medium">
- {{ $t(`settings.members.entra-sync.secret-token`) }}
- </div>
- <div class="text-sm text-gray-400">
- {{ $t("settings.members.entra-sync.secret-token-tip") }}
- </div>
- </div>
- <div class="flex gap-x-2">
- <NInput
- ref="scimTokenFieldRef"
- class="w-full"
- readonly
- type="password"
- :value="scimToken"
- @click="handleSelect(scimTokenFieldRef)"
- />
- <CopyButton
- quaternary
- :text="false"
- :size="'medium'"
- :content="scimToken"
- :disabled="!scimToken"
- @click="handleSelect(scimTokenFieldRef)"
- />
- </div>
- <div v-if="hasPermission">
- <NButton
- tertiary
- :type="'warning'"
- :size="'small'"
- @click="resetToken"
- >
- <template #icon>
- <ReplyIcon class="w-4" />
- </template>
- {{ $t("settings.members.entra-sync.reset-token") }}
- </NButton>
- </div>
- </div>
- </div>
- </template>
- <template #footer>
- <div class="flex flex-row items-center justify-end gap-x-2">
- <NButton @click="$emit('close')">
- {{ $t("common.cancel") }}
- </NButton>
- </div>
- </template>
- </DrawerContent>
- </Drawer>
-</template>
-
-<script setup lang="ts">
-import { create } from "@bufbuild/protobuf";
-import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
-import { ReplyIcon } from "lucide-vue-next";
-import { NButton, NInput, useDialog } from "naive-ui";
-import { computed, ref } from "vue";
-import { useI18n } from "vue-i18n";
-import LearnMoreLink from "@/components/LearnMoreLink.vue";
-import { CopyButton, Drawer, DrawerContent } from "@/components/v2";
-import { MissingExternalURLAttention } from "@/components/v2/Form";
-import {
- pushNotification,
- useActuatorV1Store,
- useSettingV1Store,
-} from "@/store";
-import { hasWorkspacePermissionV2 } from "@/utils";
-
-defineProps<{
- show: boolean;
-}>();
-
-defineEmits<{
- (event: "close"): void;
-}>();
-
-const settingV1Store = useSettingV1Store();
-const actuatorStore = useActuatorV1Store();
-const { t } = useI18n();
-const scimUrlFieldRef = ref<HTMLInputElement | null>(null);
-const scimTokenFieldRef = ref<HTMLInputElement | null>(null);
-const $dialog = useDialog();
-
-const hasPermission = computed(() =>
- hasWorkspacePermissionV2("bb.settings.setWorkspaceProfile")
-);
-
-const externalUrl = computed(() => {
- return actuatorStore.serverInfo?.externalUrl;
-});
-
-const scimUrl = computed(() => {
- if (!actuatorStore.workspaceResourceName || !externalUrl.value) {
- return "";
- }
- return `${externalUrl.value}/hook/scim/${actuatorStore.workspaceResourceName}`;
-});
-
-const scimToken = computed(() => {
- return settingV1Store.workspaceProfile.directorySyncToken;
-});
-
-const handleSelect = (component: HTMLInputElement | null) => {
- component?.select();
-};
-
-const resetToken = () => {
- $dialog.warning({
- title: t("common.warning"),
- style: "z-index: 100000",
- content: () => {
- return t("settings.members.entra-sync.reset-token-warning");
- },
- negativeText: t("common.cancel"),
- positiveText: t("common.continue-anyway"),
- closeOnEsc: true,
- maskClosable: true,
- onPositiveClick: async () => {
- await settingV1Store.updateWorkspaceProfile({
- payload: {
- directorySyncToken: "",
- },
- updateMask: create(FieldMaskSchema, {
- paths: ["value.workspace_profile.directory_sync_token"],
- }),
- });
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("common.updated"),
- });
- },
- });
-};
-</script>
diff --git a/frontend/src/components/User/Settings/CreateGroupDrawer.vue b/frontend/src/components/User/Settings/CreateGroupDrawer.vue
deleted file mode 100644
index 4574250353..0000000000
--- a/frontend/src/components/User/Settings/CreateGroupDrawer.vue
+++ /dev/null
@@ -1,334 +0,0 @@
-<template>
- <Drawer @close="$emit('close')">
- <DrawerContent
- class="w-200 max-w-[90vw] relative"
- :title="
- isCreating
- ? $t('settings.members.groups.add-group')
- : $t('settings.members.groups.update-group')
- "
- >
- <template #default>
- <div class="flex flex-col gap-y-4">
- <div class="flex flex-col gap-y-2">
- <div>
- <label class="textlabel block">
- {{ $t("settings.members.groups.form.email") }}
- <RequiredStar />
- </label>
- <span class="textinfolabel">
- {{ $t("settings.members.groups.form.email-tips") }}
- </span>
- </div>
- <EmailInput
- v-model:value="state.group.email"
- :disabled="!isCreating"
- :show-domain="true"
- />
- </div>
- <div class="flex flex-col gap-y-2">
- <label class="textlabel block">
- {{ $t("settings.members.groups.form.title") }}
- <RequiredStar />
- </label>
- <NInput
- v-model:value="state.group.title"
- :disabled="!allowEdit"
- :maxlength="200"
- />
- </div>
- <div class="flex flex-col gap-y-2">
- <label class="textlabel block">
- {{ $t("settings.members.groups.form.description") }}
- </label>
- <NInput
- v-model:value="state.group.description"
- :disabled="!allowEdit"
- :maxlength="1000"
- />
- </div>
- <div class="flex flex-col gap-y-2">
- <label class="textlabel block">
- {{ $t("settings.members.groups.form.members") }}
- </label>
- <div class="flex flex-col gap-y-2">
- <div
- v-for="(member, i) in state.group.members"
- :key="i"
- class="w-full flex items-center gap-x-3"
- >
- <UserSelect
- :value="member.member"
- :multiple="false"
- :size="'medium'"
- :disabled="!allowEdit"
- :allow-arbitrary-email="actuatorStore.isSaaSMode"
- @update:value="($event) => updateMemberEmail(i, $event as (string | undefined))"
- />
- <GroupMemberRoleSelect
- :value="member.role"
- :size="'medium'"
- :disabled="!allowEdit"
- @update:value="(role) => updateMemberRole(i, role)"
- />
- <div class="flex justify-end">
- <NButton
- quaternary
- size="tiny"
- type="error"
- :disabled="!allowEdit"
- @click="deleteMember(i)"
- >
- <template #icon>
- <Trash2Icon class="w-4 h-auto" />
- </template>
- </NButton>
- </div>
- </div>
- </div>
- <div>
- <NButton
- :disabled="!allowEdit"
- @click="addMember"
- >
- {{ $t("settings.members.add-member") }}
- </NButton>
- </div>
- </div>
- </div>
- </template>
- <template #footer>
- <div class="w-full flex justify-between items-center">
- <RemoveGroupButton
- v-if="!isCreating && allowDelete"
- quaternary
- size="small"
- :group="group!"
- @removed="$emit('removed', group!)"
- >
- <template #icon>
- <Trash2Icon class="w-4 h-auto" />
- </template>
- <template #default>
- {{ $t("common.delete") }}
- </template>
- </RemoveGroupButton>
-
- <div class="flex-1 flex flex-row items-center justify-end gap-x-2">
- <NButton @click="$emit('close')">
- {{ $t("common.cancel") }}
- </NButton>
- <NTooltip :disabled="!errorMessage">
- <template #trigger>
- <NButton
- type="primary"
- :disabled="!allowEdit || !allowConfirm"
- :loading="state.isRequesting"
- @click="tryCreateOrUpdateGroup"
- >
- {{ $t("common.confirm") }}
- </NButton>
- </template>
- <span class="w-56 text-sm">
- {{ errorMessage }}
- </span>
- </NTooltip>
- </div>
- </div>
- </template>
- </DrawerContent>
- </Drawer>
-</template>
-
-<script lang="ts" setup>
-import { create } from "@bufbuild/protobuf";
-import { cloneDeep, isEqual } from "lodash-es";
-import { Trash2Icon } from "lucide-vue-next";
-import { NButton, NInput, NTooltip } from "naive-ui";
-import { computed, reactive } from "vue";
-import { useI18n } from "vue-i18n";
-import EmailInput from "@/components/EmailInput.vue";
-import RequiredStar from "@/components/RequiredStar.vue";
-import { Drawer, DrawerContent, UserSelect } from "@/components/v2";
-import {
- pushNotification,
- useActuatorV1Store,
- useCurrentUserV1,
- useGroupStore,
-} from "@/store";
-import { extractUserEmail, groupNamePrefix } from "@/store/modules/v1/common";
-import type { Group, GroupMember } from "@/types/proto-es/v1/group_service_pb";
-import {
- GroupMember_Role,
- GroupMemberSchema,
- GroupSchema,
-} from "@/types/proto-es/v1/group_service_pb";
-import { hasWorkspacePermissionV2, isValidEmail } from "@/utils";
-import RemoveGroupButton from "./RemoveGroupButton.vue";
-import GroupMemberRoleSelect from "./UserDataTableByGroup/cells/GroupMemberRoleSelect.vue";
-
-interface LocalState {
- isRequesting: boolean;
- group: {
- email: string;
- title: string;
- description: string;
- members: GroupMember[];
- };
-}
-
-const props = defineProps<{
- group?: Group;
-}>();
-
-const emit = defineEmits<{
- (event: "close"): void;
- (event: "removed", group: Group): void;
- (event: "updated", group: Group): void;
-}>();
-
-const { t } = useI18n();
-const groupStore = useGroupStore();
-const currentUserV1 = useCurrentUserV1();
-const actuatorStore = useActuatorV1Store();
-
-const state = reactive<LocalState>({
- isRequesting: false,
- group: {
- email: props.group?.email ?? "",
- title: props.group?.title ?? "",
- description: props.group?.description ?? "",
- members: cloneDeep(
- props.group?.members ?? [
- create(GroupMemberSchema, {
- role: GroupMember_Role.OWNER,
- member: currentUserV1.value.name,
- }),
- ]
- ),
- },
-});
-
-const isCreating = computed(() => !props.group);
-
-const isGroupOwner = computed(() => {
- return (
- props.group?.members.find(
- (member) => extractUserEmail(member.member) === currentUserV1.value.email
- )?.role === GroupMember_Role.OWNER
- );
-});
-
-const allowDelete = computed(() => {
- return isGroupOwner.value || hasWorkspacePermissionV2("bb.groups.delete");
-});
-
-const allowEdit = computed(() => {
- if (!!props.group?.source) {
- // do not support edit external group manually.
- return false;
- }
- if (isGroupOwner.value) {
- return true;
- }
- return hasWorkspacePermissionV2(
- isCreating.value ? "bb.groups.create" : "bb.groups.update"
- );
-});
-
-const validGroup = computed(() => {
- const memberMap = new Map<string, GroupMember>();
- for (const member of state.group.members) {
- if (!member.member) {
- continue;
- }
- if (
- !memberMap.has(member.member) ||
- member.role === GroupMember_Role.OWNER
- ) {
- memberMap.set(member.member, member);
- }
- }
- return create(GroupSchema, {
- name: props.group
- ? props.group.name
- : `${groupNamePrefix}${state.group.email}`,
- title: state.group.title,
- description: state.group.description,
- members: [...memberMap.values()],
- });
-});
-
-const errorMessage = computed(() => {
- if (!isValidEmail(state.group.email)) {
- return "Invalid group email";
- }
- if (!state.group.title) {
- return "Title is required";
- }
- return "";
-});
-
-const allowConfirm = computed(() => {
- if (errorMessage.value) {
- return false;
- }
-
- return !isEqual(props.group, validGroup.value);
-});
-
-const addMember = () => {
- const member = create(GroupMemberSchema, {
- role:
- state.group.members.length === 0
- ? GroupMember_Role.OWNER
- : GroupMember_Role.MEMBER,
- });
- state.group.members.push(member);
-};
-
-const updateMemberEmail = (index: number, fullname: string | undefined) => {
- if (!fullname) {
- return;
- }
- state.group.members[index] = {
- ...state.group.members[index],
- member: fullname,
- };
-};
-
-const updateMemberRole = (index: number, role: GroupMember_Role) => {
- state.group.members[index] = {
- ...state.group.members[index],
- role,
- };
-};
-
-const deleteMember = (index: number) => {
- state.group.members.splice(index, 1);
-};
-
-const tryCreateOrUpdateGroup = async () => {
- state.isRequesting = true;
-
- try {
- let group;
- if (isCreating.value) {
- group = await groupStore.createGroup(validGroup.value);
- } else {
- group = await groupStore.updateGroup(validGroup.value);
- }
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: isCreating.value ? t("common.created") : t("common.updated"),
- });
- emit("close");
- if (group) {
- emit("updated", group);
- }
- } finally {
- state.isRequesting = false;
- }
-};
-</script>
diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vue
deleted file mode 100644
index 5098139621..0000000000
--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue
+++ /dev/null
@@ -1,319 +0,0 @@
-<template>
- <Drawer @close="$emit('close')">
- <DrawerContent
- class="w-[40rem] max-w-[100vw]"
- :title="
- isEditMode
- ? $t('settings.members.update-user')
- : $t('settings.members.add-user')
- "
- >
- <template #default>
- <div class="flex flex-col gap-y-6">
- <div class="flex flex-col gap-y-2">
- <label class="block text-sm font-medium leading-5 text-control">
- {{ $t("common.name") }}
- </label>
- <NInput
- v-model:value="state.user.title"
- :input-props="{ type: 'text', autocomplete: 'off' }"
- placeholder="Foo"
- :maxlength="200"
- :disabled="!allowUpdate"
- />
- </div>
-
- <div class="flex flex-col gap-y-2">
- <label class="block text-sm font-medium leading-5 text-control">
- {{ $t("common.email") }}
- <RequiredStar class="ml-0.5" />
- </label>
- <EmailInput
- v-model:value="state.user.email"
- :domain="''"
- :show-domain="false"
- :disabled="isEditMode"
- />
- </div>
-
- <PermissionGuardWrapper
- v-slot="slotProps"
- :permissions="['bb.workspaces.setIamPolicy']"
- >
- <div class="flex flex-col gap-y-2">
- <div>
- <label class="block text-sm font-medium leading-5 text-control">
- {{ $t("settings.members.table.roles") }}
- </label>
- </div>
- <RoleSelect
- v-model:value="state.roles"
- :multiple="true"
- :disabled="slotProps.disabled"
- />
- </div>
- </PermissionGuardWrapper>
-
- <div class="flex flex-col gap-y-2">
- <div>
- <label class="block text-sm font-medium leading-5 text-control">
- {{ $t("settings.profile.phone") }}
- </label>
- <span class="textinfolabel text-sm">
- {{ $t("settings.profile.phone-tips") }}
- </span>
- </div>
- <NInput
- v-model:value="state.user.phone"
- type="text"
- :input-props="{
- type: 'tel',
- autocomplete: 'new-password',
- }"
- :disabled="!allowUpdate"
- />
- </div>
-
- <UserPassword
- ref="userPasswordRef"
- v-model:password="state.user.password"
- v-model:password-confirm="state.passwordConfirm"
- :password-restriction="passwordRestrictionSetting"
- :disabled="!allowUpdate"
- />
- </div>
- </template>
- <template #footer>
- <div class="w-full flex flex-row items-center justify-end gap-x-2">
- <NButton @click="$emit('close')">
- {{ $t("common.cancel") }}
- </NButton>
-
- <PermissionGuardWrapper
- v-slot="slotProps"
- :permissions="[isEditMode ? 'bb.users.update' : 'bb.users.create']"
- >
- <NButton
- type="primary"
- :disabled="!allowConfirm || slotProps.disabled"
- :loading="state.isRequesting"
- @click="createOrUpdateUser"
- >
- {{ isEditMode ? $t("common.update") : $t("common.confirm") }}
- </NButton>
- </PermissionGuardWrapper>
- </div>
- </template>
- </DrawerContent>
- </Drawer>
-</template>
-
-<script lang="ts" setup>
-import { create } from "@bufbuild/protobuf";
-import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
-import { cloneDeep, isEqual } from "lodash-es";
-import { NButton, NInput } from "naive-ui";
-import { computed, reactive, ref, watch } from "vue";
-import { useI18n } from "vue-i18n";
-import EmailInput from "@/components/EmailInput.vue";
-import PermissionGuardWrapper from "@/components/Permission/PermissionGuardWrapper.vue";
-import RequiredStar from "@/components/RequiredStar.vue";
-import { Drawer, DrawerContent } from "@/components/v2";
-import { RoleSelect } from "@/components/v2/Select";
-import {
- getUserFullNameByType,
- pushNotification,
- useSettingV1Store,
- useUserStore,
- useWorkspaceV1Store,
-} from "@/store";
-import { getUserEmailInBinding, UNKNOWN_USER_NAME, unknownUser } from "@/types";
-import { PresetRoleType } from "@/types/iam";
-import type { User } from "@/types/proto-es/v1/user_service_pb";
-import {
- UpdateUserRequestSchema,
- UserSchema,
-} from "@/types/proto-es/v1/user_service_pb";
-import { hasWorkspacePermissionV2 } from "@/utils";
-import UserPassword from "./UserPassword.vue";
-
-interface LocalState {
- isRequesting: boolean;
- user: User;
- roles: string[];
- passwordConfirm: string;
-}
-
-const props = defineProps<{
- user?: User;
-}>();
-
-const emit = defineEmits<{
- (event: "close"): void;
- (event: "created", user: User): void;
- (event: "updated", user: User): void;
-}>();
-
-const workspaceStore = useWorkspaceV1Store();
-
-const { t } = useI18n();
-const userStore = useUserStore();
-const userPasswordRef = ref<InstanceType<typeof UserPassword>>();
-
-const state = reactive<LocalState>({
- isRequesting: false,
- user: unknownUser(),
- roles: [PresetRoleType.WORKSPACE_MEMBER],
- passwordConfirm: "",
-});
-
-const isEditMode = computed(
- () => !!props.user && props.user.name !== unknownUser().name
-);
-
-const allowUpdate = computed(() => {
- if (!isEditMode.value) {
- return true;
- }
- return hasWorkspacePermissionV2("bb.users.update");
-});
-
-const initialRoles = computed(() => {
- if (!props.user || props.user.name === UNKNOWN_USER_NAME) {
- return [PresetRoleType.WORKSPACE_MEMBER];
- }
-
- const roles = workspaceStore.userMapToRoles.get(
- getUserFullNameByType(props.user)
- );
- return roles ? [...roles] : [];
-});
-
-watch(
- () => props.user,
- (user) => {
- if (!user) {
- return;
- }
- state.user = cloneDeep(create(UserSchema, user));
- state.roles = [...initialRoles.value];
- },
- {
- immediate: true,
- }
-);
-
-const passwordRestrictionSetting = computed(
- () => useSettingV1Store().workspaceProfile.passwordRestriction
-);
-
-const allowConfirm = computed(() => {
- if (!state.user.email) {
- return false;
- }
- if (userPasswordRef.value?.passwordHint) {
- return false;
- }
- if (userPasswordRef.value?.passwordMismatch) {
- return false;
- }
-
- return true;
-});
-
-const extractUserTitle = (email: string): string => {
- const atIndex = email.indexOf("@");
- if (atIndex !== -1) {
- return email.substring(0, atIndex);
- }
- return email;
-};
-
-const createOrUpdateUser = async () => {
- state.isRequesting = true;
- try {
- if (isEditMode.value) {
- await updateUser();
- } else {
- await createUser();
- }
- } catch {
- // nothing
- } finally {
- state.isRequesting = false;
- }
-};
-
-const createUser = async () => {
- const createdUser = await userStore.createUser({
- ...state.user,
- title: state.user.title || extractUserTitle(state.user.email),
- password: state.user.password,
- });
-
- if (state.roles.length > 0) {
- await workspaceStore.patchIamPolicy([
- {
- member: getUserEmailInBinding(createdUser.email),
- roles: state.roles,
- },
- ]);
- }
- emit("created", createdUser);
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("common.created"),
- });
- emit("close");
-};
-
-const updateUser = async () => {
- const user = props.user;
- if (!user) {
- return;
- }
-
- const updateMask: string[] = [];
- const payload = create(UserSchema, state.user);
- if (payload.title !== user.title) {
- updateMask.push("title");
- }
- if (payload.phone !== user.phone) {
- updateMask.push("phone");
- }
- if (payload.password) {
- updateMask.push("password");
- }
-
- let updatedUser: User = user;
-
- if (updateMask.length > 0) {
- updatedUser = await userStore.updateUser(
- create(UpdateUserRequestSchema, {
- user: payload,
- updateMask: create(FieldMaskSchema, {
- paths: updateMask,
- }),
- })
- );
- }
-
- if (!isEqual([...initialRoles.value].sort(), [...state.roles].sort())) {
- await workspaceStore.patchIamPolicy([
- {
- member: getUserEmailInBinding(updatedUser.email),
- roles: state.roles,
- },
- ]);
- }
-
- emit("updated", updatedUser);
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("common.updated"),
- });
- emit("close");
-};
-</script>
diff --git a/frontend/src/components/User/Settings/RemoveGroupButton.vue b/frontend/src/components/User/Settings/RemoveGroupButton.vue
deleted file mode 100644
index 95a416d206..0000000000
--- a/frontend/src/components/User/Settings/RemoveGroupButton.vue
+++ /dev/null
@@ -1,85 +0,0 @@
-<template>
- <MiniActionButton
- v-if="allowDelete"
- type="error"
- v-bind="$attrs"
- @click="handleDeleteGroup"
- >
- <template #default>
- <slot name="icon" />
- </template>
- <template #text>
- <slot name="default" />
- </template>
- </MiniActionButton>
-
- <ResourceOccupiedModal
- ref="resourceOccupiedModalRef"
- :target="group.name"
- :resources="resourcesOccupied"
- :show-positive-button="true"
- @on-submit="onGroupRemove"
- />
-</template>
-
-<script lang="tsx" setup>
-import { computed, ref } from "vue";
-import { useI18n } from "vue-i18n";
-import { MiniActionButton } from "@/components/v2";
-import ResourceOccupiedModal from "@/components/v2/ResourceOccupiedModal/ResourceOccupiedModal.vue";
-import { pushNotification, useCurrentUserV1, useGroupStore } from "@/store";
-import { extractUserEmail } from "@/store/modules/v1/common";
-import {
- type Group,
- GroupMember_Role,
-} from "@/types/proto-es/v1/group_service_pb";
-import { hasWorkspacePermissionV2 } from "@/utils";
-
-const props = defineProps<{
- group: Group;
-}>();
-
-const emit = defineEmits<{
- (event: "removed"): void;
-}>();
-
-const { t } = useI18n();
-const groupStore = useGroupStore();
-const currentUserV1 = useCurrentUserV1();
-const resourceOccupiedModalRef =
- ref<InstanceType<typeof ResourceOccupiedModal>>();
-
-const selfMemberInGroup = computed(() => {
- return props.group?.members.find(
- (member) => extractUserEmail(member.member) === currentUserV1.value.email
- );
-});
-
-const allowDelete = computed(() => {
- if (selfMemberInGroup.value?.role === GroupMember_Role.OWNER) {
- return true;
- }
- return hasWorkspacePermissionV2("bb.groups.delete");
-});
-
-// We don't check resourcesOccupied because:
-// 1. projectStore.getProjectList() only returns cached projects (pagination)
-// 2. getProjectIamPolicy() may return empty for projects not visited
-// The check would be unreliable, so we skip it.
-const resourcesOccupied: string[] = [];
-
-const handleDeleteGroup = async () => {
- resourceOccupiedModalRef.value?.open();
-};
-
-const onGroupRemove = () => {
- groupStore.deleteGroup(props.group.name).then(() => {
- emit("removed");
- pushNotification({
- module: "bytebase",
- style: "SUCCESS",
- title: t("common.deleted"),
- });
- });
-};
-</script>
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberRoleSelect.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberRoleSelect.vue
deleted file mode 100644
index 4ca374a99c..0000000000
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupMemberRoleSelect.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-<template>
- <NSelect
- :filterable="false"
- :virtual-scroll="true"
- :multiple="false"
- :value="value"
- :size="size"
- :options="options"
- @update:value="(val: GroupMember_Role) => $emit('update:value', val)"
- />
-</template>
-
-<script lang="ts" setup>
-import { NSelect, type SelectOption } from "naive-ui";
-import { computed } from "vue";
-import { useI18n } from "vue-i18n";
-import { GroupMember_Role } from "@/types/proto-es/v1/group_service_pb";
-
-defineProps<{
- value: GroupMember_Role;
- size: "tiny" | "small" | "medium" | "large";
-}>();
-
-defineEmits<{
- (event: "update:value", value: GroupMember_Role): void;
-}>();
-
-const { t } = useI18n();
-
-const options = computed(() => {
- return [GroupMember_Role.OWNER, GroupMember_Role.MEMBER].map<SelectOption>(
- (role) => {
- let label = "";
- switch (role) {
- case GroupMember_Role.OWNER:
- label = t("settings.members.groups.form.role.owner");
- break;
- case GroupMember_Role.MEMBER:
- label = t("settings.members.groups.form.role.member");
- break;
- default:
- label = "ROLE UNRECOGNIZED";
- }
- return {
- value: role,
- label,
- };
- }
- );
-});
-</script>
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupOperationsCell.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupOperationsCell.vue
deleted file mode 100644
index b8fec18805..0000000000
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/cells/GroupOperationsCell.vue
+++ /dev/null
@@ -1,53 +0,0 @@
-<template>
- <div class="flex justify-end gap-x-2">
- <RemoveGroupButton v-if="allowDeleteGroup" :group="group" @removed="$emit('group-removed')">
- <Trash2Icon class="w-4 h-auto" />
- </RemoveGroupButton>
-
- <MiniActionButton
- v-if="allowEditGroup"
- @click="$emit('group-selected')"
- >
- <PencilIcon />
- </MiniActionButton>
- </div>
-</template>
-
-<script lang="ts" setup>
-import { PencilIcon, Trash2Icon } from "lucide-vue-next";
-import { computed } from "vue";
-import { MiniActionButton } from "@/components/v2";
-import { useCurrentUserV1 } from "@/store";
-import { extractUserEmail } from "@/store/modules/v1/common";
-import type { Group } from "@/types/proto-es/v1/group_service_pb";
-import { GroupMember_Role } from "@/types/proto-es/v1/group_service_pb";
-import { hasWorkspacePermissionV2 } from "@/utils";
-import RemoveGroupButton from "../../RemoveGroupButton.vue";
-
-const props = defineProps<{
- group: Group;
-}>();
-
-defineEmits<{
- (event: "group-selected"): void;
- (event: "group-removed"): void;
-}>();
-
-const currentUser = useCurrentUserV1();
-
-const isGroupOwner = computed(() => {
- return (
- props.group.members.find(
- (m) => extractUserEmail(m.member) === currentUser.value.email
- )?.role === GroupMember_Role.OWNER
- );
-});
-
-const allowEditGroup = computed(() => {
- return isGroupOwner.value || hasWorkspacePermissionV2("bb.groups.update");
-});
-
-const allowDeleteGroup = computed(() => {
- return isGroupOwner.value || hasWorkspacePermissionV2("bb.groups.update");
-});
-</script>
diff --git a/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue b/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
deleted file mode 100644
index e7ce034f40..0000000000
--- a/frontend/src/components/User/Settings/UserDataTableByGroup/index.vue
+++ /dev/null
@@ -1,179 +0,0 @@
-<template>
- <NDataTable
- key="member-by-group"
- :columns="columns"
- :data="userListByGroup"
- :row-key="(row) => row.name"
- :bordered="true"
- :loading="loading"
- :cascade="false"
- allow-checking-not-loaded
- :expanded-row-keys="expandedKeys"
- @update:expanded-row-keys="$emit('update:expanded-keys', $event as string[])"
- @load="onExpand"
- />
-</template>
-
-<script lang="tsx" setup>
-import { orderBy } from "lodash-es";
-import type { DataTableColumn, DataTableRowData } from "naive-ui";
-import { NDataTable } from "naive-ui";
-import { computed, h, watchEffect } from "vue";
-import { useI18n } from "vue-i18n";
-import { useUserStore } from "@/store";
-import { getUserEmailInBinding } from "@/types";
-import type { Group } from "@/types/proto-es/v1/group_service_pb";
-import { GroupMember_Role } from "@/types/proto-es/v1/group_service_pb";
-import { type User } from "@/types/proto-es/v1/user_service_pb";
-import GroupMemberNameCell from "./cells/GroupMemberNameCell.vue";
-import GroupNameCell from "./cells/GroupNameCell.vue";
-import GroupOperationsCell from "./cells/GroupOperationsCell.vue";
-
-interface GroupRowData {
- type: "group";
- name: string;
- isLeaf: boolean;
- group: Group;
- children: UserRowData[];
-}
-
-interface UserRowData {
- type: "user";
- name: string;
- user: User;
- role: GroupMember_Role;
-}
-
-const props = withDefaults(
- defineProps<{
- groups: Group[];
- loading: boolean;
- keyword?: string;
- showGroupRole?: boolean;
- expandedKeys?: string[];
- }>(),
- {
- showGroupRole: true,
- groupRoleMap: () => new Map(),
- onClickUser: undefined,
- expandedKeys: () => [],
- }
-);
-
-const emit = defineEmits<{
- (event: "group-selected", group: Group): void;
- (event: "group-removed", group: Group): void;
- (event: "update:expanded-keys", keys: string[]): void;
-}>();
-
-const { t } = useI18n();
-const userStore = useUserStore();
-
-const onExpand = async (row: DataTableRowData) => {
- if (row.type !== "group") {
- return;
- }
- await onGroupLoad(row as GroupRowData);
-};
-
-const onGroupLoad = async (row: GroupRowData) => {
- const { group } = row;
- const memberUserIds = group.members.map((m) => m.member);
- const users = await userStore.batchGetOrFetchUsers(memberUserIds);
-
- const members: UserRowData[] = [];
- for (const user of users) {
- const member = group.members.find(
- (m) => m.member === getUserEmailInBinding(user.email)
- );
- members.push({
- type: "user",
- name: `${group.name}-${user.name}`,
- user,
- role: member?.role ?? GroupMember_Role.MEMBER,
- });
- }
-
- row.children = orderBy(
- members,
- [
- (member) => (member.role === GroupMember_Role.OWNER ? 1 : 0),
- (member) => member.user.name,
- ],
- ["desc", "desc"]
- );
-};
-
-const columns = computed(() => {
- return [
- {
- key: "group-members",
- title: `${t("settings.members.groups.self")} / ${t("common.users")}`,
- className: "flex items-center",
- render: (row: GroupRowData | UserRowData) => {
- if (row.type === "group") {
- return (
- <GroupNameCell
- group={row.group}
- link={false}
- keyword={props.keyword}
- />
- );
- }
- return (
- <GroupMemberNameCell
- user={row.user}
- role={props.showGroupRole ? row.role : undefined}
- />
- );
- },
- },
- {
- key: "operations",
- title: "",
- width: "4rem",
- render: (row: GroupRowData | UserRowData) => {
- if (row.type === "group") {
- return h(GroupOperationsCell, {
- group: row.group,
- "onGroup-selected": () => {
- emit("group-selected", row.group);
- },
- "onGroup-removed": () => {
- emit("group-removed", row.group);
- },
- });
- } else {
- return "";
- }
- },
- },
- ] as DataTableColumn<GroupRowData | UserRowData>[];
-});
-
-const userListByGroup = computed(() => {
- const rowDataList: GroupRowData[] = [];
-
- for (const group of props.groups) {
- rowDataList.push({
- type: "group",
- group,
- isLeaf: group.members.length === 0,
- name: group.name,
- children: [],
- });
- }
-
- return rowDataList;
-});
-
-watchEffect(async () => {
- for (const expandKey of props.expandedKeys) {
- const data = userListByGroup.value.find((row) => row.name === expandKey);
- if (!data) {
- continue;
- }
- await onGroupLoad(data);
- }
-});
-</script>
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 3576ac3a3b..3f7121092f 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -501,7 +501,6 @@
"email-tips": "The email should be unique, and it cannot be changed after creation.",
"title": "Title",
"description": "Description",
- "members": "Members",
"role": {
"owner": "Group owner",
"member": "Group member"
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 6231dec66c..327484c455 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -501,7 +501,6 @@
"email-tips": "El correo electrónico debe ser único y no se puede cambiar después de su creación.",
"title": "Título",
"description": "Descripción",
- "members": "Miembros",
"role": {
"owner": "Propietario del grupo",
"member": "Miembro del grupo"
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 58aeaba5e9..3187c9766c 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -501,7 +501,6 @@
"email-tips": "電子メールは一意である必要があり、作成後に変更することはできません。",
"title": "タイトル",
"description": "説明",
- "members": "メンバー",
"role": {
"owner": "グループオーナー",
"member": "グループの人(仲間)たち"
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index cc22d8f867..3bd7e42f1a 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -501,7 +501,6 @@
"email-tips": "Email phải là duy nhất, và không thể thay đổi sau khi tạo.",
"title": "Tiêu đề",
"description": "Mô tả",
- "members": "Thành viên",
"role": {
"owner": "Chủ sở hữu nhóm",
"member": "Thành viên nhóm"
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 314dd4df82..4832db3ebc 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -501,7 +501,6 @@
"email-tips": "邮箱应该是唯一的,并且创建后不能更改。",
"title": "名称",
"description": "描述",
- "members": "成员",
"role": {
"owner": "群组所有者",
"member": "群组成员"
diff --git a/frontend/src/react/locales/en-US.json b/frontend/src/react/locales/en-US.json
index 1fa6003c6f..29274e9551 100644
--- a/frontend/src/react/locales/en-US.json
+++ b/frontend/src/react/locales/en-US.json
@@ -1,236 +1,407 @@
{
+ "audit-log": {
+ "advanced-search": {
+ "scope": {
+ "actor": {
+ "description": "Search by the audit log actor",
+ "title": "Actor"
+ },
+ "level": {
+ "description": "Search by the level of audit log",
+ "title": "Level"
+ },
+ "method": {
+ "description": "Search by the method of audit log",
+ "title": "Method"
+ }
+ }
+ },
+ "export-tooltip": "Must select start time and end time within 30 days",
+ "table": {
+ "actor": "Actor",
+ "created-ts": "Time",
+ "latency": "Latency",
+ "level": "Level",
+ "method": "Method",
+ "request": "Request",
+ "response": "Response",
+ "service-data": "Service Data",
+ "status": "Status"
+ }
+ },
+ "banner": {
+ "external-url": "Bytebase has not configured --external-url"
+ },
+ "bbkit": {
+ "confirm-button": {
+ "sure-to-delete": "Are you sure to delete?"
+ }
+ },
+ "cel": {
+ "condition": {
+ "add": "Add condition",
+ "add-condition-in-group-placeholder": "Add {{plus}} to add condition",
+ "add-group": "Add condition group",
+ "add-raw-expression": "Add raw expression",
+ "add-root-condition-placeholder": "Click \"Add condition\" or \"Add condition group\" to add condition",
+ "description-tips": "A condition is a rule that can be configured via an expression. For example, the condition \"Environment is prod\" will match issues executed in the \"prod\" environment.",
+ "group": {
+ "and": {
+ "description": "All of the following are true..."
+ },
+ "or": {
+ "description": "Any of the following are true..."
+ }
+ },
+ "input-value": "Input value",
+ "input-value-press-enter": "Input value, press Enter to confirm",
+ "select-value": "Select value",
+ "self": "Condition"
+ }
+ },
"common": {
- "filter-by-name": "Filter by name",
- "loading": "Loading",
- "no-data": "No data",
+ "add": "Add",
+ "add-permissions": "Add permissions",
+ "added": "Added",
+ "address": "Address",
"all": "All",
- "edit": "Edit",
- "updated": "Updated",
- "learn-more": "Learn more",
- "revert": "Revert",
+ "archive": "Archive",
+ "archived": "Archived",
+ "back": "Back",
"cancel": "Cancel",
- "save": "Save",
- "confirm": "Confirm",
+ "cannot-undo-this-action": "You cannot undo this action",
"clear": "Clear",
- "add": "Add",
- "warning": "Warning",
- "environment-name": "Environment Name",
- "environment": "Environment",
+ "close": "Close",
+ "configure": "Configure",
+ "configure-now": "Configure now",
+ "confirm": "Confirm",
"confirm-and-update": "Confirm and update",
- "cannot-undo-this-action": "You cannot undo this action",
- "delete": "Delete",
+ "copied": "Copied",
+ "copy": "Copy",
"create": "Create",
- "leave-without-saving": "Leave without saving?",
+ "created": "Created",
+ "delete": "Delete",
+ "delete-resource": "Delete {{type}}",
"deleted": "Deleted",
- "reorder": "Reorder",
- "close": "Close",
- "general": "General",
- "type": "Type",
+ "description": "Description",
"discard-changes": "Discard changes",
- "update": "Update",
- "copied": "Copied",
- "copy": "Copy",
- "back": "Back",
- "next": "Next",
+ "edit": "Edit",
+ "email": "Email",
+ "environment": "Environment",
+ "environment-name": "Environment Name",
+ "export": "Export",
+ "failed": "Failed",
+ "file-selector": {
+ "size-limit": "File size should less than {{size}} MiB",
+ "type-limit": "Only support {{extension}} file"
+ },
+ "filter-by-name": "Filter by name",
+ "from": "From",
+ "general": "General",
+ "groups": "Groups",
"id": "ID",
- "name": "Name",
- "sensitive-placeholder": "Sensitive - write only",
- "unassigned": "Unassigned",
- "archive": "Archive",
- "restore": "Restore",
- "delete-resource": "Delete {{type}}",
+ "instance": "Instance",
+ "is-required": "is required",
"labels": "Labels",
- "state": "State",
- "address": "Address",
- "rows-per-page": "Rows per page",
+ "learn-more": "Learn more",
+ "leave-without-saving": "Leave without saving?",
"load-more": "Load more",
- "configure-now": "Configure now",
- "restored": "Restored",
- "archived": "Archived",
- "select-all": "Select all",
- "total-n-items": "Total {{n}} items",
- "search": "Search",
+ "loading": "Loading",
+ "members_one": "Member",
+ "members_other": "Members",
+ "missing-required-permission": "Missing required permissions {{permissions}}",
"n-items-selected": "{{n}} items selected",
- "permissions": "Permissions",
- "added": "Added",
- "description": "Description",
+ "name": "Name",
+ "next": "Next",
+ "no-data": "No data",
+ "ok": "OK",
"operations": "Operations",
- "title": "Title",
- "missing-required-permission": "Missing required permissions {{permissions}}",
+ "permissions": "Permissions",
+ "project": "Project",
+ "reorder": "Reorder",
"required-permission": "Required permissions",
"required-workspace-permission": "Following permissions are required to initialize the workspace UX",
- "add-permissions": "Add permissions",
+ "restore": "Restore",
+ "restored": "Restored",
+ "revert": "Revert",
+ "rows-per-page": "Rows per page",
+ "save": "Save",
+ "search": "Search",
+ "select": "Please Select",
+ "select-all": "Select all",
+ "sensitive-placeholder": "Sensitive - write only",
+ "state": "State",
"system": "System",
- "created": "Created",
- "upload": "Upload",
+ "title": "Title",
+ "to": "To",
+ "total-n-items": "Total {{n}} items",
+ "type": "Type",
+ "unassigned": "Unassigned",
"unlimited": "Unlimited",
- "file-selector": {
- "type-limit": "Only support {{extension}} file",
- "size-limit": "File size should less than {{size}} MiB"
- },
- "ok": "OK",
- "failed": "Failed",
- "project": "Project",
- "instance": "Instance",
- "select": "Please Select",
- "export": "Export",
+ "update": "Update",
+ "updated": "Updated",
+ "upload": "Upload",
+ "users": "Users",
"view": "View",
"view-details": "View Details",
- "from": "From",
- "to": "To"
+ "warning": "Warning",
+ "you": "you",
+ "copy-failed": "Copy failed"
},
- "audit-log": {
- "export-tooltip": "Must select start time and end time within 30 days",
- "table": {
- "created-ts": "Time",
- "actor": "Actor",
- "level": "Level",
- "method": "Method",
- "request": "Request",
- "response": "Response",
- "status": "Status",
- "latency": "Latency",
- "service-data": "Service Data"
- },
- "advanced-search": {
- "scope": {
- "actor": {
- "title": "Actor",
- "description": "Search by the audit log actor"
+ "create-db": {
+ "cluster": "Cluster",
+ "database-owner-name": "Database owner name",
+ "new-collection-name": "New Collection Name",
+ "new-database-name": "New database name",
+ "reserved-db-error": "{{databaseName}} is a reserved name"
+ },
+ "custom-approval": {
+ "approval-flow": {
+ "add-rule": "Add rule",
+ "create-approval-flow": "Create approval flow",
+ "edit-rule": "Edit rule",
+ "fallback-rules": "Fallback Rules",
+ "fallback-rules-hint": "Fallback rules are evaluated only when no other rules match.",
+ "node": {
+ "add": "Add node",
+ "approver": "Approver",
+ "delete": "Delete approval node",
+ "description": "Only one approval is required on this node when there are multiple approvers.",
+ "nodes": "Approval nodes",
+ "order": "Order"
+ },
+ "self": "Approval Flow",
+ "skip": "No approval required",
+ "template": {
+ "preset-descriptions": {
+ "drop-or-truncate": "Require approval for DROP TABLE or TRUNCATE statements.",
+ "fallback": "A catch-all rule that matches all requests. Place at the end of your rules list.",
+ "high-affected-rows": "Require approval when affected rows exceed 100."
},
- "method": {
- "title": "Method",
- "description": "Search by the method of audit log"
+ "presets": {
+ "drop-or-truncate": "Drop/Truncate Table",
+ "fallback": "Fallback Rule",
+ "high-affected-rows": "High Affected Rows"
},
- "level": {
- "title": "Level",
- "description": "Search by the level of audit log"
+ "presets-title": "Presets"
+ }
+ },
+ "risk": {
+ "description": "Risk assessment automatically evaluates database changes and assigns risk levels based on the type of operation being performed.",
+ "how-it-works": "How it works",
+ "how-it-works-description": "When you create a database change, Bytebase automatically analyzes the SQL statements and assigns a risk level (Low, Moderate, or High) based on predefined rules.",
+ "integration": "Integration with Approval Flow",
+ "integration-description": "Risk levels integrate with the Custom Approval system. You can configure approval flows that require different levels of review based on the assessed risk level of a change.",
+ "risk-level-high": "High risk operations include destructive changes like DROP TABLE, TRUNCATE, or large-scale data modifications.",
+ "risk-level-low": "Low risk operations include SELECT queries and minor schema changes that are unlikely to cause issues.",
+ "risk-level-moderate": "Moderate risk operations include standard DDL changes like adding columns or indexes.",
+ "risk-levels": "Risk Levels"
+ },
+ "risk-rule": {
+ "risk": {
+ "namespace": {
+ "change_database": "Change Database",
+ "create_database": "Create Database",
+ "data_export": "Export Data",
+ "request-access": "Request Just-In-Time Access",
+ "request-role": "Request Role"
+ },
+ "risk-level": {
+ "default": "Default",
+ "high": "High",
+ "low": "Low",
+ "moderate": "Moderate"
}
}
+ },
+ "rule": {
+ "first-match-wins": "Rules are evaluated in order. First matching rule applies."
}
},
- "cel": {
- "condition": {
- "input-value": "Input value",
- "select-value": "Select value",
- "input-value-press-enter": "Input value, press Enter to confirm",
- "group": {
- "or": {
- "description": "Any of the following are true..."
- },
- "and": {
- "description": "All of the following are true..."
- }
- },
- "add-condition-in-group-placeholder": "Add {{plus}} to add condition",
- "add-root-condition-placeholder": "Click \"Add condition\" or \"Add condition group\" to add condition",
- "add": "Add condition",
- "add-raw-expression": "Add raw expression",
- "add-group": "Add condition group",
- "description-tips": "A condition is a rule that can be configured via an expression. For example, the condition \"Environment is prod\" will match issues executed in the \"prod\" environment.",
- "self": "Condition"
- }
- },
- "subscription": {
- "trial-for-days": "You can start a free trial for {{days}} days - no credit card required.",
- "required-plan-with-trial": "This feature requires {{requiredPlan}}. {{startTrial}}",
- "instance-assignment": {
- "missing-license-attention": "You need to assign license to the instance to enable this feature.",
- "assign-license": "Assign License",
- "license": "License",
- "used-and-total-user": "Active / Total User Limit",
- "used-and-total-license": "Assigned / Total Instance License"
+ "database": {
+ "classification": {
+ "description": "Define classification levels to apply consistent masking policies across columns and databases."
},
- "request-n-days-trial": "Request {{days}} days trial (no credit card required)",
- "usage": {
- "instance-count": {
- "title": "Instance count limit",
- "runoutof": "You have run out of your {{total}} instance quota."
+ "edit-environment": "Edit Environment",
+ "edit-labels": "Edit Labels",
+ "engine": "Engine",
+ "filter-database": "Filter database",
+ "selected-n-databases": "{{n}} database(s) selected",
+ "successfully-transferred-databases": "Successfully transferred databases",
+ "sync-schema-button": "Sync Schema",
+ "sync-status": "Sync status",
+ "sync-status-failed": "Sync failed",
+ "transfer-project": "Transfer Project",
+ "unassign": "Unassign"
+ },
+ "db": {
+ "character-set": "Character set",
+ "collation": "Collation",
+ "encoding": "Encoding",
+ "failed-to-sync-schema": "Failed to sync schema",
+ "start-to-sync-schema": "Start to sync schema",
+ "successfully-synced-schema": "Successfully synced schema"
+ },
+ "environment": {
+ "create": "Create Environment",
+ "delete": "Delete this environment",
+ "delete-description": "Delete environment will also remove it from related instances and databases. You cannot undo this action",
+ "reorder": "Reorder Environments",
+ "successfully-updated-environment": "Successfully updated environment '{{name}}'."
+ },
+ "error-page": {
+ "not-found": "Not Found"
+ },
+ "identity-provider": {
+ "claims-description": "The following claims were returned by the identity provider. This information can help you configure field mappings.",
+ "delete-warning": "Are you sure you want to delete this identity provider? Users who signed up via this SSO will not be able to sign in with it anymore. If password sign-in is disabled in your workspace settings, these users may be locked out completely.",
+ "identity-provider-create-failed": "Failed to create identity provider",
+ "identity-provider-created": "Identity provider created successfully",
+ "identity-provider-delete-failed": "Failed to delete identity provider",
+ "identity-provider-deleted": "Identity provider deleted successfully",
+ "identity-provider-permission-denied": "Permission denied",
+ "identity-provider-update-failed": "Failed to update identity provider",
+ "no-claims": "No claims returned by the identity provider.",
+ "test-connection": "Test Connection",
+ "test-connection-success": "Test Connection Successful",
+ "userinfo-description": "The matched user information."
+ },
+ "instance": {
+ "advanced-search": {
+ "scope": {
+ "host": {
+ "description": "Filter by instance host. Please input the value then press the Enter.",
+ "title": "Host"
+ },
+ "port": {
+ "description": "Filter by instance port. Please input the value then press the Enter.",
+ "title": "Port"
+ }
}
},
- "plan": {
- "free": {
- "title": "Community",
- "label": "",
- "desc": "Team essentials to manage database development lifecycle."
- },
- "team": {
- "title": "Pro",
- "label": "",
- "desc": "More policies to standardize and facilitate collaboration across teams."
- },
- "enterprise": {
- "title": "Enterprise",
- "label": "",
- "desc": "Extra security, compliance, and permission features. Dedicated support with SLA."
- },
- "try": "Start free trial",
- "title": "Community"
+ "archive-instance-instance-name": "Archive instance '{{0}}'?",
+ "archived-instances-will-not-be-displayed": "Archived instances will not be displayed.",
+ "filter-instance-name": "Filter instance name",
+ "force-archive-description": "Force to archive. All databases will be unassigned.",
+ "selected-n-instances_one": "{{count}} instance selected",
+ "selected-n-instances_other": "{{count}} instances selected",
+ "successfully-archived-instance": "Successfully archived the instance '{{0}}'.",
+ "successfully-restored-instance": "Successfully restored the instance '{{0}}'.",
+ "sync": {
+ "self": "Sync instance",
+ "sync-all": "Sync all databases",
+ "sync-all-tip": "Database sync is asynchronous and might take a few seconds to minutes",
+ "sync-new": "Only sync new databases"
},
- "purchase": {
- "free-description": "Designed for solo devs, side-projects, and experiments.",
- "pro-description": "Built for teams creating production-ready applications.",
- "enterprise-description": "Scale your business securely while staying compliant.",
- "discount": {
- "percentage-off": "first month {{value}}% off",
- "month-off": "{{value}} month free",
- "price-off": "${{value}} off"
- },
- "update": "Update Subscription",
- "subscribe": "Subscribe now",
- "cancel-confirm": "Are you sure you want to cancel your subscription?",
- "canceled": "Subscription canceled",
- "pending-title": "Completing your purchase...",
- "pending-description": "Please wait while we confirm your payment. This usually takes a few seconds.",
- "payment-info": "Payment Info",
- "total-price": "Total Price",
- "manage-invoices": "Manage Invoices",
- "billing-period": "Billing Period",
- "cancel-pending": "Your subscription has been canceled and will end on {{date}}.",
- "cancel": "Cancel Subscription",
- "per-user-per-month": "/ user monthly",
- "custom": "Custom",
- "seats": "Users",
- "accept-terms-prefix": "I accept the",
- "terms-of-service": "Terms of Service",
- "and": "and",
- "privacy-policy": "Privacy policy",
- "see-comparison": "See detailed feature comparison"
+ "syncing": "Syncing ..."
+ },
+ "issue": {
+ "labels": "Issue Labels"
+ },
+ "landing": {
+ "changelog-for-version": "Changelog for {{version}}",
+ "last-visit": "Last visit",
+ "quick-link": {
+ "manage": "Manage quick link",
+ "self": "Quick Link",
+ "visit-issues": "Visit Issues",
+ "visit-prjects": "Visit Projects"
+ }
+ },
+ "policy": {
+ "environment-tier": {
+ "description": "The environment will appear differently from other environments.",
+ "mark-env-as-production": "Mark as production environment",
+ "name": "Environment Tier"
},
- "current": "Current plan",
- "contact-us": "Contact us",
- "update": {
- "success": {
- "title": "Successfully updated license",
- "description": "Premium features in subscription plan unlocked."
+ "rollout": {
+ "auto": "Automatic",
+ "auto-info": "If all check pass, the change will be rolled out and executed automatically.",
+ "info": "Tasks can be executed by users with '{{permission}}' permission or the following roles.",
+ "name": "Rollout Policy",
+ "tip": "The policy is applied to issues retroactively."
+ }
+ },
+ "project": {
+ "batch": {
+ "archive": {
+ "description": "This will archive the selected projects. You can restore them later if needed.",
+ "error": "Failed to archive projects",
+ "success_one": "Successfully archived {{count}} project",
+ "success_other": "Successfully archived {{count}} projects",
+ "title_one": "Archive {{count}} Project?",
+ "title_other": "Archive {{count}} Projects?"
},
- "failure": {
- "title": "Failed to update license",
- "description": "Please check if your license is valid."
- }
+ "delete": {
+ "description": "This will permanently delete the selected projects and move all databases to the default project.",
+ "error": "Failed to delete projects",
+ "success_one": "Successfully deleted {{count}} project",
+ "success_other": "Successfully deleted {{count}} projects",
+ "title_one": "Delete {{count}} Project?",
+ "title_other": "Delete {{count}} Projects?",
+ "warning": "This action cannot be undone. All project data including issues, configurations, and history will be permanently removed."
+ },
+ "selected_one": "{{count}} project selected",
+ "selected_other": "{{count}} projects selected"
},
- "expired": "expired",
- "trialing": "trialing",
- "expires-at": "Expires at",
- "try-for-free": "Free trial",
- "enterprise-free-trial": "{{days}}-day free Enterprise trial",
- "inquire-enterprise-plan": "Inquire Enterprise Plan",
- "upload-license": "Upload license",
- "description": "You can upload your Bytebase license to unlock pro/enterprise features.",
- "plan-compare": "Compare features between different plans",
- "max-instance-count": "Max instance count",
- "require-subscription": "This feature requires {{requiredPlan}} subscription, please purchase Bytebase license to unlock it."
+ "create-modal": {
+ "project-name": "Project Name",
+ "success-prompt": "Successfully created project {{name}}."
+ },
+ "filter-projects": "Filter projects",
+ "table": {
+ "name": "Name"
+ }
+ },
+ "quick-action": {
+ "add-instance": "Add Instance",
+ "create-db": "Create database",
+ "create-project": "Create Project",
+ "new-db": "New DB",
+ "new-project": "New Project"
+ },
+ "remind": {
+ "release": {
+ "new-version-available-with-tag": "New version {{tag}} is available"
+ }
+ },
+ "resource": {
+ "delete-warning": "The \"{{name}}\" will be deleted. This action cannot be undone.",
+ "delete-warning-retry": "Please remove it from these resources then retry again.",
+ "delete-warning-with-resources": "The \"{{name}}\" is used by following resources:"
},
"resource-id": {
+ "cannot-be-changed-later": "It cannot be changed later.",
+ "description": "The {{resource}} ID is a unique identifier. You cannot change it after created.",
+ "self": "{{resource}} ID",
"validation": {
+ "duplicated": "The {{resource}} ID already exists. Please choose another one.",
"empty": "The {{resource}} ID cannot be empty",
"overflow": "The {{resource}} ID is too long. It should have less than 64 characters.",
- "pattern": "The {{resource}} ID can have lowercase letters, digits, or hyphens. It must start with a lowercase letter and end with a letter or number.",
- "duplicated": "The {{resource}} ID already exists. Please choose another one."
+ "pattern": "The {{resource}} ID can have lowercase letters, digits, or hyphens. It must start with a lowercase letter and end with a letter or number."
+ }
+ },
+ "role": {
+ "custom-roles": {
+ "self": "Custom roles"
},
- "self": "{{resource}} ID",
- "cannot-be-changed-later": "It cannot be changed later.",
- "description": "The {{resource}} ID is a unique identifier. You cannot change it after created."
+ "import-from-role": "Import from role",
+ "project-roles": {
+ "self": "Project roles"
+ },
+ "select-role": "Select role",
+ "self": "Role",
+ "setting": {
+ "add": "Add role",
+ "description": "Defining custom roles. You may apply them to project members and used in custom approval.",
+ "description-placeholder": "Input role description",
+ "edit": "Edit role",
+ "title-placeholder": "Input role title"
+ },
+ "title": "Title",
+ "workspace-roles": {
+ "self": "Workspace roles"
+ }
},
"schema-template": {
"classification": {
@@ -238,655 +409,571 @@
}
},
"settings": {
- "sidebar": {
- "general": "General",
- "members": "Members",
- "users-and-groups": "Users & Groups",
- "members-and-groups": "Members & Groups",
- "sso": "SSO",
- "subscription": "Subscription",
- "audit-log": "Audit Logs",
- "custom-roles": "Custom Roles",
- "global-masking": "Global Masking",
- "data-classification": "Data Classification",
- "im-integration": "IM",
- "mcp": "MCP"
- },
- "sensitive-data": {
- "classification": {
- "invalid-json": "Invalid JSON format",
- "missing-classification": "Missing \"classification\" field",
- "empty-classification": "The \"classification\" field is empty",
- "missing-levels": "Missing \"levels\" field",
- "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
- "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
- "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
- "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children)."
- },
- "global-rules": {
- "error": {
- "missing-semantic-type": "Semantic type is required",
- "invalid-condition": "Condition is invalid"
- },
- "condition-order": "Condition order",
- "delete-rule-tip": "Delete this rule?",
- "re-order": "Re-order",
- "description": "Use global rule to apply masking in batch, e.g. all columns named as \"email\" will be masked with the specific semantic type and apply the masking algorithm."
- },
- "semantic-types": {
- "table": {
- "semantic-type": "Semantic Type",
- "icon": "Icon",
- "description": "Description",
- "masking-algorithm": "Masking Algorithm",
- "delete": "Delete this semantic type?"
- },
- "select": "Select semantic type",
- "template": {
- "duplicate-warning": "Semantic type \"{{title}}\" already exists",
- "description": "You can apply built-in semantic types from the template. Built-in template cannot be changed."
+ "general": {
+ "workspace": {
+ "access-token-duration": {
+ "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
+ "hours": "Hour(s)",
+ "minutes": "Minute(s)",
+ "self": "Access token duration"
},
- "use-predefined-type": "Use Predefined Type",
- "label": "Columns having the same semantic type will use the same masking algorithms.",
- "add-from-template": "Add from template"
- },
- "algorithms": {
- "full-mask": {
- "self": "Full mask",
- "substitution": "Substitution",
- "substitution-label": "Substitution is the string used to replace the original value, the max length of the string is 16 bytes."
- },
- "range-mask": {
- "self": "Range mask",
- "label": "Range mask will replace the original value from start index to end index (end not included) with the substitution. The index starts from 0.",
- "slice-start": "Slice start",
- "slice-end": "Slice end",
- "substitution": "Substitution"
- },
- "md5-mask": {
- "self": "MD5 mask",
- "salt": "Salt",
- "salt-label": "Salt is used to generate a hash from the original value."
- },
- "inner-outer-mask": {
- "self": "Inner / Outer mask",
- "type": "Mask Type",
- "inner-label": "Inner mask masks the interior part of a string. The prefix and suffix represent the unmasked parts of the data.",
- "outer-label": "Outer mask masks the left and right ends of a string. The prefix and suffix represent the masked parts of the data.",
- "inner-mask": "Inner Mask",
- "outer-mask": "Outer Mask",
- "prefix-length": "Prefix Length",
- "suffix-length": "Suffix Length"
- },
- "error": {
- "slice-required": "Slice is required",
- "slice-invalid-number": "Slice start or end is not a valid number",
- "slice-overlap": "The slice range cannot overlap",
- "substitution-required": "Substitution is required",
- "substitution-length": "Substitution should be less than 16 bytes",
- "salt-required": "Salt is required"
- },
- "edit": "Edit algorithm",
- "add": "Add algorithm",
- "table": {
- "masking-type": "Masking Type"
- }
- }
- },
- "sso": {
- "delete": "Delete this SSO",
- "form": {
- "auth-url": "Authorization URL",
- "auth-url-placeholder": "e.g. https://github.com/login/oauth/authorize",
- "auth-url-description": "The link to OAuth login page",
- "token-url": "Token URL",
- "token-url-placeholder": "e.g. https://github.com/login/oauth/access_token",
- "token-url-description": "The API address for obtaining accessToken",
- "user-info-url": "User Information URL",
- "user-info-url-placeholder": "e.g. https://api.github.com/user",
- "user-info-url-description": "The API address for obtaining user information by accessToken",
- "scopes": "Scopes",
- "scopes-placeholder": "e.g. user email profile",
- "scopes-description": "A space-separated list of scopes to be carried when accessing the Auth URL",
- "authentication-style": "Authentication Style",
- "in-parameters": "In Parameters",
- "in-parameters-description": "Send credentials in POST body (recommended)",
- "in-header": "In Header",
- "in-header-description": "Send credentials using HTTP Basic Authorization",
- "security-options": "Security Options",
- "skip-tls-verification": "Skip TLS Certificate Verification",
- "skip-tls-warning": "Only enable this for development or testing purposes",
- "issuer-url-placeholder": "e.g. https://acme.okta.com",
- "issuer-url-description": "The OIDC issuer URL (well-known configuration will be auto-discovered)",
- "scopes-placeholder-oidc": "e.g. openid profile email",
- "openid-scopes-description": "Space-separated list of OIDC scopes (openid is required)",
- "host-placeholder": "e.g. ldap.example.com",
- "bind-dn": "Bind DN",
- "bind-dn-placeholder": "e.g. uid=system,ou=Users,dc=example,dc=com",
- "bind-dn-description": "The DN of the user to bind as for search requests",
- "bind-password": "Bind Password",
- "base-dn": "Base DN",
- "base-dn-placeholder": "e.g. ou=users,dc=example,dc=com",
- "base-dn-description": "The base DN to search for users",
- "user-filter": "User Filter",
- "user-filter-placeholder": "e.g. (uid=%s)",
- "user-filter-description": "The filter to search for users (%s will be replaced with username)",
- "security-protocol": "Security Protocol",
- "starttls": "StartTLS",
- "starttls-description": "Upgrade connection to TLS (recommended)",
- "ldaps": "LDAPS",
- "ldaps-description": "Use TLS from the beginning (port 636)",
- "none": "None",
- "none-description": "No encryption (not recommended for production)",
- "identifier-placeholder": "e.g. login, email",
- "identifier": "Bytebase user's email",
- "identifier-tips": "It should be a unique string. And if it is not in email format, it will be spliced with domain.",
- "display-name-placeholder": "e.g. name, displayName",
- "display-name": "Bytebase user's display name",
- "phone-placeholder": "e.g. phone, mobile",
- "phone": "Bytebase user's phone number",
- "groups-placeholder": "e.g. groups",
- "groups": "Bytebase user's groups",
- "groups-description": "Used for group-based access control (OIDC providers only)",
- "provider-type-readonly-hint": "Provider type cannot be changed after creation",
- "name": "Name",
- "name-description": "The display name to be shown to the users",
- "domain": "Domain",
- "domain-description": "The identity provider's domain name",
- "domain-optional-hint": "Optional: Use to concat with identifier if it is not in email format",
- "configuration": "Configuration",
- "configuration-description": "Configure the connection settings for your identity provider",
- "user-information-mapping": "User information mapping",
- "user-information-mapping-description": "Maps the field names from user info API to the Bytebase user.",
- "identity-provider-needed-information": "Create your SSO application with the following information.",
- "redirect-url-description": "It will be used to fill in the appropriate field in the identity provider application form.",
- "redirect-url": "Authorization redirect URL",
- "type": "Type",
- "use-template": "Use template",
- "oauth2-description": "Connect with OAuth 2.0 providers like Google, GitHub, GitLab",
- "oidc-description": "Connect with OpenID Connect providers like Microsoft Entra ID (Azure AD), Okta, Auth0",
- "ldap-description": "Connect with LDAP providers like Microsoft Active Directory, OpenLDAP",
- "google-template-description": "Sign in with Google accounts",
- "github-template-description": "Sign in with GitHub accounts",
- "gitlab-template-description": "Sign in with GitLab accounts",
- "microsoft-entra-template-description": "Sign in with Microsoft Entra ID",
- "custom-template-description": "Configure custom OAuth 2.0 provider",
- "type-description": "Choose the type of identity provider you want to configure",
- "template-description": "Choose a pre-configured template or set up a custom OAuth 2.0 provider",
- "general-setting-description": "Provide basic information about your identity provider."
- },
- "description": "Single Sign-On (SSO) is an authentication method that enables users to authenticate with multiple applications and websites via a single set of credentials.",
- "create": "Create SSO"
- },
- "im": {
- "add-im-integration": "Add IM Integration",
- "add-another-im": "Add Another IM"
- },
- "im-integration": {
- "description": "The IM integration will be used to push direct messages to users for specific issue events. Works with the project webhook."
- },
- "mcp": {
- "first-prompt": {
- "example": "List all projects in my Bytebase instance",
- "title": "Your First Prompt",
- "description": "Once connected, try asking your AI assistant:"
- },
- "title": "MCP Integration",
- "description": "Connect AI assistants to Bytebase using the Model Context Protocol.",
- "auth": {
- "title": "Authentication Required",
- "description": "OAuth authentication is required on first connection. Ensure you have appropriate Bytebase permissions."
- },
- "general-config": {
- "title": "Option 1: JSON Configuration"
- },
- "setup": {
- "add-to-config": "Add this JSON to your MCP client configuration file."
- },
- "quick-start": {
- "title": "Option 2: CLI Commands",
- "description": "Alternatively, use one of these CLI commands."
- }
- },
- "general": {
- "workspace": {
- "external-url": {
- "description": "The external URL where user visits Bytebase, must start with http:// or https://.",
- "self": "External URL",
- "cannot-edit-flag": "External URL cannot be changed because it is set via --external-url command-line flag"
- },
- "id": "Workspace ID",
- "id-description": "The unique, read-only workspace id.",
+ "account": "Account",
"ai-assistant": {
- "enabled-in-saas": "Gemini AI is enabled automatically in the SaaS mode.",
- "enable-ai-assistant": "Enable AI Assistant",
- "description": "Use AI to assist the database development tasks.",
- "provider": {
- "self": "AI Provider",
- "open_ai": "Open AI",
- "azure_open_ai": "Azure Open AI",
- "gemini": "Gemini",
- "claude": "Claude"
- },
"api-key": {
- "self": "API Key",
"description": "Supply API Key, read-only. {{viewDoc}}",
"find-my-key": "Find my key",
- "placeholder": "An API Key usually starts with sk-*****"
+ "placeholder": "An API Key usually starts with sk-*****",
+ "self": "API Key"
},
+ "description": "Use AI to assist the database development tasks.",
+ "enable-ai-assistant": "Enable AI Assistant",
+ "enabled-in-saas": "Gemini AI is enabled automatically in the SaaS mode.",
"endpoint": {
- "self": "API Endpoint",
- "description": "Supply private deployment of API Endpoint."
+ "description": "Supply private deployment of API Endpoint.",
+ "self": "API Endpoint"
},
"model": {
- "self": "Model Name",
- "description": "Supply private deployment of model name."
+ "description": "Supply private deployment of model name.",
+ "self": "Model Name"
+ },
+ "provider": {
+ "azure_open_ai": "Azure Open AI",
+ "claude": "Claude",
+ "gemini": "Gemini",
+ "open_ai": "Open AI",
+ "self": "AI Provider"
},
"self": "AI Assistant"
},
- "disallow-signup": {
- "enable": "Disallow self-service signup",
- "description": "Users cannot self-service signup and can only be invited by the workspace admin."
- },
- "password-restriction": {
- "self": "Password Restriction",
- "min-length": "Minimum length for password should no less than {{min}} characters",
- "require-number": "The password must contain at least one number",
- "require-letter": "The password must contain at least one letter, regardless of upper case or lower case",
- "require-uppercase-letter": "The password must contain at least one upper case letter",
- "require-special-character": "The password must contain at least one special character",
- "require-reset-password-for-first-login": "Require users reset their password after the 1st time login",
- "password-rotation": "Require users reset their password every {{day}} days"
- },
- "require-2fa": {
- "enable": "Require two-factor authentication for all users",
- "description": "Users who do not have two-factor authentication enabled for their personal accounts will be forced to configure."
- },
- "disallow-password-signin": {
- "enable": "Disallow signin with email & password",
- "require-sso-setup": "A functional SSO must be created first, or users won't be able to log in.",
- "description": "Users cannot sign in with email & password, only SSO is allowed."
- },
- "access-token-duration": {
- "self": "Access token duration",
- "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
- "minutes": "Minute(s)",
- "hours": "Hour(s)"
- },
- "refresh-token-duration": {
- "self": "Refresh token duration",
- "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
- "hours": "Hour(s)",
- "days": "Day(s)"
+ "allow-admin-data-source": {
+ "description": "When enabled, users can choose between admin and read-only data sources. When disabled, users are forced to use read-only data sources if configured, otherwise fall back to admin data sources.",
+ "self": "Allow querying the admin data source"
},
- "inactive-session-timeout": {
- "self": "Inactive session timeout",
- "description": "The session expiration time if no activity is detected for the user. The users will be forced to log out when they reach the limit.",
- "hours": "Hour(s)"
+ "announcement": {
+ "self": "Announcement"
},
- "no-limit": "No limit when the value <= 0",
"announcement-alert-level": {
"description": "Level",
"field": {
+ "critical": "Critical",
"info": "Normal",
- "warning": "Warning",
- "critical": "Critical"
+ "warning": "Warning"
}
},
"announcement-text": {
- "self": "Title",
"description": "To hide the announcement, leave it empty.",
- "placeholder": "Input announcement title"
- },
- "extra-link": {
- "self": "Link",
- "placeholder": "Input announcement link"
+ "placeholder": "Input announcement title",
+ "self": "Title"
},
- "log": "Log",
"audit-log-stdout": {
- "enable": "Enable audit logging to stdout",
- "description": "Output structured JSON audit logs to stdout for ingestion by log aggregators (Splunk, ELK, Datadog, Loki). Requires TEAM or ENTERPRISE license."
- },
- "enable-debug": {
- "enable": "Enable debug level log for the backend service"
+ "description": "Output structured JSON audit logs to stdout for ingestion by log aggregators (Splunk, ELK, Datadog, Loki). Requires TEAM or ENTERPRISE license.",
+ "enable": "Enable audit logging to stdout"
},
- "title": "Workspace title",
- "logo": "Logo",
- "logo-aspect": "The suggested logo size should be 5:2 aspect ratio, e.g 100 x 40.",
- "select-logo": "Upload a file",
- "drag-logo": "or drag here",
- "logo-upload-tip": "{{extension}} up to {{size}} MiB",
"branding": "Branding",
- "account": "Account",
- "security": "Security",
- "announcement": {
- "self": "Announcement"
- },
- "product-improvement": {
- "self": "Product Improvement",
- "participate": "Participate in improvement program",
- "description": "Help improve Bytebase by sharing anonymous usage data"
- },
- "failed-to-update-setting": "Failed to update setting \"{{title}}\"",
- "config-updated": "Configuration is updated.",
"config-partly-updated": "Configuration partly updated.",
+ "config-updated": "Configuration is updated.",
+ "data-copy": "Enable data copying",
+ "data-export": "Enable data export",
"default-landing-page": {
+ "default-view-changed-to-sql-editor": "The workspace's default view has been changed to SQL Editor.",
+ "go-to-sql-editor": "Go to SQL Editor",
"self": "Default landing page",
- "workspace": {
- "self": "Workspace",
- "description": "Use issue to request, review, rollout, and version database changes, suitable for teams with access control and CI & CD workflow."
- },
"sql-editor": {
- "self": "SQL Editor",
- "description": "Use SQL Editor to execute database changes directly, suitable for single-person use or environments that do not require supervision."
- },
- "default-view-changed-to-sql-editor": "The workspace's default view has been changed to SQL Editor.",
- "go-to-sql-editor": "Go to SQL Editor"
- },
- "data-export": "Enable data export",
- "data-copy": "Enable data copying",
- "allow-admin-data-source": {
- "self": "Allow querying the admin data source",
- "description": "When enabled, users can choose between admin and read-only data sources. When disabled, users are forced to use read-only data sources if configured, otherwise fall back to admin data sources."
- },
- "maximum-sql-result": {
- "size": {
- "self": "Maximum SQL result size",
- "description": "Limit the output SQL query result size.",
- "default": "Default limit {{limit}} MB"
+ "description": "Use SQL Editor to execute database changes directly, suitable for single-person use or environments that do not require supervision.",
+ "self": "SQL Editor"
},
- "rows": {
- "self": "Maximum SQL result rows",
- "description": "Limit the output rows in SQL query result.",
- "rows": "Rows"
+ "workspace": {
+ "description": "Use issue to request, review, rollout, and version database changes, suitable for teams with access control and CI & CD workflow.",
+ "self": "Workspace"
}
},
- "query-data-policy": {
- "timeout": {
- "self": "Maximum query time",
- "description": "The maximum time allowed for a query to run."
- },
- "seconds": "Seconds"
- },
- "watermark": {
- "enable": "Enable watermark",
- "description": "Display watermarks on pages, including username, ID and email."
+ "disallow-password-signin": {
+ "description": "Users cannot sign in with email & password, only SSO is allowed.",
+ "enable": "Disallow signin with email & password",
+ "require-sso-setup": "A functional SSO must be created first, or users won't be able to log in."
},
- "maximum-role-expiration": {
- "self": "Maximum role expiration",
- "description": "Maximum role expiration is the maximum period a role can be granted to a user, will apply on all project roles expect the project owner.",
- "days": "Day(s)",
- "never-expires": "Never expires"
+ "disallow-signup": {
+ "description": "Users cannot self-service signup and can only be invited by the workspace admin.",
+ "enable": "Disallow self-service signup"
},
"domain-restriction": {
- "self": "Workspace Domain",
"description": "Specify the domain that could be used as the email domain for workspace members.",
"domain-input-placeholder": "Please input domain, e.g. example.com",
"members-restriction": {
- "self": "Members restriction",
- "description": "Restrict sign-in to users with email addresses from the specified domains."
- }
- }
- }
- }
- },
- "database": {
- "classification": {
- "description": "Define classification levels to apply consistent masking policies across columns and databases."
- },
- "edit-environment": "Edit Environment",
- "edit-labels": "Edit Labels",
- "engine": "Engine",
- "filter-database": "Filter database",
- "selected-n-databases": "{{n}} database(s) selected",
- "successfully-transferred-databases": "Successfully transferred databases",
- "sync-schema-button": "Sync Schema",
- "sync-status": "Sync status",
- "sync-status-failed": "Sync failed",
- "transfer-project": "Transfer Project",
- "unassign": "Unassign"
- },
- "bbkit": {
- "confirm-button": {
- "sure-to-delete": "Are you sure to delete?"
- }
- },
- "role": {
- "workspace-roles": {
- "self": "Workspace roles"
- },
- "project-roles": {
- "self": "Project roles"
- },
- "custom-roles": {
- "self": "Custom roles"
+ "description": "Restrict sign-in to users with email addresses from the specified domains.",
+ "self": "Members restriction"
+ },
+ "self": "Workspace Domain"
+ },
+ "drag-logo": "or drag here",
+ "enable-debug": {
+ "enable": "Enable debug level log for the backend service"
+ },
+ "external-url": {
+ "cannot-edit-flag": "External URL cannot be changed because it is set via --external-url command-line flag",
+ "description": "The external URL where user visits Bytebase, must start with http:// or https://.",
+ "self": "External URL"
+ },
+ "extra-link": {
+ "placeholder": "Input announcement link",
+ "self": "Link"
+ },
+ "failed-to-update-setting": "Failed to update setting \"{{title}}\"",
+ "id": "Workspace ID",
+ "id-description": "The unique, read-only workspace id.",
+ "inactive-session-timeout": {
+ "description": "The session expiration time if no activity is detected for the user. The users will be forced to log out when they reach the limit.",
+ "hours": "Hour(s)",
+ "self": "Inactive session timeout"
+ },
+ "log": "Log",
+ "logo": "Logo",
+ "logo-aspect": "The suggested logo size should be 5:2 aspect ratio, e.g 100 x 40.",
+ "logo-upload-tip": "{{extension}} up to {{size}} MiB",
+ "maximum-role-expiration": {
+ "days": "Day(s)",
+ "description": "Maximum role expiration is the maximum period a role can be granted to a user, will apply on all project roles expect the project owner.",
+ "never-expires": "Never expires",
+ "self": "Maximum role expiration"
+ },
+ "maximum-sql-result": {
+ "rows": {
+ "description": "Limit the output rows in SQL query result.",
+ "rows": "Rows",
+ "self": "Maximum SQL result rows"
+ },
+ "size": {
+ "default": "Default limit {{limit}} MB",
+ "description": "Limit the output SQL query result size.",
+ "self": "Maximum SQL result size"
+ }
+ },
+ "no-limit": "No limit when the value <= 0",
+ "password-restriction": {
+ "min-length": "Minimum length for password should no less than {{min}} characters",
+ "password-rotation": "Require users reset their password every {{day}} days",
+ "require-letter": "The password must contain at least one letter, regardless of upper case or lower case",
+ "require-number": "The password must contain at least one number",
+ "require-reset-password-for-first-login": "Require users reset their password after the 1st time login",
+ "require-special-character": "The password must contain at least one special character",
+ "require-uppercase-letter": "The password must contain at least one upper case letter",
+ "self": "Password Restriction"
+ },
+ "product-improvement": {
+ "description": "Help improve Bytebase by sharing anonymous usage data",
+ "participate": "Participate in improvement program",
+ "self": "Product Improvement"
+ },
+ "query-data-policy": {
+ "seconds": "Seconds",
+ "timeout": {
+ "description": "The maximum time allowed for a query to run.",
+ "self": "Maximum query time"
+ }
+ },
+ "refresh-token-duration": {
+ "days": "Day(s)",
+ "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
+ "hours": "Hour(s)",
+ "self": "Refresh token duration"
+ },
+ "require-2fa": {
+ "description": "Users who do not have two-factor authentication enabled for their personal accounts will be forced to configure.",
+ "enable": "Require two-factor authentication for all users"
+ },
+ "security": "Security",
+ "select-logo": "Upload a file",
+ "title": "Workspace title",
+ "watermark": {
+ "description": "Display watermarks on pages, including username, ID and email.",
+ "enable": "Enable watermark"
+ }
+ }
},
- "import-from-role": "Import from role",
- "select-role": "Select role",
- "self": "Role",
- "setting": {
- "add": "Add role",
- "edit": "Edit role",
- "title-placeholder": "Input role title",
- "description-placeholder": "Input role description",
- "description": "Defining custom roles. You may apply them to project members and used in custom approval."
+ "im": {
+ "add-another-im": "Add Another IM",
+ "add-im-integration": "Add IM Integration"
},
- "title": "Title"
- },
- "policy": {
- "rollout": {
- "auto": "Automatic",
- "auto-info": "If all check pass, the change will be rolled out and executed automatically.",
- "name": "Rollout Policy",
- "tip": "The policy is applied to issues retroactively.",
- "info": "Tasks can be executed by users with '{{permission}}' permission or the following roles."
+ "im-integration": {
+ "description": "The IM integration will be used to push direct messages to users for specific issue events. Works with the project webhook."
},
- "environment-tier": {
- "name": "Environment Tier",
- "description": "The environment will appear differently from other environments.",
- "mark-env-as-production": "Mark as production environment"
- }
- },
- "sql-review": {
- "title": "SQL Review",
- "configure-policy": "Configure policy"
- },
- "environment": {
- "successfully-updated-environment": "Successfully updated environment '{{name}}'.",
- "delete": "Delete this environment",
- "delete-description": "Delete environment will also remove it from related instances and databases. You cannot undo this action",
- "create": "Create Environment",
- "reorder": "Reorder Environments"
- },
- "custom-approval": {
- "rule": {
- "first-match-wins": "Rules are evaluated in order. First matching rule applies."
+ "mcp": {
+ "auth": {
+ "description": "OAuth authentication is required on first connection. Ensure you have appropriate Bytebase permissions.",
+ "title": "Authentication Required"
+ },
+ "description": "Connect AI assistants to Bytebase using the Model Context Protocol.",
+ "first-prompt": {
+ "description": "Once connected, try asking your AI assistant:",
+ "example": "List all projects in my Bytebase instance",
+ "title": "Your First Prompt"
+ },
+ "general-config": {
+ "title": "Option 1: JSON Configuration"
+ },
+ "quick-start": {
+ "description": "Alternatively, use one of these CLI commands.",
+ "title": "Option 2: CLI Commands"
+ },
+ "setup": {
+ "add-to-config": "Add this JSON to your MCP client configuration file."
+ },
+ "title": "MCP Integration"
},
- "approval-flow": {
- "add-rule": "Add rule",
- "create-approval-flow": "Create approval flow",
- "edit-rule": "Edit rule",
- "fallback-rules": "Fallback Rules",
- "fallback-rules-hint": "Fallback rules are evaluated only when no other rules match.",
- "self": "Approval Flow",
- "skip": "No approval required",
- "node": {
- "add": "Add node",
- "approver": "Approver",
- "delete": "Delete approval node",
- "description": "Only one approval is required on this node when there are multiple approvers.",
- "nodes": "Approval nodes",
- "order": "Order"
+ "members": {
+ "action": {
+ "deactivate-confirm-title": "Are you sure to deactivate?",
+ "reactivate-confirm-title": "Are you sure to reactivate"
},
- "template": {
- "presets-title": "Presets",
- "preset-descriptions": {
- "drop-or-truncate": "Require approval for DROP TABLE or TRUNCATE statements.",
- "fallback": "A catch-all rule that matches all requests. Place at the end of your rules list.",
- "high-affected-rows": "Require approval when affected rows exceed 100."
+ "add-member": "Add member",
+ "add-user": "Add user",
+ "cannot-revoke-self": "You cannot revoke yourself",
+ "entra-sync": {
+ "description": "Sync users and groups from Entra ID (formerly Azure AD) or Okta to your Bytebase instance.",
+ "endpoint": "Endpoint",
+ "endpoint-tip": "Users and groups will be synced to Bytebase via this endpoint.",
+ "reset-token": "Reset token",
+ "reset-token-warning": "You need to update the application provisioning config.",
+ "secret-token": "Secret Token",
+ "secret-token-tip": "The verification token for the endpoint. Please keep it in secret.",
+ "self": "Sync from SCIM"
+ },
+ "grant-access": "Grant Access",
+ "groups": {
+ "add-group": "Add Group",
+ "external-readonly": "External group is read-only.",
+ "form": {
+ "description": "Description",
+ "email": "Email",
+ "email-tips": "The email should be unique, and it cannot be changed after creation.",
+ "role": {
+ "member": "Group member",
+ "owner": "Group owner"
+ },
+ "title": "Title"
},
- "presets": {
- "drop-or-truncate": "Drop/Truncate Table",
- "fallback": "Fallback Rule",
- "high-affected-rows": "High Affected Rows"
- }
- }
+ "n-members": "{{n}} members",
+ "self": "Groups",
+ "update-group": "Update Group",
+ "workspace-domain-required": "Please set a workspace domain first."
+ },
+ "inactive-users": "Inactive users",
+ "revoke-access": "Revoke Access",
+ "revoke-access-alert": "Are you sure to revoke access?",
+ "revoke-allusers-alert": "Revoke \"All users\" will revoke related roles from all other users in your workspace. Are you sure to continue?",
+ "revoked": "Revoked",
+ "search-member": "Search member",
+ "select-account-hint": "You can search for users and groups, or input the entire email to select the service account or workload identity.",
+ "select-account_one": "Select account",
+ "select-account_other": "Select accounts",
+ "select-role_one": "Select role",
+ "select-role_other": "Select roles",
+ "service-account": "Service Account",
+ "show-inactive": "Show inactive accounts",
+ "table": {
+ "account": "Account",
+ "groups": "Groups",
+ "roles": "Roles"
+ },
+ "update-user": "Update User",
+ "view-by-members": "View by members",
+ "view-by-roles": "View by roles",
+ "workload-identity": "Workload Identity"
},
- "risk": {
- "description": "Risk assessment automatically evaluates database changes and assigns risk levels based on the type of operation being performed.",
- "how-it-works": "How it works",
- "how-it-works-description": "When you create a database change, Bytebase automatically analyzes the SQL statements and assigns a risk level (Low, Moderate, or High) based on predefined rules.",
- "risk-levels": "Risk Levels",
- "risk-level-high": "High risk operations include destructive changes like DROP TABLE, TRUNCATE, or large-scale data modifications.",
- "risk-level-moderate": "Moderate risk operations include standard DDL changes like adding columns or indexes.",
- "risk-level-low": "Low risk operations include SELECT queries and minor schema changes that are unlikely to cause issues.",
- "integration": "Integration with Approval Flow",
- "integration-description": "Risk levels integrate with the Custom Approval system. You can configure approval flows that require different levels of review based on the assessed risk level of a change."
+ "profile": {
+ "password": "Password",
+ "password-confirm": "Password Confirm",
+ "password-confirm-placeholder": "Confirm new password",
+ "password-hint": "Password should follow restriction setting",
+ "password-mismatch": "New password mismatch",
+ "phone": "Phone",
+ "phone-tips": "Be sure to include the country code +1xxxxxx"
},
- "risk-rule": {
- "risk": {
- "namespace": {
- "change_database": "Change Database",
- "create_database": "Create Database",
- "data_export": "Export Data",
- "request-role": "Request Role",
- "request-access": "Request Just-In-Time Access"
+ "sensitive-data": {
+ "algorithms": {
+ "add": "Add algorithm",
+ "edit": "Edit algorithm",
+ "error": {
+ "salt-required": "Salt is required",
+ "slice-invalid-number": "Slice start or end is not a valid number",
+ "slice-overlap": "The slice range cannot overlap",
+ "slice-required": "Slice is required",
+ "substitution-length": "Substitution should be less than 16 bytes",
+ "substitution-required": "Substitution is required"
},
- "risk-level": {
- "default": "Default",
- "high": "High",
- "moderate": "Moderate",
- "low": "Low"
- }
- }
- }
- },
- "identity-provider": {
- "test-connection-success": "Test Connection Successful",
- "userinfo-description": "The matched user information.",
- "claims-description": "The following claims were returned by the identity provider. This information can help you configure field mappings.",
- "no-claims": "No claims returned by the identity provider.",
- "test-connection": "Test Connection",
- "delete-warning": "Are you sure you want to delete this identity provider? Users who signed up via this SSO will not be able to sign in with it anymore. If password sign-in is disabled in your workspace settings, these users may be locked out completely.",
- "identity-provider-update-failed": "Failed to update identity provider",
- "identity-provider-permission-denied": "Permission denied",
- "identity-provider-deleted": "Identity provider deleted successfully",
- "identity-provider-delete-failed": "Failed to delete identity provider",
- "identity-provider-created": "Identity provider created successfully",
- "identity-provider-create-failed": "Failed to create identity provider"
- },
- "error-page": {
- "not-found": "Not Found"
- },
- "instance": {
- "successfully-archived-instance": "Successfully archived the instance '{{0}}'.",
- "successfully-restored-instance": "Successfully restored the instance '{{0}}'.",
- "archive-instance-instance-name": "Archive instance '{{0}}'?",
- "archived-instances-will-not-be-displayed": "Archived instances will not be displayed.",
- "force-archive-description": "Force to archive. All databases will be unassigned.",
- "syncing": "Syncing ...",
- "sync": {
- "self": "Sync instance",
- "sync-all-tip": "Database sync is asynchronous and might take a few seconds to minutes",
- "sync-all": "Sync all databases",
- "sync-new": "Only sync new databases"
- },
- "selected-n-instances_one": "{{count}} instance selected",
- "selected-n-instances_other": "{{count}} instances selected",
- "advanced-search": {
- "scope": {
- "host": {
- "title": "Host",
- "description": "Filter by instance host. Please input the value then press the Enter."
+ "full-mask": {
+ "self": "Full mask",
+ "substitution": "Substitution",
+ "substitution-label": "Substitution is the string used to replace the original value, the max length of the string is 16 bytes."
},
- "port": {
- "title": "Port",
- "description": "Filter by instance port. Please input the value then press the Enter."
+ "inner-outer-mask": {
+ "inner-label": "Inner mask masks the interior part of a string. The prefix and suffix represent the unmasked parts of the data.",
+ "inner-mask": "Inner Mask",
+ "outer-label": "Outer mask masks the left and right ends of a string. The prefix and suffix represent the masked parts of the data.",
+ "outer-mask": "Outer Mask",
+ "prefix-length": "Prefix Length",
+ "self": "Inner / Outer mask",
+ "suffix-length": "Suffix Length",
+ "type": "Mask Type"
+ },
+ "md5-mask": {
+ "salt": "Salt",
+ "salt-label": "Salt is used to generate a hash from the original value.",
+ "self": "MD5 mask"
+ },
+ "range-mask": {
+ "label": "Range mask will replace the original value from start index to end index (end not included) with the substitution. The index starts from 0.",
+ "self": "Range mask",
+ "slice-end": "Slice end",
+ "slice-start": "Slice start",
+ "substitution": "Substitution"
+ },
+ "table": {
+ "masking-type": "Masking Type"
}
+ },
+ "classification": {
+ "empty-classification": "The \"classification\" field is empty",
+ "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
+ "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children).",
+ "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
+ "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
+ "invalid-json": "Invalid JSON format",
+ "missing-classification": "Missing \"classification\" field",
+ "missing-levels": "Missing \"levels\" field"
+ },
+ "global-rules": {
+ "condition-order": "Condition order",
+ "delete-rule-tip": "Delete this rule?",
+ "description": "Use global rule to apply masking in batch, e.g. all columns named as \"email\" will be masked with the specific semantic type and apply the masking algorithm.",
+ "error": {
+ "invalid-condition": "Condition is invalid",
+ "missing-semantic-type": "Semantic type is required"
+ },
+ "re-order": "Re-order"
+ },
+ "semantic-types": {
+ "add-from-template": "Add from template",
+ "label": "Columns having the same semantic type will use the same masking algorithms.",
+ "select": "Select semantic type",
+ "table": {
+ "delete": "Delete this semantic type?",
+ "description": "Description",
+ "icon": "Icon",
+ "masking-algorithm": "Masking Algorithm",
+ "semantic-type": "Semantic Type"
+ },
+ "template": {
+ "description": "You can apply built-in semantic types from the template. Built-in template cannot be changed.",
+ "duplicate-warning": "Semantic type \"{{title}}\" already exists"
+ },
+ "use-predefined-type": "Use Predefined Type"
}
},
- "filter-instance-name": "Filter instance name"
- },
- "create-db": {
- "new-database-name": "New database name",
- "database-owner-name": "Database owner name",
- "cluster": "Cluster",
- "reserved-db-error": "{{databaseName}} is a reserved name",
- "new-collection-name": "New Collection Name"
- },
- "db": {
- "character-set": "Character set",
- "collation": "Collation",
- "encoding": "Encoding",
- "failed-to-sync-schema": "Failed to sync schema",
- "start-to-sync-schema": "Start to sync schema",
- "successfully-synced-schema": "Successfully synced schema"
- },
- "issue": {
- "labels": "Issue Labels"
- },
- "quick-action": {
- "add-instance": "Add Instance",
- "create-db": "Create database",
- "create-project": "Create Project",
- "new-db": "New DB",
- "new-project": "New Project"
- },
- "landing": {
- "quick-link": {
- "visit-prjects": "Visit Projects",
- "visit-issues": "Visit Issues",
- "manage": "Manage quick link",
- "self": "Quick Link"
+ "sidebar": {
+ "audit-log": "Audit Logs",
+ "custom-roles": "Custom Roles",
+ "data-classification": "Data Classification",
+ "general": "General",
+ "global-masking": "Global Masking",
+ "im-integration": "IM",
+ "mcp": "MCP",
+ "members": "Members",
+ "members-and-groups": "Members & Groups",
+ "sso": "SSO",
+ "subscription": "Subscription",
+ "users-and-groups": "Users & Groups"
},
- "last-visit": "Last visit",
- "changelog-for-version": "Changelog for {{version}}"
- },
- "remind": {
- "release": {
- "new-version-available-with-tag": "New version {{tag}} is available"
+ "sso": {
+ "create": "Create SSO",
+ "delete": "Delete this SSO",
+ "description": "Single Sign-On (SSO) is an authentication method that enables users to authenticate with multiple applications and websites via a single set of credentials.",
+ "form": {
+ "auth-url": "Authorization URL",
+ "auth-url-description": "The link to OAuth login page",
+ "auth-url-placeholder": "e.g. https://github.com/login/oauth/authorize",
+ "authentication-style": "Authentication Style",
+ "base-dn": "Base DN",
+ "base-dn-description": "The base DN to search for users",
+ "base-dn-placeholder": "e.g. ou=users,dc=example,dc=com",
+ "bind-dn": "Bind DN",
+ "bind-dn-description": "The DN of the user to bind as for search requests",
+ "bind-dn-placeholder": "e.g. uid=system,ou=Users,dc=example,dc=com",
+ "bind-password": "Bind Password",
+ "configuration": "Configuration",
+ "configuration-description": "Configure the connection settings for your identity provider",
+ "custom-template-description": "Configure custom OAuth 2.0 provider",
+ "display-name": "Bytebase user's display name",
+ "display-name-placeholder": "e.g. name, displayName",
+ "domain": "Domain",
+ "domain-description": "The identity provider's domain name",
+ "domain-optional-hint": "Optional: Use to concat with identifier if it is not in email format",
+ "general-setting-description": "Provide basic information about your identity provider.",
+ "github-template-description": "Sign in with GitHub accounts",
+ "gitlab-template-description": "Sign in with GitLab accounts",
+ "google-template-description": "Sign in with Google accounts",
+ "groups": "Bytebase user's groups",
+ "groups-description": "Used for group-based access control (OIDC providers only)",
+ "groups-placeholder": "e.g. groups",
+ "host-placeholder": "e.g. ldap.example.com",
+ "identifier": "Bytebase user's email",
+ "identifier-placeholder": "e.g. login, email",
+ "identifier-tips": "It should be a unique string. And if it is not in email format, it will be spliced with domain.",
+ "identity-provider-needed-information": "Create your SSO application with the following information.",
+ "in-header": "In Header",
+ "in-header-description": "Send credentials using HTTP Basic Authorization",
+ "in-parameters": "In Parameters",
+ "in-parameters-description": "Send credentials in POST body (recommended)",
+ "issuer-url-description": "The OIDC issuer URL (well-known configuration will be auto-discovered)",
+ "issuer-url-placeholder": "e.g. https://acme.okta.com",
+ "ldap-description": "Connect with LDAP providers like Microsoft Active Directory, OpenLDAP",
+ "ldaps": "LDAPS",
+ "ldaps-description": "Use TLS from the beginning (port 636)",
+ "microsoft-entra-template-description": "Sign in with Microsoft Entra ID",
+ "name": "Name",
+ "name-description": "The display name to be shown to the users",
+ "none": "None",
+ "none-description": "No encryption (not recommended for production)",
+ "oauth2-description": "Connect with OAuth 2.0 providers like Google, GitHub, GitLab",
+ "oidc-description": "Connect with OpenID Connect providers like Microsoft Entra ID (Azure AD), Okta, Auth0",
+ "openid-scopes-description": "Space-separated list of OIDC scopes (openid is required)",
+ "phone": "Bytebase user's phone number",
+ "phone-placeholder": "e.g. phone, mobile",
+ "provider-type-readonly-hint": "Provider type cannot be changed after creation",
+ "redirect-url": "Authorization redirect URL",
+ "redirect-url-description": "It will be used to fill in the appropriate field in the identity provider application form.",
+ "scopes": "Scopes",
+ "scopes-description": "A space-separated list of scopes to be carried when accessing the Auth URL",
+ "scopes-placeholder": "e.g. user email profile",
+ "scopes-placeholder-oidc": "e.g. openid profile email",
+ "security-options": "Security Options",
+ "security-protocol": "Security Protocol",
+ "skip-tls-verification": "Skip TLS Certificate Verification",
+ "skip-tls-warning": "Only enable this for development or testing purposes",
+ "starttls": "StartTLS",
+ "starttls-description": "Upgrade connection to TLS (recommended)",
+ "template-description": "Choose a pre-configured template or set up a custom OAuth 2.0 provider",
+ "token-url": "Token URL",
+ "token-url-description": "The API address for obtaining accessToken",
+ "token-url-placeholder": "e.g. https://github.com/login/oauth/access_token",
+ "type": "Type",
+ "type-description": "Choose the type of identity provider you want to configure",
+ "use-template": "Use template",
+ "user-filter": "User Filter",
+ "user-filter-description": "The filter to search for users (%s will be replaced with username)",
+ "user-filter-placeholder": "e.g. (uid=%s)",
+ "user-info-url": "User Information URL",
+ "user-info-url-description": "The API address for obtaining user information by accessToken",
+ "user-info-url-placeholder": "e.g. https://api.github.com/user",
+ "user-information-mapping": "User information mapping",
+ "user-information-mapping-description": "Maps the field names from user info API to the Bytebase user."
+ }
}
},
- "banner": {
- "external-url": "Bytebase has not configured --external-url"
+ "sql-editor": {
+ "self": "SQL Editor"
},
- "project": {
- "create-modal": {
- "success-prompt": "Successfully created project {{name}}.",
- "project-name": "Project Name"
+ "sql-review": {
+ "configure-policy": "Configure policy",
+ "title": "SQL Review"
+ },
+ "subscription": {
+ "contact-us": "Contact us",
+ "current": "Current plan",
+ "description": "You can upload your Bytebase license to unlock pro/enterprise features.",
+ "enterprise-free-trial": "{{days}}-day free Enterprise trial",
+ "expired": "expired",
+ "expires-at": "Expires at",
+ "inquire-enterprise-plan": "Inquire Enterprise Plan",
+ "instance-assignment": {
+ "assign-license": "Assign License",
+ "license": "License",
+ "missing-license-attention": "You need to assign license to the instance to enable this feature.",
+ "used-and-total-license": "Assigned / Total Instance License",
+ "used-and-total-user": "Active / Total User Limit"
},
- "batch": {
- "archive": {
- "success_one": "Successfully archived {{count}} project",
- "success_other": "Successfully archived {{count}} projects",
- "error": "Failed to archive projects",
- "title_one": "Archive {{count}} Project?",
- "title_other": "Archive {{count}} Projects?",
- "description": "This will archive the selected projects. You can restore them later if needed."
+ "max-instance-count": "Max instance count",
+ "plan": {
+ "enterprise": {
+ "desc": "Extra security, compliance, and permission features. Dedicated support with SLA.",
+ "label": "",
+ "title": "Enterprise"
},
- "delete": {
- "success_one": "Successfully deleted {{count}} project",
- "success_other": "Successfully deleted {{count}} projects",
- "error": "Failed to delete projects",
- "title_one": "Delete {{count}} Project?",
- "title_other": "Delete {{count}} Projects?",
- "description": "This will permanently delete the selected projects and move all databases to the default project.",
- "warning": "This action cannot be undone. All project data including issues, configurations, and history will be permanently removed."
+ "free": {
+ "desc": "Team essentials to manage database development lifecycle.",
+ "label": "",
+ "title": "Community"
},
- "selected_one": "{{count}} project selected",
- "selected_other": "{{count}} projects selected"
+ "team": {
+ "desc": "More policies to standardize and facilitate collaboration across teams.",
+ "label": "",
+ "title": "Pro"
+ },
+ "title": "Community",
+ "try": "Start free trial"
},
- "filter-projects": "Filter projects",
- "table": {
- "name": "Name"
+ "plan-compare": "Compare features between different plans",
+ "purchase": {
+ "accept-terms-prefix": "I accept the",
+ "and": "and",
+ "billing-period": "Billing Period",
+ "cancel": "Cancel Subscription",
+ "cancel-confirm": "Are you sure you want to cancel your subscription?",
+ "cancel-pending": "Your subscription has been canceled and will end on {{date}}.",
+ "canceled": "Subscription canceled",
+ "custom": "Custom",
+ "discount": {
+ "month-off": "{{value}} month free",
+ "percentage-off": "first month {{value}}% off",
+ "price-off": "${{value}} off"
+ },
+ "enterprise-description": "Scale your business securely while staying compliant.",
+ "free-description": "Designed for solo devs, side-projects, and experiments.",
+ "manage-invoices": "Manage Invoices",
+ "payment-info": "Payment Info",
+ "pending-description": "Please wait while we confirm your payment. This usually takes a few seconds.",
+ "pending-title": "Completing your purchase...",
+ "per-user-per-month": "/ user monthly",
+ "privacy-policy": "Privacy policy",
+ "pro-description": "Built for teams creating production-ready applications.",
+ "seats": "Users",
+ "see-comparison": "See detailed feature comparison",
+ "subscribe": "Subscribe now",
+ "terms-of-service": "Terms of Service",
+ "total-price": "Total Price",
+ "update": "Update Subscription"
+ },
+ "request-n-days-trial": "Request {{days}} days trial (no credit card required)",
+ "require-subscription": "This feature requires {{requiredPlan}} subscription, please purchase Bytebase license to unlock it.",
+ "required-plan-with-trial": "This feature requires {{requiredPlan}}. {{startTrial}}",
+ "trial-for-days": "You can start a free trial for {{days}} days - no credit card required.",
+ "trialing": "trialing",
+ "try-for-free": "Free trial",
+ "update": {
+ "failure": {
+ "description": "Please check if your license is valid.",
+ "title": "Failed to update license"
+ },
+ "success": {
+ "description": "Premium features in subscription plan unlocked.",
+ "title": "Successfully updated license"
+ }
+ },
+ "upload-license": "Upload license",
+ "usage": {
+ "instance-count": {
+ "runoutof": "You have run out of your {{total}} instance quota.",
+ "title": "Instance count limit"
+ },
+ "user-count": {
+ "remaining": "Your total user quota is {{total}}, with only {{count}} users remaining.",
+ "runoutof": "You have run out of your {{total}} user quota.",
+ "title": "User count limit",
+ "upgrade": "Upgrade to get more user quota."
+ }
}
},
- "resource": {
- "delete-warning-with-resources": "The \"{{name}}\" is used by following resources:",
- "delete-warning-retry": "Please remove it from these resources then retry again.",
- "delete-warning": "The \"{{name}}\" will be deleted. This action cannot be undone."
- },
- "sql-editor": {
- "self": "SQL Editor"
+ "two-factor": {
+ "enabled": "2FA Enabled"
}
}
diff --git a/frontend/src/react/locales/es-ES.json b/frontend/src/react/locales/es-ES.json
index 43ab0fa80a..1a268f1d24 100644
--- a/frontend/src/react/locales/es-ES.json
+++ b/frontend/src/react/locales/es-ES.json
@@ -1,236 +1,407 @@
{
+ "audit-log": {
+ "advanced-search": {
+ "scope": {
+ "actor": {
+ "description": "Buscar por el actor del registro de auditoría",
+ "title": "Actor"
+ },
+ "level": {
+ "description": "Buscar por el nivel del registro de auditoría",
+ "title": "Nivel"
+ },
+ "method": {
+ "description": "Buscar por el método del registro de auditoría",
+ "title": "Método"
+ }
+ }
+ },
+ "export-tooltip": "Debe seleccionar hora de inicio y fin dentro de 30 días",
+ "table": {
+ "actor": "Actor",
+ "created-ts": "Hora",
+ "latency": "Latencia",
+ "level": "Nivel",
+ "method": "Método",
+ "request": "Solicitud",
+ "response": "Respuesta",
+ "service-data": "Datos de Servicio",
+ "status": "Estado"
+ }
+ },
+ "banner": {
+ "external-url": "Bytebase no ha configurado --external-url"
+ },
+ "bbkit": {
+ "confirm-button": {
+ "sure-to-delete": "¿Estás seguro de que deseas eliminar?"
+ }
+ },
+ "cel": {
+ "condition": {
+ "add": "Agregar condición",
+ "add-condition-in-group-placeholder": "Agregar {{plus}} para agregar condición",
+ "add-group": "Agregar grupo de condiciones",
+ "add-raw-expression": "Agregar expresión cruda",
+ "add-root-condition-placeholder": "Haga clic en \"Agregar condición\" o \"Agregar grupo de condiciones\" para agregar una condición",
+ "description-tips": "Una condición es una regla que se puede configurar mediante una expresión. Por ejemplo, la condición \"Entorno es prod\" coincidirá con las incidencias ejecutadas en el entorno \"prod\".",
+ "group": {
+ "and": {
+ "description": "Todos los siguientes son verdaderos..."
+ },
+ "or": {
+ "description": "Cualquiera de los siguientes es verdadero..."
+ }
+ },
+ "input-value": "Valor de entrada",
+ "input-value-press-enter": "Ingrese el valor, presione Enter para confirmar",
+ "select-value": "Seleccionar valor",
+ "self": "Condición"
+ }
+ },
"common": {
- "filter-by-name": "Filtrar por nombre",
- "loading": "Cargando",
- "no-data": "Sin datos",
+ "add": "Agregar",
+ "add-permissions": "Agregar permisos",
+ "added": "Agregado",
+ "address": "Dirección",
"all": "Todos",
- "edit": "Editar",
- "updated": "Actualizado",
- "learn-more": "Aprender más",
- "revert": "Revertir",
+ "archive": "Archivo",
+ "archived": "Archivada",
+ "back": "Volver",
"cancel": "Cancelar",
- "save": "Guardar",
- "confirm": "Confirmar",
+ "cannot-undo-this-action": "No se puede deshacer esta acción",
"clear": "Limpiar",
- "add": "Agregar",
- "warning": "Advertencia",
- "environment-name": "Nombre del entorno",
- "environment": "Entorno",
+ "close": "Cerrar",
+ "configure": "Configurar",
+ "configure-now": "Configurar ahora",
+ "confirm": "Confirmar",
"confirm-and-update": "Confirmar y actualizar",
- "cannot-undo-this-action": "No se puede deshacer esta acción",
- "delete": "Eliminar",
+ "copied": "Copiado",
+ "copy": "Copiar",
"create": "Crear",
- "leave-without-saving": "¿Salir sin guardar?",
+ "created": "Creado",
+ "delete": "Eliminar",
+ "delete-resource": "Delete {{type}}",
"deleted": "Eliminado",
- "reorder": "Reordenar",
- "close": "Cerrar",
- "general": "General",
- "type": "Tipo",
+ "description": "Descripción",
"discard-changes": "Descartar cambios",
- "update": "Actualizar",
- "copied": "Copiado",
- "copy": "Copiar",
- "back": "Volver",
- "next": "Siguiente",
+ "edit": "Editar",
+ "email": "Correo electrónico",
+ "environment": "Entorno",
+ "environment-name": "Nombre del entorno",
+ "export": "Exportar",
+ "failed": "Error",
+ "file-selector": {
+ "size-limit": "El tamaño del archivo debe ser menor que {{size}} MiB",
+ "type-limit": "Solo se admiten archivos {{extension}}"
+ },
+ "filter-by-name": "Filtrar por nombre",
+ "from": "Desde",
+ "general": "General",
+ "groups": "Grupos",
"id": "ID",
- "name": "Nombre",
- "sensitive-placeholder": "Sensible - solo escritura",
- "unassigned": "No asignado",
- "archive": "Archivo",
- "restore": "Restaurar",
- "delete-resource": "Delete {{type}}",
+ "instance": "Instancia",
+ "is-required": "is required",
"labels": "Etiquetas",
- "state": "Estado",
- "address": "Dirección",
- "rows-per-page": "Filas por página",
+ "learn-more": "Aprender más",
+ "leave-without-saving": "¿Salir sin guardar?",
"load-more": "Cargar más",
- "configure-now": "Configurar ahora",
- "restored": "Restored",
- "archived": "Archivada",
- "select-all": "Seleccionar todo",
- "total-n-items": "Total {{n}} elementos",
- "search": "Buscar",
+ "loading": "Cargando",
+ "members_one": "Miembro",
+ "members_other": "Miembros",
+ "missing-required-permission": "Faltan permisos requeridos {{permissions}}",
"n-items-selected": "{{n}} elementos seleccionados",
- "permissions": "Permisos",
- "added": "Agregado",
- "description": "Descripción",
+ "name": "Nombre",
+ "next": "Siguiente",
+ "no-data": "Sin datos",
+ "ok": "OK",
"operations": "Operaciones",
- "title": "Título",
- "missing-required-permission": "Faltan permisos requeridos {{permissions}}",
+ "permissions": "Permisos",
+ "project": "Proyecto",
+ "reorder": "Reordenar",
"required-permission": "Permisos necesarios",
"required-workspace-permission": "Se requieren los siguientes permisos para inicializar el espacio de trabajo UX",
- "add-permissions": "Agregar permisos",
+ "restore": "Restaurar",
+ "restored": "Restored",
+ "revert": "Revertir",
+ "rows-per-page": "Filas por página",
+ "save": "Guardar",
+ "search": "Buscar",
+ "select": "Seleccionar",
+ "select-all": "Seleccionar todo",
+ "sensitive-placeholder": "Sensible - solo escritura",
+ "state": "Estado",
"system": "Sistema",
- "created": "Creado",
- "upload": "Subir",
+ "title": "Título",
+ "to": "Hasta",
+ "total-n-items": "Total {{n}} elementos",
+ "type": "Tipo",
+ "unassigned": "No asignado",
"unlimited": "Ilimitado",
- "file-selector": {
- "type-limit": "Solo se admiten archivos {{extension}}",
- "size-limit": "El tamaño del archivo debe ser menor que {{size}} MiB"
- },
- "ok": "OK",
- "failed": "Error",
- "instance": "Instancia",
- "project": "Proyecto",
- "select": "Seleccionar",
- "export": "Exportar",
+ "update": "Actualizar",
+ "updated": "Actualizado",
+ "upload": "Subir",
+ "users": "Usuarios",
"view": "Ver",
"view-details": "Ver Detalles",
- "from": "Desde",
- "to": "Hasta"
+ "warning": "Advertencia",
+ "you": "tu",
+ "copy-failed": "Copy failed"
},
- "audit-log": {
- "export-tooltip": "Debe seleccionar hora de inicio y fin dentro de 30 días",
- "table": {
- "created-ts": "Hora",
- "actor": "Actor",
- "level": "Nivel",
- "method": "Método",
- "request": "Solicitud",
- "response": "Respuesta",
- "status": "Estado",
- "latency": "Latencia",
- "service-data": "Datos de Servicio"
- },
- "advanced-search": {
- "scope": {
- "actor": {
- "title": "Actor",
- "description": "Buscar por el actor del registro de auditoría"
+ "create-db": {
+ "cluster": "Clúster",
+ "database-owner-name": "Nombre del propietario de la base de datos",
+ "new-collection-name": "Nuevo Nombre de Colección",
+ "new-database-name": "Nuevo nombre de la base de datos",
+ "reserved-db-error": "{{databaseName}} es un nombre reservado"
+ },
+ "custom-approval": {
+ "approval-flow": {
+ "add-rule": "Agregar regla",
+ "create-approval-flow": "Crear flujo de aprobación",
+ "edit-rule": "Editar regla",
+ "fallback-rules": "Reglas de respaldo",
+ "fallback-rules-hint": "Las reglas de respaldo solo se evalúan cuando ninguna otra regla coincide.",
+ "node": {
+ "add": "Agregar nodo",
+ "approver": "Aprobador",
+ "delete": "Eliminar nodo de aprobación",
+ "description": "Solo se requiere una aprobación en este nodo cuando hay múltiples aprobadores.",
+ "nodes": "Nodos de aprobación",
+ "order": "Orden"
+ },
+ "self": "Flujo de aprobación",
+ "skip": "No se requiere aprobación",
+ "template": {
+ "preset-descriptions": {
+ "drop-or-truncate": "Requerir aprobación para sentencias DROP TABLE o TRUNCATE.",
+ "fallback": "Una regla general que coincide con todas las solicitudes. Colóquela al final de su lista de reglas.",
+ "high-affected-rows": "Requerir aprobación cuando las filas afectadas excedan 100."
},
- "method": {
- "title": "Método",
- "description": "Buscar por el método del registro de auditoría"
+ "presets": {
+ "drop-or-truncate": "Eliminar/Truncar Tabla",
+ "fallback": "Regla de respaldo",
+ "high-affected-rows": "Alto Número de Filas"
},
- "level": {
- "title": "Nivel",
- "description": "Buscar por el nivel del registro de auditoría"
+ "presets-title": "Plantillas"
+ }
+ },
+ "risk": {
+ "description": "La evaluación de riesgos evalúa automáticamente los cambios en la base de datos y asigna niveles de riesgo según el tipo de operación que se realiza.",
+ "how-it-works": "Cómo funciona",
+ "how-it-works-description": "Cuando crea un cambio en la base de datos, Bytebase analiza automáticamente las sentencias SQL y asigna un nivel de riesgo (Bajo, Moderado o Alto) basándose en reglas predefinidas.",
+ "integration": "Integración con Flujo de Aprobación",
+ "integration-description": "Los niveles de riesgo se integran con el sistema de Aprobación Personalizada. Puede configurar flujos de aprobación que requieran diferentes niveles de revisión según el nivel de riesgo evaluado de un cambio.",
+ "risk-level-high": "Las operaciones de alto riesgo incluyen cambios destructivos como DROP TABLE, TRUNCATE o modificaciones de datos a gran escala.",
+ "risk-level-low": "Las operaciones de bajo riesgo incluyen consultas SELECT y cambios menores en el esquema que es poco probable que causen problemas.",
+ "risk-level-moderate": "Las operaciones de riesgo moderado incluyen cambios DDL estándar como agregar columnas o índices.",
+ "risk-levels": "Niveles de Riesgo"
+ },
+ "risk-rule": {
+ "risk": {
+ "namespace": {
+ "change_database": "Cambiar base de datos",
+ "create_database": "Crear base de datos",
+ "data_export": "Exportar datos",
+ "request-access": "Solicitar acceso Just-In-Time",
+ "request-role": "Rol de solicitud"
+ },
+ "risk-level": {
+ "default": "Por defecto",
+ "high": "Alto",
+ "low": "Bajo",
+ "moderate": "Moderado"
}
}
+ },
+ "rule": {
+ "first-match-wins": "Las reglas se evalúan en orden. Se aplica la primera regla coincidente."
}
},
- "cel": {
- "condition": {
- "input-value": "Valor de entrada",
- "select-value": "Seleccionar valor",
- "input-value-press-enter": "Ingrese el valor, presione Enter para confirmar",
- "group": {
- "or": {
- "description": "Cualquiera de los siguientes es verdadero..."
- },
- "and": {
- "description": "Todos los siguientes son verdaderos..."
- }
- },
- "add-condition-in-group-placeholder": "Agregar {{plus}} para agregar condición",
- "add-root-condition-placeholder": "Haga clic en \"Agregar condición\" o \"Agregar grupo de condiciones\" para agregar una condición",
- "add": "Agregar condición",
- "add-raw-expression": "Agregar expresión cruda",
- "add-group": "Agregar grupo de condiciones",
- "description-tips": "Una condición es una regla que se puede configurar mediante una expresión. Por ejemplo, la condición \"Entorno es prod\" coincidirá con las incidencias ejecutadas en el entorno \"prod\".",
- "self": "Condición"
- }
- },
- "subscription": {
- "trial-for-days": "Puedes iniciar una prueba gratuita por {{days}} días - no se requiere tarjeta de crédito.",
- "required-plan-with-trial": "Esta función requiere {{requiredPlan}}. {{startTrial}}",
- "instance-assignment": {
- "missing-license-attention": "Debe asignar una licencia a la instancia para habilitar esta función.",
- "assign-license": "Asignar licencia",
- "license": "Licencia",
- "used-and-total-user": "Límite de usuarios activos/totales",
- "used-and-total-license": "Licencia asignada / total"
+ "database": {
+ "classification": {
+ "description": "Define classification levels to apply consistent masking policies across columns and databases."
},
- "request-n-days-trial": "Solicite una prueba de {{days}} días (no se requiere tarjeta de crédito)",
- "usage": {
- "instance-count": {
- "title": "Límite de cantidad de instancias",
- "runoutof": "Te has quedado sin tu cuota de instancias {{total}}."
+ "edit-environment": "Editar entorno",
+ "edit-labels": "Editar etiquetas",
+ "engine": "Motor",
+ "filter-database": "Filtrar base de datos",
+ "selected-n-databases": "{{n}} base(s) de datos seleccionada(s)",
+ "successfully-transferred-databases": "Bases de datos transferidas exitosamente",
+ "sync-schema-button": "Sincronizar esquema",
+ "sync-status": "Estado de sincronización",
+ "sync-status-failed": "Sincronización fallida",
+ "transfer-project": "Transferir proyecto",
+ "unassign": "Desasignar"
+ },
+ "db": {
+ "character-set": "Juego de caracteres",
+ "collation": "Colación",
+ "encoding": "Codificación",
+ "failed-to-sync-schema": "Error al sincronizar el esquema",
+ "start-to-sync-schema": "Comenzar a sincronizar el esquema",
+ "successfully-synced-schema": "Esquema sincronizado exitosamente"
+ },
+ "environment": {
+ "create": "Crear entorno",
+ "delete": "Eliminar este entorno",
+ "delete-description": "Eliminar el entorno también lo eliminará de las instancias y bases de datos relacionadas. No se puede deshacer esta acción",
+ "reorder": "Reordenar entornos",
+ "successfully-updated-environment": "entorno '{{name}}' actualizado exitosamente."
+ },
+ "error-page": {
+ "not-found": "No encontrado"
+ },
+ "identity-provider": {
+ "claims-description": "El proveedor de identidad devolvió las siguientes notificaciones. Esta información puede ayudarle a configurar las asignaciones de campos.",
+ "delete-warning": "¿Seguro que desea eliminar este proveedor de identidad? Los usuarios que se registraron con este SSO ya no podrán iniciar sesión con él. Si el inicio de sesión con contraseña está deshabilitado en la configuración de su espacio de trabajo, es posible que estos usuarios queden completamente bloqueados.",
+ "identity-provider-create-failed": "No se pudo crear el proveedor de identidad",
+ "identity-provider-created": "Proveedor de identidad creado exitosamente",
+ "identity-provider-delete-failed": "No se pudo eliminar el proveedor de identidad",
+ "identity-provider-deleted": "Proveedor de identidad eliminado exitosamente",
+ "identity-provider-permission-denied": "Permiso denegado",
+ "identity-provider-update-failed": "No se pudo actualizar el proveedor de identidad",
+ "no-claims": "El proveedor de identidad no devolvió ninguna reclamación.",
+ "test-connection": "Probar conexión",
+ "test-connection-success": "Conexión de prueba exitosa",
+ "userinfo-description": "La información del usuario coincidente."
+ },
+ "instance": {
+ "advanced-search": {
+ "scope": {
+ "host": {
+ "description": "Filtrar por host de instancia. Introduce el valor y pulsa Intro.",
+ "title": "Host"
+ },
+ "port": {
+ "description": "Filtrar por puerto de instancia. Ingrese el valor y presione Enter.",
+ "title": "Puerto"
+ }
}
},
- "plan": {
- "free": {
- "title": "Comunitario",
- "label": "",
- "desc": "Elementos esenciales del equipo para centralizar la gestión del ciclo de vida de la base de datos."
- },
- "team": {
- "title": "Pro",
- "label": "",
- "desc": "Más políticas para estandarizar y facilitar la colaboración entre equipos."
- },
- "enterprise": {
- "title": "Empresarial",
- "label": "",
- "desc": "Funciones adicionales de seguridad, cumplimiento y permisos. Soporte dedicado con SLA."
- },
- "try": "Empezar la prueba gratuita",
- "title": "Plan"
+ "archive-instance-instance-name": "¿Archivar la instancia '{{0}}'?",
+ "archived-instances-will-not-be-displayed": "Las instancias archivadas no se mostrarán.",
+ "filter-instance-name": "Filtrar nombre de instancia",
+ "force-archive-description": "Forzar a archivar. Todas las bases de datos quedarán desasignadas.",
+ "selected-n-instances_one": "{{count}} instancia seleccionada",
+ "selected-n-instances_other": "{{count}} instancias seleccionadas",
+ "successfully-archived-instance": "Se archivó exitosamente la instancia '{{0}}'.",
+ "successfully-restored-instance": "Se restauró exitosamente la instancia '{{0}}'.",
+ "sync": {
+ "self": "Instancia de sincronización",
+ "sync-all": "Sincronizar todas las bases de datos",
+ "sync-all-tip": "La sincronización de la base de datos es asincrónica y puede tardar entre unos segundos y minutos.",
+ "sync-new": "Sincronizar únicamente bases de datos nuevas"
},
- "purchase": {
- "free-description": "Designed for solo devs, side-projects, and experiments.",
- "pro-description": "Built for teams creating production-ready applications.",
- "enterprise-description": "Scale your business securely while staying compliant.",
- "discount": {
- "percentage-off": "primer mes {{value}}% de descuento",
- "month-off": "{{value}} mes gratis",
- "price-off": "${{value}} de descuento"
- },
- "update": "Actualizar suscripción",
- "subscribe": "Suscribirse ahora",
- "cancel-confirm": "¿Está seguro de que desea cancelar su suscripción?",
- "canceled": "Suscripción cancelada",
- "pending-title": "Completando su compra...",
- "pending-description": "Por favor espere mientras confirmamos su pago. Esto suele tardar unos segundos.",
- "payment-info": "Información de pago",
- "total-price": "Precio total",
- "manage-invoices": "Gestionar facturas",
- "billing-period": "Período de facturación",
- "cancel-pending": "Su suscripción ha sido cancelada y finalizará el {{date}}.",
- "cancel": "Cancelar suscripción",
- "per-user-per-month": "/ usuario / mes",
- "custom": "Personalizado",
- "seats": "Usuarios",
- "accept-terms-prefix": "Acepto los",
- "terms-of-service": "Términos de servicio",
- "and": "y",
- "privacy-policy": "Política de privacidad",
- "see-comparison": "Ver comparación detallada de funciones"
+ "syncing": "Sincronizando..."
+ },
+ "issue": {
+ "labels": "Etiquetas de problema"
+ },
+ "landing": {
+ "changelog-for-version": "Registro de cambios para {{version}}",
+ "last-visit": "Última visita",
+ "quick-link": {
+ "manage": "Administrar enlace rápido",
+ "self": "Enlace rápido",
+ "visit-issues": "Problemas de visita",
+ "visit-prjects": "Visitar Proyectos"
+ }
+ },
+ "policy": {
+ "environment-tier": {
+ "description": "El entorno aparecerá de manera diferente a otros entornos.",
+ "mark-env-as-production": "Marcar como entorno de producción",
+ "name": "Nivel de Entorno"
},
- "current": "Plan actual",
- "contact-us": "Contáctenos",
- "update": {
- "success": {
- "title": "Licencia actualizada con éxito",
- "description": "Se desbloquearon funciones premium en el plan de suscripción."
+ "rollout": {
+ "auto": "Automático",
+ "auto-info": "Si se aprueban todas las comprobaciones, el cambio se implementará y ejecutará automáticamente.",
+ "info": "Las tareas pueden ser ejecutadas por usuarios con el permiso '{{permission}}' o los siguientes roles.",
+ "name": "Política de Implementación",
+ "tip": "La política se aplica retrospectivamente a las incidencias."
+ }
+ },
+ "project": {
+ "batch": {
+ "archive": {
+ "description": "Esto archivará los proyectos seleccionados. Podrás restaurarlos más tarde si lo necesitas.",
+ "error": "No se pudieron archivar los proyectos",
+ "success_one": "Proyecto {{count}} archivado correctamente",
+ "success_other": "Proyectos {{count}} archivados correctamente",
+ "title_one": "¿Archivar {{count}} Proyecto?",
+ "title_other": "¿Archivar {{count}} Proyectos?"
},
- "failure": {
- "title": "Error al actualizar la licencia",
- "description": "Por favor, comprueba si tu licencia es válida."
- }
+ "delete": {
+ "description": "Esto eliminará permanentemente los proyectos seleccionados y moverá todas las bases de datos al proyecto predeterminado.",
+ "error": "No se pudieron eliminar los proyectos",
+ "success_one": "Proyecto {{count}} eliminado correctamente",
+ "success_other": "Proyectos {{count}} eliminados correctamente",
+ "title_one": "¿Eliminar {{count}} Proyecto?",
+ "title_other": "¿Eliminar {{count}} Proyectos?",
+ "warning": "Esta acción no se puede deshacer. Todos los datos del proyecto, incluidos problemas, configuraciones e historial, se eliminarán permanentemente."
+ },
+ "selected_one": "{{count}} proyecto seleccionado",
+ "selected_other": "{{count}} proyectos seleccionados"
},
- "expired": "expirado",
- "trialing": "probando",
- "expires-at": "Expira el",
- "try-for-free": "Prueba gratis",
- "enterprise-free-trial": "{{days}}-días de prueba gratuita para la empresa",
- "inquire-enterprise-plan": "Consulta el Plan de Empresas",
- "upload-license": "Subir licencia",
- "description": "Puedes subir tu licencia Bytebase para desbloquear funciones de edición/empresa.",
- "plan-compare": "Compara características entre los diferentes planes",
- "max-instance-count": "Recuento máximo de instancias",
- "require-subscription": "Esta función requiere una suscripción a {{requiredPlan}}. Compre una licencia de Bytebase para desbloquearla."
+ "create-modal": {
+ "project-name": "Proyecto Nombre",
+ "success-prompt": "Proyecto {{name}} creado exitosamente."
+ },
+ "filter-projects": "Filtrar proyectos",
+ "table": {
+ "name": "Nombre"
+ }
+ },
+ "quick-action": {
+ "add-instance": "Agregar Instancia",
+ "create-db": "Crear base de datos",
+ "create-project": "Crear Proyecto",
+ "new-db": "Nueva BD",
+ "new-project": "Nuevo Proyecto"
+ },
+ "remind": {
+ "release": {
+ "new-version-available-with-tag": "La nueva versión {{tag}} está disponible"
+ }
+ },
+ "resource": {
+ "delete-warning": "Se eliminará el elemento \"{{name}}\". Esta acción no se puede deshacer.",
+ "delete-warning-retry": "Elimínelo de estos recursos y vuelva a intentarlo.",
+ "delete-warning-with-resources": "El \"{{name}}\" lo utilizan los siguientes recursos:"
},
"resource-id": {
+ "cannot-be-changed-later": "No se puede cambiar posteriormente.",
+ "description": "El ID de {{resource}} es un identificador único. No se puede cambiar una vez creado.",
+ "self": "ID de {{resource}}",
"validation": {
+ "duplicated": "El ID de {{resource}} ya existe. Por favor, elige otro.",
"empty": "El ID {{resource}} no puede estar vacío",
"overflow": "El ID de {{resource}} es demasiado largo. Debe tener menos de 64 caracteres.",
- "pattern": "La identificación {{recurso}} puede tener letras, dígitos o guiones minúsculas. Debe comenzar con una letra minúscula y terminar con una letra o número.",
- "duplicated": "El ID de {{resource}} ya existe. Por favor, elige otro."
+ "pattern": "La identificación {{recurso}} puede tener letras, dígitos o guiones minúsculas. Debe comenzar con una letra minúscula y terminar con una letra o número."
+ }
+ },
+ "role": {
+ "custom-roles": {
+ "self": "Roles personalizados"
},
- "self": "ID de {{resource}}",
- "cannot-be-changed-later": "No se puede cambiar posteriormente.",
- "description": "El ID de {{resource}} es un identificador único. No se puede cambiar una vez creado."
+ "import-from-role": "Importar desde el rol",
+ "project-roles": {
+ "self": "Roles de proyecto"
+ },
+ "select-role": "Seleccionar rol",
+ "self": "Rol",
+ "setting": {
+ "add": "Agregar rol",
+ "description": "Definición de roles personalizados. \nPuede aplicarlos a los miembros del proyecto y utilizarlos en un flujo de aprobación personalizado.",
+ "description-placeholder": "Ingrese la descripción del rol",
+ "edit": "Editar rol",
+ "title-placeholder": "Ingrese el título del rol"
+ },
+ "title": "Título",
+ "workspace-roles": {
+ "self": "Roles de espacio de trabajo"
+ }
},
"schema-template": {
"classification": {
@@ -238,655 +409,571 @@
}
},
"settings": {
- "sidebar": {
- "general": "General",
- "members": "Miembros",
- "users-and-groups": "Usuarios y grupos",
- "members-and-groups": "Miembros y grupos",
- "sso": "SSO",
- "subscription": "Suscripción",
- "audit-log": "Registros de auditoría",
- "custom-roles": "Roles personalizados",
- "global-masking": "Enmascaramiento Global",
- "data-classification": "Clasificación de datos",
- "im-integration": "Integración de IM",
- "mcp": "MCP"
- },
- "sensitive-data": {
- "classification": {
- "invalid-json": "Invalid JSON format",
- "missing-classification": "Missing \"classification\" field",
- "empty-classification": "The \"classification\" field is empty",
- "missing-levels": "Missing \"levels\" field",
- "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
- "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
- "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
- "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children)."
- },
- "global-rules": {
- "error": {
- "missing-semantic-type": "Se requiere el tipo semántico.",
- "invalid-condition": "La condición no es válida."
- },
- "condition-order": "Orden de condición",
- "delete-rule-tip": "¿Eliminar esta regla?",
- "re-order": "Reordenar",
- "description": "Utilice una regla global para aplicar el enmascaramiento en lote, por ejemplo, todas las columnas denominadas \"correo electrónico\" se enmascararán con el tipo semántico específico y se aplicará el algoritmo de enmascaramiento."
- },
- "semantic-types": {
- "table": {
- "semantic-type": "Tipo Semántico",
- "icon": "Icono",
- "description": "Descripción",
- "masking-algorithm": "Algoritmo de enmascaramiento",
- "delete": "¿Eliminar este tipo semántico?"
- },
- "select": "Seleccionar tipo semántico",
- "template": {
- "duplicate-warning": "El tipo semántico \"{{title}}\" ya existe",
- "description": "Puede aplicar tipos semánticos integrados desde la plantilla. La plantilla integrada no se puede modificar."
+ "general": {
+ "workspace": {
+ "access-token-duration": {
+ "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
+ "hours": "Hour(s)",
+ "minutes": "Minute(s)",
+ "self": "Access token duration"
},
- "use-predefined-type": "Utiliza el Tipo Predefinido",
- "label": "Las columnas que tengan el mismo tipo semántico utilizarán los mismos algoritmos de enmascaramiento.",
- "add-from-template": "Agregar desde plantilla"
- },
- "algorithms": {
- "full-mask": {
- "self": "Máscara completa",
- "substitution": "Sustitución",
- "substitution-label": "La sustitución es la cadena utilizada para reemplazar el valor original, la longitud máxima de la cadena es 16 bytes."
- },
- "range-mask": {
- "self": "Máscara de rango",
- "label": "La máscara de rango reemplazará el valor original desde el índice inicial hasta el índice final (final no incluido) con la sustitución. El índice comienza desde 0.",
- "slice-start": "Inicio de corte",
- "slice-end": "Fin del corte",
- "substitution": "Sustitución"
- },
- "md5-mask": {
- "self": "Máscara MD5",
- "salt": "Sal (Salt)",
- "salt-label": "La sal (Salt) se utiliza para generar un hash a partir del valor original."
- },
- "inner-outer-mask": {
- "self": "Máscara interna / externa",
- "type": "Tipo de máscara",
- "inner-label": "La máscara interna enmascara la parte interior de una cadena. El prefijo y el sufijo representan las partes no enmascaradas de los datos.",
- "outer-label": "La máscara externa enmascara los extremos izquierdo y derecho de una cadena. El prefijo y el sufijo representan las partes enmascaradas de los datos.",
- "inner-mask": "Mascarilla interior",
- "outer-mask": "Mascarilla exterior",
- "prefix-length": "Longitud del prefijo",
- "suffix-length": "Longitud del sufijo"
- },
- "error": {
- "slice-required": "Se requiere rebanada",
- "slice-invalid-number": "El inicio o el final del segmento no es un número válido",
- "slice-overlap": "El rango de corte no puede superponerse",
- "substitution-required": "Se requiere sustitución",
- "substitution-length": "La sustitución debe ser inferior a 16 bytes",
- "salt-required": "Se requiere sal"
- },
- "edit": "Editar algoritmo",
- "add": "Agregar algoritmo",
- "table": {
- "masking-type": "Tipo De Enmascaramiento"
- }
- }
- },
- "sso": {
- "delete": "Eliminar este SSO",
- "form": {
- "auth-url": "URL de autorización",
- "auth-url-placeholder": "p.ej. https://github.com/login/oauth/authorize",
- "auth-url-description": "El enlace a la página de inicio de sesión de OAuth",
- "token-url": "URL del token",
- "token-url-placeholder": "p.ej. https://github.com/login/oauth/access_token",
- "token-url-description": "La dirección API para obtener el token de acceso",
- "user-info-url": "URL de información del usuario",
- "user-info-url-placeholder": "p.ej. https://api.github.com/user",
- "user-info-url-description": "La dirección API para obtener la información del usuario mediante el token de acceso",
- "scopes": "Ámbitos",
- "scopes-placeholder": "p. ej. perfil de correo electrónico del usuario",
- "scopes-description": "Una lista separada por espacios de ámbitos que se llevarán al acceder a la URL de autenticación",
- "authentication-style": "Estilo de autenticación",
- "in-parameters": "En parámetros",
- "in-parameters-description": "Enviar credenciales en el cuerpo del POST (recomendado)",
- "in-header": "En el encabezado",
- "in-header-description": "Enviar credenciales mediante la autorización básica HTTP",
- "security-options": "Opciones de seguridad",
- "skip-tls-verification": "Omitir la verificación del certificado TLS",
- "skip-tls-warning": "Habilite esto solo para fines de desarrollo o prueba",
- "issuer-url-placeholder": "p. ej. https://acme.okta.com",
- "issuer-url-description": "La URL del emisor de OIDC (la configuración conocida se descubrirá automáticamente)",
- "scopes-placeholder-oidc": "p. ej. correo electrónico del perfil de OpenID",
- "openid-scopes-description": "Lista separada por espacios de ámbitos OIDC (se requiere openid)",
- "host-placeholder": "p. ej. ldap.example.com",
- "bind-dn": "Vincular DN",
- "bind-dn-placeholder": "p.ej. uid=sistema,ou=Usuarios,dc=ejemplo,dc=com",
- "bind-dn-description": "El DN del usuario al que se vinculará para las solicitudes de búsqueda",
- "bind-password": "Vincular contraseña",
- "base-dn": "DN base",
- "base-dn-placeholder": "p.ej. ou=usuarios,dc=ejemplo,dc=com",
- "base-dn-description": "El DN base para buscar usuarios",
- "user-filter": "Filtro de usuario",
- "user-filter-placeholder": "p. ej. (uid=%s)",
- "user-filter-description": "El filtro para buscar usuarios (%s será reemplazado por el nombre de usuario)",
- "security-protocol": "Protocolo de seguridad",
- "starttls": "StartTLS",
- "starttls-description": "Actualizar la conexión a TLS (recomendado)",
- "ldaps": "LDAPS",
- "ldaps-description": "Utilice TLS desde el principio (puerto 636)",
- "none": "Ninguno",
- "none-description": "Sin cifrado (no recomendado para producción)",
- "identifier-placeholder": "p. ej. inicio de sesión, correo electrónico",
- "identifier": "Correo electrónico de usuario de Bytebase",
- "identifier-tips": "Debe ser una cadena única. Y si no está en formato de correo electrónico, se empalmará con el dominio.",
- "display-name-placeholder": "p. ej. nombre, nombre para mostrar",
- "display-name": "Nombre para mostrar de usuario de Bytebase",
- "phone-placeholder": "p. ej. teléfono, móvil",
- "phone": "Número de teléfono de usuario de Bytebase",
- "groups-placeholder": "p. ej. grupos",
- "groups": "Grupos de usuarios de Bytebase",
- "groups-description": "Se utiliza para el control de acceso basado en grupos (solo proveedores de OIDC)",
- "provider-type-readonly-hint": "El tipo de proveedor no se puede cambiar después de la creación",
- "name": "Nombre",
- "name-description": "El nombre de visualización que se mostrará a los usuarios",
- "domain": "Dominio",
- "domain-description": "El nombre de dominio del proveedor de identidad",
- "domain-optional-hint": "Opcional: Úselo para concatenar con el identificador si no está en formato de correo electrónico",
- "configuration": "Configuración",
- "configuration-description": "Configure los ajustes de conexión para su proveedor de identidad",
- "user-information-mapping": "Mapeo de información del usuario",
- "user-information-mapping-description": "Mapea los nombres de campo de la API de información del usuario al usuario Bytebase.",
- "identity-provider-needed-information": "Cree su aplicación SSO con la siguiente información.",
- "redirect-url-description": "Se utilizará para completar el campo correspondiente en el formulario de la aplicación del proveedor de identidad.",
- "redirect-url": "URL de redireccionamiento de autorización",
- "type": "Tipo",
- "use-template": "Usar plantilla",
- "oauth2-description": "Conéctese con proveedores de OAuth 2.0 como Google, GitHub, GitLab",
- "oidc-description": "Conéctese con proveedores de OpenID Connect como Microsoft Entra ID (Azure AD), Okta, Auth0",
- "ldap-description": "Conéctese con proveedores LDAP como Microsoft Active Directory, OpenLDAP",
- "google-template-description": "Iniciar sesión con cuentas de Google",
- "github-template-description": "Iniciar sesión con cuentas de GitHub",
- "gitlab-template-description": "Iniciar sesión con cuentas de GitLab",
- "microsoft-entra-template-description": "Iniciar sesión con el ID de Microsoft Entra",
- "custom-template-description": "Configurar un proveedor OAuth 2.0 personalizado",
- "type-description": "Elija el tipo de proveedor de identidad que desea configurar",
- "template-description": "Elija una plantilla preconfigurada o configure un proveedor OAuth 2.0 personalizado",
- "general-setting-description": "Proporcione información básica sobre su proveedor de identidad."
- },
- "description": "Inicio de Sesión Único (SSO) es un método de autenticación que permite a los usuarios autenticarse en múltiples aplicaciones y sitios web a través de un solo conjunto de credenciales.",
- "create": "Crear SSO"
- },
- "im": {
- "add-im-integration": "Agregar integración de mensajería instantánea",
- "add-another-im": "Añadir otro IM"
- },
- "im-integration": {
- "description": "La integración de IM se utilizará para enviar mensajes directos a los usuarios para eventos de incidencias específicos. Funciona con el webhook del proyecto."
- },
- "mcp": {
- "first-prompt": {
- "example": "Listar todos los proyectos en mi instancia de Bytebase",
- "title": "Tu primer prompt",
- "description": "Una vez conectado, intente preguntar a su asistente de IA:"
- },
- "title": "Integración MCP",
- "description": "Conecte asistentes de IA a Bytebase usando el Model Context Protocol.",
- "auth": {
- "title": "Autenticación requerida",
- "description": "Se requiere autenticación OAuth en la primera conexión. Asegúrese de tener los permisos apropiados en Bytebase."
- },
- "general-config": {
- "title": "Opción 1: Configuración JSON"
- },
- "setup": {
- "add-to-config": "Agregue este JSON a su archivo de configuración del cliente MCP."
- },
- "quick-start": {
- "title": "Opción 2: Comandos CLI",
- "description": "Alternativamente, use uno de estos comandos CLI."
- }
- },
- "general": {
- "workspace": {
- "external-url": {
- "description": "La URL externa donde el usuario visita Bytebase, debe comenzar con http:// o https://.",
- "self": "URL Externa",
- "cannot-edit-flag": "La URL externa no se puede cambiar porque está configurada mediante el parámetro de línea de comandos --external-url"
- },
- "id": "ID del espacio de trabajo",
- "id-description": "La identificación única del espacio de trabajo de solo lectura.",
+ "account": "Cuenta",
"ai-assistant": {
- "enabled-in-saas": "Gemini AI is enabled automatically in the SaaS mode.",
- "enable-ai-assistant": "Habilitar el Asistente de IA",
- "description": "Utilice AI para ayudar en las tareas de desarrollo de bases de datos.",
- "provider": {
- "self": "Proveedor de IA",
- "open_ai": "Open AI",
- "azure_open_ai": "Azure Open AI",
- "gemini": "Gemini",
- "claude": "Claude"
- },
"api-key": {
- "self": "Clave de API",
"description": "Proporcionar clave API, solo lectura. {{viewDoc}}",
"find-my-key": "Encuentra mi llave",
- "placeholder": "Una clave de API generalmente comienza con sk-*****"
+ "placeholder": "Una clave de API generalmente comienza con sk-*****",
+ "self": "Clave de API"
},
+ "description": "Utilice AI para ayudar en las tareas de desarrollo de bases de datos.",
+ "enable-ai-assistant": "Habilitar el Asistente de IA",
+ "enabled-in-saas": "Gemini AI is enabled automatically in the SaaS mode.",
"endpoint": {
- "self": "Punto de conexión de API",
- "description": "Proporcione una implementación privada del Punto de conexión de API."
+ "description": "Proporcione una implementación privada del Punto de conexión de API.",
+ "self": "Punto de conexión de API"
},
"model": {
- "self": "Nombre del modelo",
- "description": "Suministro de implementación privada del nombre del modelo."
+ "description": "Suministro de implementación privada del nombre del modelo.",
+ "self": "Nombre del modelo"
+ },
+ "provider": {
+ "azure_open_ai": "Azure Open AI",
+ "claude": "Claude",
+ "gemini": "Gemini",
+ "open_ai": "Open AI",
+ "self": "Proveedor de IA"
},
"self": "Asistente de AI"
},
- "disallow-signup": {
- "enable": "Deshabilitar el registro de autoservicio",
- "description": "Una vez deshabilitado, los usuarios no pueden registrarse por sí mismos y solo pueden ser invitados por el administrador del espacio de trabajo."
- },
- "password-restriction": {
- "self": "Restricción de contraseña",
- "min-length": "La longitud mínima de la contraseña no debe ser inferior a {{min}} caracteres",
- "require-number": "Requiere que la contraseña contenga al menos un número",
- "require-letter": "Requiere que la contraseña contenga al menos una letra, independientemente de si es mayúscula o minúscula.",
- "require-uppercase-letter": "Requiere que la contraseña contenga al menos una letra mayúscula",
- "require-special-character": "Requiere que la contraseña contenga al menos un carácter especial",
- "require-reset-password-for-first-login": "Requerir que los usuarios restablezcan su contraseña después del primer inicio de sesión",
- "password-rotation": "Requerir que los usuarios restablezcan su contraseña cada {{day}} días"
- },
- "require-2fa": {
- "enable": "Requerir autenticación de dos factores para todos los usuarios",
- "description": "Cuando está habilitado, los usuarios que no tienen la autenticación de dos factores habilitada para sus cuentas personales serán obligados a configurarla."
- },
- "disallow-password-signin": {
- "enable": "No permitir el inicio de sesión con correo electrónico y contraseña",
- "require-sso-setup": "Primero se debe crear un SSO funcional o los usuarios no podrán iniciar sesión.",
- "description": "Los usuarios no pueden iniciar sesión con correo electrónico y contraseña, solo se permite SSO."
- },
- "access-token-duration": {
- "self": "Access token duration",
- "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
- "minutes": "Minute(s)",
- "hours": "Hour(s)"
- },
- "refresh-token-duration": {
- "self": "Refresh token duration",
- "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
- "hours": "Hour(s)",
- "days": "Day(s)"
+ "allow-admin-data-source": {
+ "description": "Cuando está habilitado, los usuarios pueden elegir entre fuentes de datos de administración y de solo lectura. Cuando está deshabilitado, los usuarios se ven obligados a usar fuentes de datos de solo lectura si están configuradas; de lo contrario, vuelven a usar fuentes de datos de administración.",
+ "self": "Permitir consultar la fuente de datos de administración"
},
- "inactive-session-timeout": {
- "self": "Tiempo de espera de sesión inactiva",
- "description": "Tiempo de expiración de la sesión si no se detecta actividad del usuario. Los usuarios serán forzados a cerrar sesión cuando alcancen el límite.",
- "hours": "Horas"
+ "announcement": {
+ "self": "Anuncio"
},
- "no-limit": "No hay límite cuando el valor <= 0",
"announcement-alert-level": {
"description": "Level",
"field": {
+ "critical": "Importante",
"info": "Común",
- "warning": "Advertencia",
- "critical": "Importante"
+ "warning": "Advertencia"
}
},
"announcement-text": {
- "self": "Título",
"description": "Para ocultar el anuncio, déjelo vacío.",
- "placeholder": "Título del anuncio de entrada"
- },
- "extra-link": {
- "self": "Enlace",
- "placeholder": "Enlace de anuncio de entrada"
+ "placeholder": "Título del anuncio de entrada",
+ "self": "Título"
},
- "log": "Registro",
"audit-log-stdout": {
- "enable": "Habilitar el registro de auditoría en la salida estándar",
- "description": "Generar registros de auditoría JSON estructurados en la salida estándar para su ingesta por agregadores de registros (Splunk, ELK, Datadog, Loki). Requiere licencia TEAM o ENTERPRISE."
- },
- "enable-debug": {
- "enable": "Habilitar el nivel de registro de depuración para el servicio backend"
+ "description": "Generar registros de auditoría JSON estructurados en la salida estándar para su ingesta por agregadores de registros (Splunk, ELK, Datadog, Loki). Requiere licencia TEAM o ENTERPRISE.",
+ "enable": "Habilitar el registro de auditoría en la salida estándar"
},
- "title": "Nombre del espacio de trabajo",
- "logo": "Logo",
- "logo-aspect": "El tamaño sugerido para el logo debería tener una proporción de 5:2, por ejemplo, 100 x 40.",
- "select-logo": "Subir un archivo",
- "drag-logo": "o arrastrar aquí",
- "logo-upload-tip": "{{extension}} hasta {{size}} MiB",
"branding": "Marca",
- "account": "Cuenta",
- "security": "Seguridad",
- "announcement": {
- "self": "Anuncio"
- },
- "product-improvement": {
- "self": "Mejora del Producto",
- "participate": "Participar en el programa de mejora",
- "description": "Ayuda a mejorar Bytebase compartiendo datos de uso anónimos"
- },
- "failed-to-update-setting": "No se pudo actualizar la configuración \"{{title}}\"",
- "config-updated": "La configuración se ha actualizado.",
"config-partly-updated": "Configuración parcialmente actualizada.",
+ "config-updated": "La configuración se ha actualizado.",
+ "data-copy": "Habilitar la copia de datos",
+ "data-export": "Habilitar la exportación de datos",
"default-landing-page": {
+ "default-view-changed-to-sql-editor": "La vista predeterminada del espacio de trabajo se ha cambiado al Editor SQL.",
+ "go-to-sql-editor": "Ir al Editor SQL",
"self": "Página de destino predeterminada",
- "workspace": {
- "self": "Espacio de trabajo",
- "description": "Utilice el problema para solicitar, revisar, implementar y versionar cambios en la base de datos, adecuado para equipos con control de acceso y flujo de trabajo de CI y CD."
- },
"sql-editor": {
- "self": "Editor de SQL",
- "description": "Utilice el Editor SQL para ejecutar cambios en la base de datos directamente, adecuado para uso de una sola persona o entornos que no requieren supervisión."
- },
- "default-view-changed-to-sql-editor": "La vista predeterminada del espacio de trabajo se ha cambiado al Editor SQL.",
- "go-to-sql-editor": "Ir al Editor SQL"
- },
- "data-export": "Habilitar la exportación de datos",
- "data-copy": "Habilitar la copia de datos",
- "allow-admin-data-source": {
- "self": "Permitir consultar la fuente de datos de administración",
- "description": "Cuando está habilitado, los usuarios pueden elegir entre fuentes de datos de administración y de solo lectura. Cuando está deshabilitado, los usuarios se ven obligados a usar fuentes de datos de solo lectura si están configuradas; de lo contrario, vuelven a usar fuentes de datos de administración."
- },
- "maximum-sql-result": {
- "size": {
- "self": "Tamaño máximo del resultado de SQL",
- "description": "Limite el tamaño del resultado de la consulta SQL de salida.",
- "default": "Límite predeterminado {{limit}} MB"
+ "description": "Utilice el Editor SQL para ejecutar cambios en la base de datos directamente, adecuado para uso de una sola persona o entornos que no requieren supervisión.",
+ "self": "Editor de SQL"
},
- "rows": {
- "self": "Máximo de filas de resultados de SQL",
- "description": "Limite las filas de salida en el resultado de la consulta SQL.",
- "rows": "Filas"
+ "workspace": {
+ "description": "Utilice el problema para solicitar, revisar, implementar y versionar cambios en la base de datos, adecuado para equipos con control de acceso y flujo de trabajo de CI y CD.",
+ "self": "Espacio de trabajo"
}
},
- "query-data-policy": {
- "timeout": {
- "self": "Tiempo máximo de consulta",
- "description": "El tiempo máximo permitido para la ejecución de una consulta."
- },
- "seconds": "Segundos"
- },
- "watermark": {
- "enable": "Activar marca de agua",
- "description": "Mostrar marcas de agua en las páginas, incluyendo el nombre de usuario, el ID y el correo electrónico."
+ "disallow-password-signin": {
+ "description": "Los usuarios no pueden iniciar sesión con correo electrónico y contraseña, solo se permite SSO.",
+ "enable": "No permitir el inicio de sesión con correo electrónico y contraseña",
+ "require-sso-setup": "Primero se debe crear un SSO funcional o los usuarios no podrán iniciar sesión."
},
- "maximum-role-expiration": {
- "self": "Caducidad máxima del rol",
- "description": "La expiración máxima del rol es el período máximo durante el cual se puede otorgar un rol a un usuario y se aplicará a todos los roles del proyecto excepto al propietario del proyecto.",
- "days": "Días)",
- "never-expires": "Nunca expira"
+ "disallow-signup": {
+ "description": "Una vez deshabilitado, los usuarios no pueden registrarse por sí mismos y solo pueden ser invitados por el administrador del espacio de trabajo.",
+ "enable": "Deshabilitar el registro de autoservicio"
},
"domain-restriction": {
- "self": "Dominio de espacio de trabajo",
"description": "Especifique el dominio que podría usarse como dominio de correo electrónico para los miembros del espacio de trabajo.",
"domain-input-placeholder": "Por favor ingrese el dominio, p.e. ejemplo.com",
"members-restriction": {
- "self": "Restricción de miembros",
- "description": "Restrinja el inicio de sesión a usuarios con direcciones de correo electrónico de los dominios especificados."
- }
- }
- }
- }
- },
- "database": {
- "classification": {
- "description": "Define classification levels to apply consistent masking policies across columns and databases."
- },
- "edit-environment": "Editar entorno",
- "engine": "Motor",
- "edit-labels": "Editar etiquetas",
- "filter-database": "Filtrar base de datos",
- "selected-n-databases": "{{n}} base(s) de datos seleccionada(s)",
- "successfully-transferred-databases": "Bases de datos transferidas exitosamente",
- "sync-schema-button": "Sincronizar esquema",
- "sync-status": "Estado de sincronización",
- "sync-status-failed": "Sincronización fallida",
- "transfer-project": "Transferir proyecto",
- "unassign": "Desasignar"
- },
- "bbkit": {
- "confirm-button": {
- "sure-to-delete": "¿Estás seguro de que deseas eliminar?"
- }
- },
- "role": {
- "workspace-roles": {
- "self": "Roles de espacio de trabajo"
- },
- "project-roles": {
- "self": "Roles de proyecto"
- },
- "custom-roles": {
- "self": "Roles personalizados"
+ "description": "Restrinja el inicio de sesión a usuarios con direcciones de correo electrónico de los dominios especificados.",
+ "self": "Restricción de miembros"
+ },
+ "self": "Dominio de espacio de trabajo"
+ },
+ "drag-logo": "o arrastrar aquí",
+ "enable-debug": {
+ "enable": "Habilitar el nivel de registro de depuración para el servicio backend"
+ },
+ "external-url": {
+ "cannot-edit-flag": "La URL externa no se puede cambiar porque está configurada mediante el parámetro de línea de comandos --external-url",
+ "description": "La URL externa donde el usuario visita Bytebase, debe comenzar con http:// o https://.",
+ "self": "URL Externa"
+ },
+ "extra-link": {
+ "placeholder": "Enlace de anuncio de entrada",
+ "self": "Enlace"
+ },
+ "failed-to-update-setting": "No se pudo actualizar la configuración \"{{title}}\"",
+ "id": "ID del espacio de trabajo",
+ "id-description": "La identificación única del espacio de trabajo de solo lectura.",
+ "inactive-session-timeout": {
+ "description": "Tiempo de expiración de la sesión si no se detecta actividad del usuario. Los usuarios serán forzados a cerrar sesión cuando alcancen el límite.",
+ "hours": "Horas",
+ "self": "Tiempo de espera de sesión inactiva"
+ },
+ "log": "Registro",
+ "logo": "Logo",
+ "logo-aspect": "El tamaño sugerido para el logo debería tener una proporción de 5:2, por ejemplo, 100 x 40.",
+ "logo-upload-tip": "{{extension}} hasta {{size}} MiB",
+ "maximum-role-expiration": {
+ "days": "Días)",
+ "description": "La expiración máxima del rol es el período máximo durante el cual se puede otorgar un rol a un usuario y se aplicará a todos los roles del proyecto excepto al propietario del proyecto.",
+ "never-expires": "Nunca expira",
+ "self": "Caducidad máxima del rol"
+ },
+ "maximum-sql-result": {
+ "rows": {
+ "description": "Limite las filas de salida en el resultado de la consulta SQL.",
+ "rows": "Filas",
+ "self": "Máximo de filas de resultados de SQL"
+ },
+ "size": {
+ "default": "Límite predeterminado {{limit}} MB",
+ "description": "Limite el tamaño del resultado de la consulta SQL de salida.",
+ "self": "Tamaño máximo del resultado de SQL"
+ }
+ },
+ "no-limit": "No hay límite cuando el valor <= 0",
+ "password-restriction": {
+ "min-length": "La longitud mínima de la contraseña no debe ser inferior a {{min}} caracteres",
+ "password-rotation": "Requerir que los usuarios restablezcan su contraseña cada {{day}} días",
+ "require-letter": "Requiere que la contraseña contenga al menos una letra, independientemente de si es mayúscula o minúscula.",
+ "require-number": "Requiere que la contraseña contenga al menos un número",
+ "require-reset-password-for-first-login": "Requerir que los usuarios restablezcan su contraseña después del primer inicio de sesión",
+ "require-special-character": "Requiere que la contraseña contenga al menos un carácter especial",
+ "require-uppercase-letter": "Requiere que la contraseña contenga al menos una letra mayúscula",
+ "self": "Restricción de contraseña"
+ },
+ "product-improvement": {
+ "description": "Ayuda a mejorar Bytebase compartiendo datos de uso anónimos",
+ "participate": "Participar en el programa de mejora",
+ "self": "Mejora del Producto"
+ },
+ "query-data-policy": {
+ "seconds": "Segundos",
+ "timeout": {
+ "description": "El tiempo máximo permitido para la ejecución de una consulta.",
+ "self": "Tiempo máximo de consulta"
+ }
+ },
+ "refresh-token-duration": {
+ "days": "Day(s)",
+ "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
+ "hours": "Hour(s)",
+ "self": "Refresh token duration"
+ },
+ "require-2fa": {
+ "description": "Cuando está habilitado, los usuarios que no tienen la autenticación de dos factores habilitada para sus cuentas personales serán obligados a configurarla.",
+ "enable": "Requerir autenticación de dos factores para todos los usuarios"
+ },
+ "security": "Seguridad",
+ "select-logo": "Subir un archivo",
+ "title": "Nombre del espacio de trabajo",
+ "watermark": {
+ "description": "Mostrar marcas de agua en las páginas, incluyendo el nombre de usuario, el ID y el correo electrónico.",
+ "enable": "Activar marca de agua"
+ }
+ }
},
- "import-from-role": "Importar desde el rol",
- "select-role": "Seleccionar rol",
- "self": "Rol",
- "setting": {
- "add": "Agregar rol",
- "edit": "Editar rol",
- "title-placeholder": "Ingrese el título del rol",
- "description-placeholder": "Ingrese la descripción del rol",
- "description": "Definición de roles personalizados. \nPuede aplicarlos a los miembros del proyecto y utilizarlos en un flujo de aprobación personalizado."
+ "im": {
+ "add-another-im": "Añadir otro IM",
+ "add-im-integration": "Agregar integración de mensajería instantánea"
},
- "title": "Título"
- },
- "policy": {
- "rollout": {
- "auto": "Automático",
- "auto-info": "Si se aprueban todas las comprobaciones, el cambio se implementará y ejecutará automáticamente.",
- "name": "Política de Implementación",
- "tip": "La política se aplica retrospectivamente a las incidencias.",
- "info": "Las tareas pueden ser ejecutadas por usuarios con el permiso '{{permission}}' o los siguientes roles."
+ "im-integration": {
+ "description": "La integración de IM se utilizará para enviar mensajes directos a los usuarios para eventos de incidencias específicos. Funciona con el webhook del proyecto."
},
- "environment-tier": {
- "name": "Nivel de Entorno",
- "description": "El entorno aparecerá de manera diferente a otros entornos.",
- "mark-env-as-production": "Marcar como entorno de producción"
- }
- },
- "sql-review": {
- "title": "Revisión de SQL",
- "configure-policy": "Configurar política"
- },
- "environment": {
- "successfully-updated-environment": "entorno '{{name}}' actualizado exitosamente.",
- "delete": "Eliminar este entorno",
- "delete-description": "Eliminar el entorno también lo eliminará de las instancias y bases de datos relacionadas. No se puede deshacer esta acción",
- "create": "Crear entorno",
- "reorder": "Reordenar entornos"
- },
- "custom-approval": {
- "rule": {
- "first-match-wins": "Las reglas se evalúan en orden. Se aplica la primera regla coincidente."
+ "mcp": {
+ "auth": {
+ "description": "Se requiere autenticación OAuth en la primera conexión. Asegúrese de tener los permisos apropiados en Bytebase.",
+ "title": "Autenticación requerida"
+ },
+ "description": "Conecte asistentes de IA a Bytebase usando el Model Context Protocol.",
+ "first-prompt": {
+ "description": "Una vez conectado, intente preguntar a su asistente de IA:",
+ "example": "Listar todos los proyectos en mi instancia de Bytebase",
+ "title": "Tu primer prompt"
+ },
+ "general-config": {
+ "title": "Opción 1: Configuración JSON"
+ },
+ "quick-start": {
+ "description": "Alternativamente, use uno de estos comandos CLI.",
+ "title": "Opción 2: Comandos CLI"
+ },
+ "setup": {
+ "add-to-config": "Agregue este JSON a su archivo de configuración del cliente MCP."
+ },
+ "title": "Integración MCP"
},
- "approval-flow": {
- "add-rule": "Agregar regla",
- "create-approval-flow": "Crear flujo de aprobación",
- "edit-rule": "Editar regla",
- "fallback-rules": "Reglas de respaldo",
- "fallback-rules-hint": "Las reglas de respaldo solo se evalúan cuando ninguna otra regla coincide.",
- "self": "Flujo de aprobación",
- "skip": "No se requiere aprobación",
- "node": {
- "add": "Agregar nodo",
- "approver": "Aprobador",
- "delete": "Eliminar nodo de aprobación",
- "description": "Solo se requiere una aprobación en este nodo cuando hay múltiples aprobadores.",
- "nodes": "Nodos de aprobación",
- "order": "Orden"
+ "members": {
+ "action": {
+ "deactivate-confirm-title": "¿Estás seguro de que deseas desactivar?",
+ "reactivate-confirm-title": "¿Estás seguro de que deseas reactivar?"
},
- "template": {
- "presets-title": "Plantillas",
- "preset-descriptions": {
- "drop-or-truncate": "Requerir aprobación para sentencias DROP TABLE o TRUNCATE.",
- "fallback": "Una regla general que coincide con todas las solicitudes. Colóquela al final de su lista de reglas.",
- "high-affected-rows": "Requerir aprobación cuando las filas afectadas excedan 100."
+ "add-member": "Agregar miembro",
+ "add-user": "Agregar usuario",
+ "cannot-revoke-self": "You cannot revoke yourself",
+ "entra-sync": {
+ "description": "Sincronice usuarios y grupos de Entra ID (anteriormente Azure AD) u Okta con su instancia de Bytebase.",
+ "endpoint": "Punto final",
+ "endpoint-tip": "Los usuarios y grupos se sincronizarán con Bytebase a través de este endpoint.",
+ "reset-token": "Restablecer token",
+ "reset-token-warning": "Debe actualizar la configuración de aprovisionamiento de aplicaciones de Entra.",
+ "secret-token": "Secret Token",
+ "secret-token-tip": "El token de verificación para el endpoint. Por favor, manténgalo en secreto.",
+ "self": "Sincronización desde SCIM"
+ },
+ "grant-access": "Conceder acceso",
+ "groups": {
+ "add-group": "Añadir grupo",
+ "external-readonly": "External group is read-only.",
+ "form": {
+ "description": "Descripción",
+ "email": "Correo electrónico",
+ "email-tips": "El correo electrónico debe ser único y no se puede cambiar después de su creación.",
+ "role": {
+ "member": "Miembro del grupo",
+ "owner": "Propietario del grupo"
+ },
+ "title": "Título"
},
- "presets": {
- "drop-or-truncate": "Eliminar/Truncar Tabla",
- "fallback": "Regla de respaldo",
- "high-affected-rows": "Alto Número de Filas"
- }
- }
+ "n-members": "{{n}} miembros",
+ "self": "Grupos",
+ "update-group": "Grupo de actualización",
+ "workspace-domain-required": "Primero configure un dominio de espacio de trabajo."
+ },
+ "inactive-users": "Usuarios inactivos",
+ "revoke-access": "Revocar acceso",
+ "revoke-access-alert": "¿Está seguro de revocar el acceso?",
+ "revoke-allusers-alert": "Revocar \"Todos los usuarios\" revocará los roles relacionados de todos los demás usuarios de su espacio de trabajo. ¿Desea continuar?",
+ "revoked": "Revocado",
+ "search-member": "Buscar miembro",
+ "select-account-hint": "Puede buscar usuarios y grupos, o introducir el correo electrónico completo para seleccionar la cuenta de servicio o identidad de carga de trabajo.",
+ "select-account_one": "Seleccionar cuenta",
+ "select-account_other": "Seleccionar cuentas",
+ "select-role_one": "Seleccionar rol",
+ "select-role_other": "Seleccionar roles",
+ "service-account": "Cuenta de Servicio",
+ "show-inactive": "Mostrar cuentas inactivas",
+ "table": {
+ "account": "Cuenta",
+ "groups": "Grupos",
+ "roles": "Roles"
+ },
+ "update-user": "Actualizar usuario",
+ "view-by-members": "Ver por miembros",
+ "view-by-roles": "Ver por roles",
+ "workload-identity": "Workload Identity"
},
- "risk": {
- "description": "La evaluación de riesgos evalúa automáticamente los cambios en la base de datos y asigna niveles de riesgo según el tipo de operación que se realiza.",
- "how-it-works": "Cómo funciona",
- "how-it-works-description": "Cuando crea un cambio en la base de datos, Bytebase analiza automáticamente las sentencias SQL y asigna un nivel de riesgo (Bajo, Moderado o Alto) basándose en reglas predefinidas.",
- "risk-levels": "Niveles de Riesgo",
- "risk-level-high": "Las operaciones de alto riesgo incluyen cambios destructivos como DROP TABLE, TRUNCATE o modificaciones de datos a gran escala.",
- "risk-level-moderate": "Las operaciones de riesgo moderado incluyen cambios DDL estándar como agregar columnas o índices.",
- "risk-level-low": "Las operaciones de bajo riesgo incluyen consultas SELECT y cambios menores en el esquema que es poco probable que causen problemas.",
- "integration": "Integración con Flujo de Aprobación",
- "integration-description": "Los niveles de riesgo se integran con el sistema de Aprobación Personalizada. Puede configurar flujos de aprobación que requieran diferentes niveles de revisión según el nivel de riesgo evaluado de un cambio."
+ "profile": {
+ "password": "Contraseña",
+ "password-confirm": "Confirmar contraseña",
+ "password-confirm-placeholder": "Confirmar nueva contraseña",
+ "password-hint": "La contraseña debe seguir la configuración de restricción",
+ "password-mismatch": "Nueva contraseña no coincide",
+ "phone": "Número de móvil",
+ "phone-tips": "Asegúrese de incluir el código del país +1xxxxxx"
},
- "risk-rule": {
- "risk": {
- "namespace": {
- "change_database": "Cambiar base de datos",
- "create_database": "Crear base de datos",
- "data_export": "Exportar datos",
- "request-role": "Rol de solicitud",
- "request-access": "Solicitar acceso Just-In-Time"
+ "sensitive-data": {
+ "algorithms": {
+ "add": "Agregar algoritmo",
+ "edit": "Editar algoritmo",
+ "error": {
+ "salt-required": "Se requiere sal",
+ "slice-invalid-number": "El inicio o el final del segmento no es un número válido",
+ "slice-overlap": "El rango de corte no puede superponerse",
+ "slice-required": "Se requiere rebanada",
+ "substitution-length": "La sustitución debe ser inferior a 16 bytes",
+ "substitution-required": "Se requiere sustitución"
},
- "risk-level": {
- "default": "Por defecto",
- "high": "Alto",
- "moderate": "Moderado",
- "low": "Bajo"
- }
- }
- }
- },
- "identity-provider": {
- "test-connection-success": "Conexión de prueba exitosa",
- "userinfo-description": "La información del usuario coincidente.",
- "claims-description": "El proveedor de identidad devolvió las siguientes notificaciones. Esta información puede ayudarle a configurar las asignaciones de campos.",
- "no-claims": "El proveedor de identidad no devolvió ninguna reclamación.",
- "test-connection": "Probar conexión",
- "delete-warning": "¿Seguro que desea eliminar este proveedor de identidad? Los usuarios que se registraron con este SSO ya no podrán iniciar sesión con él. Si el inicio de sesión con contraseña está deshabilitado en la configuración de su espacio de trabajo, es posible que estos usuarios queden completamente bloqueados.",
- "identity-provider-update-failed": "No se pudo actualizar el proveedor de identidad",
- "identity-provider-permission-denied": "Permiso denegado",
- "identity-provider-deleted": "Proveedor de identidad eliminado exitosamente",
- "identity-provider-delete-failed": "No se pudo eliminar el proveedor de identidad",
- "identity-provider-created": "Proveedor de identidad creado exitosamente",
- "identity-provider-create-failed": "No se pudo crear el proveedor de identidad"
- },
- "error-page": {
- "not-found": "No encontrado"
- },
- "instance": {
- "successfully-archived-instance": "Se archivó exitosamente la instancia '{{0}}'.",
- "successfully-restored-instance": "Se restauró exitosamente la instancia '{{0}}'.",
- "archive-instance-instance-name": "¿Archivar la instancia '{{0}}'?",
- "archived-instances-will-not-be-displayed": "Las instancias archivadas no se mostrarán.",
- "force-archive-description": "Forzar a archivar. Todas las bases de datos quedarán desasignadas.",
- "syncing": "Sincronizando...",
- "sync": {
- "self": "Instancia de sincronización",
- "sync-all-tip": "La sincronización de la base de datos es asincrónica y puede tardar entre unos segundos y minutos.",
- "sync-all": "Sincronizar todas las bases de datos",
- "sync-new": "Sincronizar únicamente bases de datos nuevas"
- },
- "selected-n-instances_one": "{{count}} instancia seleccionada",
- "selected-n-instances_other": "{{count}} instancias seleccionadas",
- "advanced-search": {
- "scope": {
- "host": {
- "title": "Host",
- "description": "Filtrar por host de instancia. Introduce el valor y pulsa Intro."
+ "full-mask": {
+ "self": "Máscara completa",
+ "substitution": "Sustitución",
+ "substitution-label": "La sustitución es la cadena utilizada para reemplazar el valor original, la longitud máxima de la cadena es 16 bytes."
},
- "port": {
- "title": "Puerto",
- "description": "Filtrar por puerto de instancia. Ingrese el valor y presione Enter."
+ "inner-outer-mask": {
+ "inner-label": "La máscara interna enmascara la parte interior de una cadena. El prefijo y el sufijo representan las partes no enmascaradas de los datos.",
+ "inner-mask": "Mascarilla interior",
+ "outer-label": "La máscara externa enmascara los extremos izquierdo y derecho de una cadena. El prefijo y el sufijo representan las partes enmascaradas de los datos.",
+ "outer-mask": "Mascarilla exterior",
+ "prefix-length": "Longitud del prefijo",
+ "self": "Máscara interna / externa",
+ "suffix-length": "Longitud del sufijo",
+ "type": "Tipo de máscara"
+ },
+ "md5-mask": {
+ "salt": "Sal (Salt)",
+ "salt-label": "La sal (Salt) se utiliza para generar un hash a partir del valor original.",
+ "self": "Máscara MD5"
+ },
+ "range-mask": {
+ "label": "La máscara de rango reemplazará el valor original desde el índice inicial hasta el índice final (final no incluido) con la sustitución. El índice comienza desde 0.",
+ "self": "Máscara de rango",
+ "slice-end": "Fin del corte",
+ "slice-start": "Inicio de corte",
+ "substitution": "Sustitución"
+ },
+ "table": {
+ "masking-type": "Tipo De Enmascaramiento"
}
+ },
+ "classification": {
+ "empty-classification": "The \"classification\" field is empty",
+ "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
+ "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children).",
+ "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
+ "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
+ "invalid-json": "Invalid JSON format",
+ "missing-classification": "Missing \"classification\" field",
+ "missing-levels": "Missing \"levels\" field"
+ },
+ "global-rules": {
+ "condition-order": "Orden de condición",
+ "delete-rule-tip": "¿Eliminar esta regla?",
+ "description": "Utilice una regla global para aplicar el enmascaramiento en lote, por ejemplo, todas las columnas denominadas \"correo electrónico\" se enmascararán con el tipo semántico específico y se aplicará el algoritmo de enmascaramiento.",
+ "error": {
+ "invalid-condition": "La condición no es válida.",
+ "missing-semantic-type": "Se requiere el tipo semántico."
+ },
+ "re-order": "Reordenar"
+ },
+ "semantic-types": {
+ "add-from-template": "Agregar desde plantilla",
+ "label": "Las columnas que tengan el mismo tipo semántico utilizarán los mismos algoritmos de enmascaramiento.",
+ "select": "Seleccionar tipo semántico",
+ "table": {
+ "delete": "¿Eliminar este tipo semántico?",
+ "description": "Descripción",
+ "icon": "Icono",
+ "masking-algorithm": "Algoritmo de enmascaramiento",
+ "semantic-type": "Tipo Semántico"
+ },
+ "template": {
+ "description": "Puede aplicar tipos semánticos integrados desde la plantilla. La plantilla integrada no se puede modificar.",
+ "duplicate-warning": "El tipo semántico \"{{title}}\" ya existe"
+ },
+ "use-predefined-type": "Utiliza el Tipo Predefinido"
}
},
- "filter-instance-name": "Filtrar nombre de instancia"
- },
- "db": {
- "start-to-sync-schema": "Comenzar a sincronizar el esquema",
- "character-set": "Juego de caracteres",
- "collation": "Colación",
- "encoding": "Codificación",
- "failed-to-sync-schema": "Error al sincronizar el esquema",
- "successfully-synced-schema": "Esquema sincronizado exitosamente"
- },
- "quick-action": {
- "add-instance": "Agregar Instancia",
- "create-project": "Crear Proyecto",
- "new-project": "Nuevo Proyecto",
- "create-db": "Crear base de datos",
- "new-db": "Nueva BD"
- },
- "landing": {
- "quick-link": {
- "visit-prjects": "Visitar Proyectos",
- "visit-issues": "Problemas de visita",
- "manage": "Administrar enlace rápido",
- "self": "Enlace rápido"
+ "sidebar": {
+ "audit-log": "Registros de auditoría",
+ "custom-roles": "Roles personalizados",
+ "data-classification": "Clasificación de datos",
+ "general": "General",
+ "global-masking": "Enmascaramiento Global",
+ "im-integration": "Integración de IM",
+ "mcp": "MCP",
+ "members": "Miembros",
+ "members-and-groups": "Miembros y grupos",
+ "sso": "SSO",
+ "subscription": "Suscripción",
+ "users-and-groups": "Usuarios y grupos"
},
- "last-visit": "Última visita",
- "changelog-for-version": "Registro de cambios para {{version}}"
- },
- "remind": {
- "release": {
- "new-version-available-with-tag": "La nueva versión {{tag}} está disponible"
+ "sso": {
+ "create": "Crear SSO",
+ "delete": "Eliminar este SSO",
+ "description": "Inicio de Sesión Único (SSO) es un método de autenticación que permite a los usuarios autenticarse en múltiples aplicaciones y sitios web a través de un solo conjunto de credenciales.",
+ "form": {
+ "auth-url": "URL de autorización",
+ "auth-url-description": "El enlace a la página de inicio de sesión de OAuth",
+ "auth-url-placeholder": "p.ej. https://github.com/login/oauth/authorize",
+ "authentication-style": "Estilo de autenticación",
+ "base-dn": "DN base",
+ "base-dn-description": "El DN base para buscar usuarios",
+ "base-dn-placeholder": "p.ej. ou=usuarios,dc=ejemplo,dc=com",
+ "bind-dn": "Vincular DN",
+ "bind-dn-description": "El DN del usuario al que se vinculará para las solicitudes de búsqueda",
+ "bind-dn-placeholder": "p.ej. uid=sistema,ou=Usuarios,dc=ejemplo,dc=com",
+ "bind-password": "Vincular contraseña",
+ "configuration": "Configuración",
+ "configuration-description": "Configure los ajustes de conexión para su proveedor de identidad",
+ "custom-template-description": "Configurar un proveedor OAuth 2.0 personalizado",
+ "display-name": "Nombre para mostrar de usuario de Bytebase",
+ "display-name-placeholder": "p. ej. nombre, nombre para mostrar",
+ "domain": "Dominio",
+ "domain-description": "El nombre de dominio del proveedor de identidad",
+ "domain-optional-hint": "Opcional: Úselo para concatenar con el identificador si no está en formato de correo electrónico",
+ "general-setting-description": "Proporcione información básica sobre su proveedor de identidad.",
+ "github-template-description": "Iniciar sesión con cuentas de GitHub",
+ "gitlab-template-description": "Iniciar sesión con cuentas de GitLab",
+ "google-template-description": "Iniciar sesión con cuentas de Google",
+ "groups": "Grupos de usuarios de Bytebase",
+ "groups-description": "Se utiliza para el control de acceso basado en grupos (solo proveedores de OIDC)",
+ "groups-placeholder": "p. ej. grupos",
+ "host-placeholder": "p. ej. ldap.example.com",
+ "identifier": "Correo electrónico de usuario de Bytebase",
+ "identifier-placeholder": "p. ej. inicio de sesión, correo electrónico",
+ "identifier-tips": "Debe ser una cadena única. Y si no está en formato de correo electrónico, se empalmará con el dominio.",
+ "identity-provider-needed-information": "Cree su aplicación SSO con la siguiente información.",
+ "in-header": "En el encabezado",
+ "in-header-description": "Enviar credenciales mediante la autorización básica HTTP",
+ "in-parameters": "En parámetros",
+ "in-parameters-description": "Enviar credenciales en el cuerpo del POST (recomendado)",
+ "issuer-url-description": "La URL del emisor de OIDC (la configuración conocida se descubrirá automáticamente)",
+ "issuer-url-placeholder": "p. ej. https://acme.okta.com",
+ "ldap-description": "Conéctese con proveedores LDAP como Microsoft Active Directory, OpenLDAP",
+ "ldaps": "LDAPS",
+ "ldaps-description": "Utilice TLS desde el principio (puerto 636)",
+ "microsoft-entra-template-description": "Iniciar sesión con el ID de Microsoft Entra",
+ "name": "Nombre",
+ "name-description": "El nombre de visualización que se mostrará a los usuarios",
+ "none": "Ninguno",
+ "none-description": "Sin cifrado (no recomendado para producción)",
+ "oauth2-description": "Conéctese con proveedores de OAuth 2.0 como Google, GitHub, GitLab",
+ "oidc-description": "Conéctese con proveedores de OpenID Connect como Microsoft Entra ID (Azure AD), Okta, Auth0",
+ "openid-scopes-description": "Lista separada por espacios de ámbitos OIDC (se requiere openid)",
+ "phone": "Número de teléfono de usuario de Bytebase",
+ "phone-placeholder": "p. ej. teléfono, móvil",
+ "provider-type-readonly-hint": "El tipo de proveedor no se puede cambiar después de la creación",
+ "redirect-url": "URL de redireccionamiento de autorización",
+ "redirect-url-description": "Se utilizará para completar el campo correspondiente en el formulario de la aplicación del proveedor de identidad.",
+ "scopes": "Ámbitos",
+ "scopes-description": "Una lista separada por espacios de ámbitos que se llevarán al acceder a la URL de autenticación",
+ "scopes-placeholder": "p. ej. perfil de correo electrónico del usuario",
+ "scopes-placeholder-oidc": "p. ej. correo electrónico del perfil de OpenID",
+ "security-options": "Opciones de seguridad",
+ "security-protocol": "Protocolo de seguridad",
+ "skip-tls-verification": "Omitir la verificación del certificado TLS",
+ "skip-tls-warning": "Habilite esto solo para fines de desarrollo o prueba",
+ "starttls": "StartTLS",
+ "starttls-description": "Actualizar la conexión a TLS (recomendado)",
+ "template-description": "Elija una plantilla preconfigurada o configure un proveedor OAuth 2.0 personalizado",
+ "token-url": "URL del token",
+ "token-url-description": "La dirección API para obtener el token de acceso",
+ "token-url-placeholder": "p.ej. https://github.com/login/oauth/access_token",
+ "type": "Tipo",
+ "type-description": "Elija el tipo de proveedor de identidad que desea configurar",
+ "use-template": "Usar plantilla",
+ "user-filter": "Filtro de usuario",
+ "user-filter-description": "El filtro para buscar usuarios (%s será reemplazado por el nombre de usuario)",
+ "user-filter-placeholder": "p. ej. (uid=%s)",
+ "user-info-url": "URL de información del usuario",
+ "user-info-url-description": "La dirección API para obtener la información del usuario mediante el token de acceso",
+ "user-info-url-placeholder": "p.ej. https://api.github.com/user",
+ "user-information-mapping": "Mapeo de información del usuario",
+ "user-information-mapping-description": "Mapea los nombres de campo de la API de información del usuario al usuario Bytebase."
+ }
}
},
- "banner": {
- "external-url": "Bytebase no ha configurado --external-url"
+ "sql-editor": {
+ "self": "Editor de SQL"
},
- "project": {
- "create-modal": {
- "success-prompt": "Proyecto {{name}} creado exitosamente.",
- "project-name": "Proyecto Nombre"
+ "sql-review": {
+ "configure-policy": "Configurar política",
+ "title": "Revisión de SQL"
+ },
+ "subscription": {
+ "contact-us": "Contáctenos",
+ "current": "Plan actual",
+ "description": "Puedes subir tu licencia Bytebase para desbloquear funciones de edición/empresa.",
+ "enterprise-free-trial": "{{days}}-días de prueba gratuita para la empresa",
+ "expired": "expirado",
+ "expires-at": "Expira el",
+ "inquire-enterprise-plan": "Consulta el Plan de Empresas",
+ "instance-assignment": {
+ "assign-license": "Asignar licencia",
+ "license": "Licencia",
+ "missing-license-attention": "Debe asignar una licencia a la instancia para habilitar esta función.",
+ "used-and-total-license": "Licencia asignada / total",
+ "used-and-total-user": "Límite de usuarios activos/totales"
},
- "batch": {
- "archive": {
- "success_one": "Proyecto {{count}} archivado correctamente",
- "success_other": "Proyectos {{count}} archivados correctamente",
- "error": "No se pudieron archivar los proyectos",
- "title_one": "¿Archivar {{count}} Proyecto?",
- "title_other": "¿Archivar {{count}} Proyectos?",
- "description": "Esto archivará los proyectos seleccionados. Podrás restaurarlos más tarde si lo necesitas."
+ "max-instance-count": "Recuento máximo de instancias",
+ "plan": {
+ "enterprise": {
+ "desc": "Funciones adicionales de seguridad, cumplimiento y permisos. Soporte dedicado con SLA.",
+ "label": "",
+ "title": "Empresarial"
},
- "delete": {
- "success_one": "Proyecto {{count}} eliminado correctamente",
- "success_other": "Proyectos {{count}} eliminados correctamente",
- "error": "No se pudieron eliminar los proyectos",
- "title_one": "¿Eliminar {{count}} Proyecto?",
- "title_other": "¿Eliminar {{count}} Proyectos?",
- "description": "Esto eliminará permanentemente los proyectos seleccionados y moverá todas las bases de datos al proyecto predeterminado.",
- "warning": "Esta acción no se puede deshacer. Todos los datos del proyecto, incluidos problemas, configuraciones e historial, se eliminarán permanentemente."
+ "free": {
+ "desc": "Elementos esenciales del equipo para centralizar la gestión del ciclo de vida de la base de datos.",
+ "label": "",
+ "title": "Comunitario"
},
- "selected_one": "{{count}} proyecto seleccionado",
- "selected_other": "{{count}} proyectos seleccionados"
+ "team": {
+ "desc": "Más políticas para estandarizar y facilitar la colaboración entre equipos.",
+ "label": "",
+ "title": "Pro"
+ },
+ "title": "Plan",
+ "try": "Empezar la prueba gratuita"
},
- "filter-projects": "Filtrar proyectos",
- "table": {
- "name": "Nombre"
+ "plan-compare": "Compara características entre los diferentes planes",
+ "purchase": {
+ "accept-terms-prefix": "Acepto los",
+ "and": "y",
+ "billing-period": "Período de facturación",
+ "cancel": "Cancelar suscripción",
+ "cancel-confirm": "¿Está seguro de que desea cancelar su suscripción?",
+ "cancel-pending": "Su suscripción ha sido cancelada y finalizará el {{date}}.",
+ "canceled": "Suscripción cancelada",
+ "custom": "Personalizado",
+ "discount": {
+ "month-off": "{{value}} mes gratis",
+ "percentage-off": "primer mes {{value}}% de descuento",
+ "price-off": "${{value}} de descuento"
+ },
+ "enterprise-description": "Scale your business securely while staying compliant.",
+ "free-description": "Designed for solo devs, side-projects, and experiments.",
+ "manage-invoices": "Gestionar facturas",
+ "payment-info": "Información de pago",
+ "pending-description": "Por favor espere mientras confirmamos su pago. Esto suele tardar unos segundos.",
+ "pending-title": "Completando su compra...",
+ "per-user-per-month": "/ usuario / mes",
+ "privacy-policy": "Política de privacidad",
+ "pro-description": "Built for teams creating production-ready applications.",
+ "seats": "Usuarios",
+ "see-comparison": "Ver comparación detallada de funciones",
+ "subscribe": "Suscribirse ahora",
+ "terms-of-service": "Términos de servicio",
+ "total-price": "Precio total",
+ "update": "Actualizar suscripción"
+ },
+ "request-n-days-trial": "Solicite una prueba de {{days}} días (no se requiere tarjeta de crédito)",
+ "require-subscription": "Esta función requiere una suscripción a {{requiredPlan}}. Compre una licencia de Bytebase para desbloquearla.",
+ "required-plan-with-trial": "Esta función requiere {{requiredPlan}}. {{startTrial}}",
+ "trial-for-days": "Puedes iniciar una prueba gratuita por {{days}} días - no se requiere tarjeta de crédito.",
+ "trialing": "probando",
+ "try-for-free": "Prueba gratis",
+ "update": {
+ "failure": {
+ "description": "Por favor, comprueba si tu licencia es válida.",
+ "title": "Error al actualizar la licencia"
+ },
+ "success": {
+ "description": "Se desbloquearon funciones premium en el plan de suscripción.",
+ "title": "Licencia actualizada con éxito"
+ }
+ },
+ "upload-license": "Subir licencia",
+ "usage": {
+ "instance-count": {
+ "runoutof": "Te has quedado sin tu cuota de instancias {{total}}.",
+ "title": "Límite de cantidad de instancias"
+ },
+ "user-count": {
+ "remaining": "Su cuota total de usuarios es {{total}}, solo quedan {{count}} usuarios.",
+ "runoutof": "Se ha quedado sin su cuota de usuario {{total}}.",
+ "title": "Límite de conteo de usuarios",
+ "upgrade": "Actualizar para obtener más cuota de usuario."
+ }
}
},
- "resource": {
- "delete-warning-with-resources": "El \"{{name}}\" lo utilizan los siguientes recursos:",
- "delete-warning-retry": "Elimínelo de estos recursos y vuelva a intentarlo.",
- "delete-warning": "Se eliminará el elemento \"{{name}}\". Esta acción no se puede deshacer."
- },
- "sql-editor": {
- "self": "Editor de SQL"
- },
- "create-db": {
- "cluster": "Clúster",
- "database-owner-name": "Nombre del propietario de la base de datos",
- "new-collection-name": "Nuevo Nombre de Colección",
- "new-database-name": "Nuevo nombre de la base de datos",
- "reserved-db-error": "{{databaseName}} es un nombre reservado"
- },
- "issue": {
- "labels": "Etiquetas de problema"
+ "two-factor": {
+ "enabled": "2FA habilitado"
}
}
diff --git a/frontend/src/react/locales/ja-JP.json b/frontend/src/react/locales/ja-JP.json
index 566c2e9153..16ffad2b8b 100644
--- a/frontend/src/react/locales/ja-JP.json
+++ b/frontend/src/react/locales/ja-JP.json
@@ -1,236 +1,407 @@
{
+ "audit-log": {
+ "advanced-search": {
+ "scope": {
+ "actor": {
+ "description": "監査ログの操作者で検索",
+ "title": "操作者"
+ },
+ "level": {
+ "description": "監査ログのレベルで検索",
+ "title": "レベル"
+ },
+ "method": {
+ "description": "監査ログのメソッドで検索",
+ "title": "メソッド"
+ }
+ }
+ },
+ "export-tooltip": "30日以内の開始時間と終了時間を選択する必要があります",
+ "table": {
+ "actor": "操作者",
+ "created-ts": "時間",
+ "latency": "レイテンシー",
+ "level": "レベル",
+ "method": "メソッド",
+ "request": "リクエスト",
+ "response": "レスポンス",
+ "service-data": "サービスデータ",
+ "status": "ステータス"
+ }
+ },
+ "banner": {
+ "external-url": "Bytebase は --extern-url を設定していません"
+ },
+ "bbkit": {
+ "confirm-button": {
+ "sure-to-delete": "本当に削除してもよろしいですか?"
+ }
+ },
+ "cel": {
+ "condition": {
+ "add": "条件を追加する",
+ "add-condition-in-group-placeholder": "{{plus}} をクリックして条件を追加します",
+ "add-group": "条件グループの追加",
+ "add-raw-expression": "生の式を追加",
+ "add-root-condition-placeholder": "「条件を追加」または「条件グループを追加」をクリックして条件を追加します。",
+ "description-tips": "条件は、式を通じて設定されるルールです。たとえば、「環境は本番」という条件は、「本番」環境で実行されたイシューと一致します。",
+ "group": {
+ "and": {
+ "description": "以下はすべて真実です…"
+ },
+ "or": {
+ "description": "次のいずれかが当てはまります…"
+ }
+ },
+ "input-value": "入力値",
+ "input-value-press-enter": "値を入力し、Enter キーを押して確定します",
+ "select-value": "値を選択してください",
+ "self": "状態"
+ }
+ },
"common": {
- "filter-by-name": "名前でフィルタリングする",
- "loading": "読み込み中",
- "no-data": "データなし",
+ "add": "追加",
+ "add-permissions": "権限を追加",
+ "added": "作成した",
+ "address": "接続先",
"all": "全て",
- "edit": "編集",
- "updated": "更新しました",
- "learn-more": "もっと詳しく知る",
- "revert": "元に戻す",
+ "archive": "アーカイブ",
+ "archived": "アーカイブ済み",
+ "back": "戻る",
"cancel": "キャンセル",
- "save": "保存",
- "confirm": "確認する",
+ "cannot-undo-this-action": "この操作は元に戻せません",
"clear": "クリア",
- "add": "追加",
- "warning": "警告する",
- "environment-name": "環境名",
- "environment": "環境",
+ "close": "閉じる",
+ "configure": "設定",
+ "configure-now": "今すぐ設定する",
+ "confirm": "確認する",
"confirm-and-update": "確認して更新する",
- "cannot-undo-this-action": "この操作は元に戻せません",
- "delete": "消去",
+ "copied": "コピーされました",
+ "copy": "コピー",
"create": "作成する",
- "leave-without-saving": "変更を保存していませんか?",
+ "created": "作成済",
+ "delete": "消去",
+ "delete-resource": "Delete {{type}}",
"deleted": "削除されました",
- "reorder": "並び替え",
- "close": "閉じる",
- "general": "全般",
- "type": "タイプ",
+ "description": "説明",
"discard-changes": "変更をキャンセルする",
- "update": "更新する",
- "copied": "コピーされました",
- "copy": "コピー",
- "back": "戻る",
- "next": "次のステップ",
+ "edit": "編集",
+ "email": "メールアドレス",
+ "environment": "環境",
+ "environment-name": "環境名",
+ "export": "エクスポート",
+ "failed": "失敗",
+ "file-selector": {
+ "size-limit": "ファイルサイズは {{size}} MiB 未満である必要があります",
+ "type-limit": "タイプ {{extension}} のファイルのみがサポートされます"
+ },
+ "filter-by-name": "名前でフィルタリングする",
+ "from": "開始",
+ "general": "全般",
+ "groups": "グループ",
"id": "ID",
- "name": "名前",
- "sensitive-placeholder": "機密データ - 書き込みのみ",
- "unassigned": "割り当てられていない",
- "archive": "アーカイブ",
- "restore": "復元する",
- "delete-resource": "Delete {{type}}",
+ "instance": "インスタンス",
+ "is-required": "is required",
"labels": "ラベル",
- "state": "ステート",
- "address": "接続先",
- "rows-per-page": "ページあたりの行数",
+ "learn-more": "もっと詳しく知る",
+ "leave-without-saving": "変更を保存していませんか?",
"load-more": "もっと読み込む",
- "configure-now": "今すぐ設定する",
- "restored": "Restored",
- "archived": "アーカイブ済み",
- "select-all": "すべて選択",
- "total-n-items": "合計 {{n}} 件",
- "search": "検索",
+ "loading": "読み込み中",
+ "members_one": "メンバー",
+ "members_other": "メンバー",
+ "missing-required-permission": "必要な権限がありません {{permissions}}",
"n-items-selected": "{{n}} 件選択済み",
- "permissions": "権限",
- "added": "作成した",
- "description": "説明",
+ "name": "名前",
+ "next": "次のステップ",
+ "no-data": "データなし",
+ "ok": "わかりました",
"operations": "操作",
- "title": "タイトル",
- "missing-required-permission": "必要な権限がありません {{permissions}}",
+ "permissions": "権限",
+ "project": "プロジェクト",
+ "reorder": "並び替え",
"required-permission": "必要な権限",
"required-workspace-permission": "ワークスペース UX の初期化には以下の権限が必要です",
- "add-permissions": "権限を追加",
+ "restore": "復元する",
+ "restored": "Restored",
+ "revert": "元に戻す",
+ "rows-per-page": "ページあたりの行数",
+ "save": "保存",
+ "search": "検索",
+ "select": "選択してください",
+ "select-all": "すべて選択",
+ "sensitive-placeholder": "機密データ - 書き込みのみ",
+ "state": "ステート",
"system": "システム",
- "created": "作成済",
- "upload": "アップロード",
+ "title": "タイトル",
+ "to": "終了",
+ "total-n-items": "合計 {{n}} 件",
+ "type": "タイプ",
+ "unassigned": "割り当てられていない",
"unlimited": "無制限",
- "file-selector": {
- "type-limit": "タイプ {{extension}} のファイルのみがサポートされます",
- "size-limit": "ファイルサイズは {{size}} MiB 未満である必要があります"
- },
- "ok": "わかりました",
- "failed": "失敗",
- "instance": "インスタンス",
- "project": "プロジェクト",
- "select": "選択してください",
- "export": "エクスポート",
+ "update": "更新する",
+ "updated": "更新しました",
+ "upload": "アップロード",
+ "users": "ユーザー",
"view": "表示",
"view-details": "詳細を表示",
- "from": "開始",
- "to": "終了"
+ "warning": "警告する",
+ "you": "あなた",
+ "copy-failed": "Copy failed"
},
- "audit-log": {
- "export-tooltip": "30日以内の開始時間と終了時間を選択する必要があります",
- "table": {
- "created-ts": "時間",
- "actor": "操作者",
- "level": "レベル",
- "method": "メソッド",
- "request": "リクエスト",
- "response": "レスポンス",
- "status": "ステータス",
- "latency": "レイテンシー",
- "service-data": "サービスデータ"
- },
- "advanced-search": {
- "scope": {
- "actor": {
- "title": "操作者",
- "description": "監査ログの操作者で検索"
+ "create-db": {
+ "cluster": "集まる",
+ "database-owner-name": "データベース所有者",
+ "new-collection-name": "新しいコレクション名",
+ "new-database-name": "新しいデータベース名",
+ "reserved-db-error": "{{databaseName}} は予約された名前です"
+ },
+ "custom-approval": {
+ "approval-flow": {
+ "add-rule": "ルールを追加",
+ "create-approval-flow": "承認フローの作成",
+ "edit-rule": "ルールを編集",
+ "fallback-rules": "フォールバックルール",
+ "fallback-rules-hint": "フォールバックルールは、他のルールが一致しない場合にのみ評価されます。",
+ "node": {
+ "add": "ノードの追加",
+ "approver": "承認者",
+ "delete": "承認ノードの削除",
+ "description": "ノードに複数の承認者がいる場合、必要な承認は 1 つだけです。",
+ "nodes": "承認ノード",
+ "order": "順序"
+ },
+ "self": "承認の流れ",
+ "skip": "承認不要",
+ "template": {
+ "preset-descriptions": {
+ "drop-or-truncate": "DROP TABLEまたはTRUNCATEステートメントには承認が必要です。",
+ "fallback": "すべてのリクエストに一致するキャッチオールルール。ルールリストの最後に配置してください。",
+ "high-affected-rows": "影響行数が100を超える場合は承認が必要です。"
},
- "method": {
- "title": "メソッド",
- "description": "監査ログのメソッドで検索"
+ "presets": {
+ "drop-or-truncate": "テーブル削除/切り捨て",
+ "fallback": "フォールバックルール",
+ "high-affected-rows": "高影響行数"
},
- "level": {
- "title": "レベル",
- "description": "監査ログのレベルで検索"
+ "presets-title": "プリセット"
+ }
+ },
+ "risk": {
+ "description": "リスク評価は、データベースの変更を自動的に評価し、実行される操作の種類に基づいてリスクレベルを割り当てます。",
+ "how-it-works": "仕組み",
+ "how-it-works-description": "データベースの変更を作成すると、Bytebaseは自動的にSQL文を分析し、事前定義されたルールに基づいてリスクレベル(低、中、高)を割り当てます。",
+ "integration": "承認フローとの連携",
+ "integration-description": "リスクレベルはカスタム承認システムと連携しています。変更の評価されたリスクレベルに基づいて、異なるレベルのレビューを必要とする承認フローを設定できます。",
+ "risk-level-high": "高リスクの操作には、DROP TABLE、TRUNCATE、または大規模なデータ変更などの破壊的な変更が含まれます。",
+ "risk-level-low": "低リスクの操作には、SELECTクエリや問題を引き起こす可能性が低い軽微なスキーマ変更が含まれます。",
+ "risk-level-moderate": "中リスクの操作には、カラムやインデックスの追加などの標準的なDDL変更が含まれます。",
+ "risk-levels": "リスクレベル"
+ },
+ "risk-rule": {
+ "risk": {
+ "namespace": {
+ "change_database": "データベースの変更",
+ "create_database": "データベースの作成",
+ "data_export": "データのエクスポート",
+ "request-access": "ジャストインタイムアクセスのリクエスト",
+ "request-role": "ロールのリクエスト"
+ },
+ "risk-level": {
+ "default": "デフォルト",
+ "high": "高",
+ "low": "低",
+ "moderate": "中"
}
}
+ },
+ "rule": {
+ "first-match-wins": "ルールは順番に評価されます。最初に一致するルールが適用されます。"
}
},
- "cel": {
- "condition": {
- "input-value": "入力値",
- "select-value": "値を選択してください",
- "input-value-press-enter": "値を入力し、Enter キーを押して確定します",
- "group": {
- "or": {
- "description": "次のいずれかが当てはまります…"
- },
- "and": {
- "description": "以下はすべて真実です…"
- }
- },
- "add-condition-in-group-placeholder": "{{plus}} をクリックして条件を追加します",
- "add-root-condition-placeholder": "「条件を追加」または「条件グループを追加」をクリックして条件を追加します。",
- "add": "条件を追加する",
- "add-raw-expression": "生の式を追加",
- "add-group": "条件グループの追加",
- "description-tips": "条件は、式を通じて設定されるルールです。たとえば、「環境は本番」という条件は、「本番」環境で実行されたイシューと一致します。",
- "self": "状態"
- }
- },
- "subscription": {
- "trial-for-days": "{{days}} 日間の無料トライアルを開始できます。クレジット カードや前払いは必要ありません。",
- "required-plan-with-trial": "この機能は、{{requiredPlan}} のサブスクリプションが必要です。{{startTrial}} ",
- "instance-assignment": {
- "missing-license-attention": "この機能のロックを解除するには、インスタンスにライセンスを割り当ててください。",
- "assign-license": "ライセンスの割り当て",
- "license": "ライセンス",
- "used-and-total-user": "アクティブ/合計ユーザー制限",
- "used-and-total-license": "割り当てられた/合計インスタンスライセンス"
+ "database": {
+ "classification": {
+ "description": "Define classification levels to apply consistent masking policies across columns and databases."
},
- "request-n-days-trial": "{{days}} 日間のトライアルをリクエストします (クレジット カードは必要ありません)",
- "usage": {
- "instance-count": {
- "title": "インスタンスの制限",
- "runoutof": "すべての {{total}} インスタンス クレジットが使用されました。"
+ "edit-environment": "環境の編集",
+ "edit-labels": "ラベルを編集",
+ "engine": "エンジン",
+ "filter-database": "データベースをフィルター",
+ "selected-n-databases": "{{n}} 個のデータベースが選択されました",
+ "successfully-transferred-databases": "データベースの転送に成功しました",
+ "sync-schema-button": "スキーマを同期",
+ "sync-status": "同期ステータス",
+ "sync-status-failed": "同期に失敗しました",
+ "transfer-project": "プロジェクトの転送",
+ "unassign": "割り当てを解除する"
+ },
+ "db": {
+ "character-set": "文字セット",
+ "collation": "照合順序",
+ "encoding": "エンコーディング",
+ "failed-to-sync-schema": "スキーマの同期に失敗しました",
+ "start-to-sync-schema": "スキーマの同期を開始します",
+ "successfully-synced-schema": "スキーマの同期に成功しました"
+ },
+ "environment": {
+ "create": "環境を作成する",
+ "delete": "この環境を削除します",
+ "delete-description": "環境を削除すると、関連するインスタンスとデータベースからも削除されます。この操作は元に戻せません",
+ "reorder": "環境の並べ替え",
+ "successfully-updated-environment": "環境「{{name}}」は正常に更新されました"
+ },
+ "error-page": {
+ "not-found": "ページが見つかりません"
+ },
+ "identity-provider": {
+ "claims-description": "IDプロバイダーから以下のクレームが返されました。この情報は、フィールドマッピングの設定に役立ちます。",
+ "delete-warning": "このアイデンティティプロバイダを削除してもよろしいですか?このSSO経由でサインアップしたユーザーは、今後このSSOでサインインできなくなります。ワークスペースの設定でパスワードによるサインインが無効になっている場合、これらのユーザーは完全にロックアウトされる可能性があります。",
+ "identity-provider-create-failed": "IDプロバイダの作成に失敗しました",
+ "identity-provider-created": "ID プロバイダが正常に作成されました",
+ "identity-provider-delete-failed": "IDプロバイダの削除に失敗しました",
+ "identity-provider-deleted": "ID プロバイダが正常に削除されました",
+ "identity-provider-permission-denied": "許可が拒否されました",
+ "identity-provider-update-failed": "IDプロバイダの更新に失敗しました",
+ "no-claims": "アイデンティティ プロバイダーから返されるクレームはありません。",
+ "test-connection": "テスト接続",
+ "test-connection-success": "テスト接続に成功しました",
+ "userinfo-description": "一致したユーザー情報。"
+ },
+ "instance": {
+ "advanced-search": {
+ "scope": {
+ "host": {
+ "description": "インスタンス サーバーのアドレスでフィルターします。値を入力してEnterキーを押してください。",
+ "title": "サーバーアドレス"
+ },
+ "port": {
+ "description": "インスタンス ポートでフィルターします。値を入力してEnterキーを押してください。",
+ "title": "ポート"
+ }
}
},
- "plan": {
- "free": {
- "title": "コミュニティ",
- "label": "",
- "desc": "データベース開発ライフサイクルを管理するためのチームの基本機能。"
- },
- "team": {
- "title": "プロ",
- "label": "",
- "desc": "チーム間のコラボレーションを標準化し、促進するためのさらなるポリシー。"
- },
- "enterprise": {
- "title": "エンタープライズ",
- "label": "",
- "desc": "追加のセキュリティ、コンプライアンス、および権限機能。SLA付きの専任サポート。"
- },
- "try": "無料トライアルを開始する",
- "title": "コミュニティ"
+ "archive-instance-instance-name": "インスタンス '{{0}}' をアーカイブしますか?",
+ "archived-instances-will-not-be-displayed": "アーカイブされたインスタンスは表示されなくなります。",
+ "filter-instance-name": "インスタンス名のフィルタリング",
+ "force-archive-description": "アーカイブを強制します。すべてのデータベースの割り当てが解除されます。",
+ "selected-n-instances_one": "{{count}} 個のインスタンスが選択されました",
+ "selected-n-instances_other": "{{count}} 個のインスタンスが選択されました",
+ "successfully-archived-instance": "インスタンス '{{0}}' を正常にアーカイブしました。",
+ "successfully-restored-instance": "インスタンス '{{0}}' を正常に復元しました。",
+ "sync": {
+ "self": "インスタンスの同期",
+ "sync-all": "すべてのデータベースを同期する",
+ "sync-all-tip": "データベースの同期は非同期で、数秒から数分かかる場合があります。",
+ "sync-new": "新しいデータベースのみを同期する"
},
- "purchase": {
- "free-description": "Designed for solo devs, side-projects, and experiments.",
- "pro-description": "Built for teams creating production-ready applications.",
- "enterprise-description": "Scale your business securely while staying compliant.",
- "discount": {
- "percentage-off": "初月 {{value}}% オフ",
- "month-off": "{{value}} ヶ月無料",
- "price-off": "${{value}} オフ"
- },
- "update": "サブスクリプションを更新",
- "subscribe": "今すぐ購読",
- "cancel-confirm": "サブスクリプションをキャンセルしてもよろしいですか?",
- "canceled": "サブスクリプションがキャンセルされました",
- "pending-title": "購入を完了しています...",
- "pending-description": "お支払いの確認中です。通常は数秒で完了します。",
- "payment-info": "支払い情報",
- "total-price": "合計金額",
- "manage-invoices": "請求書を管理",
- "billing-period": "請求期間",
- "cancel-pending": "サブスクリプションはキャンセル済みで、{{date}} に終了します。",
- "cancel": "サブスクリプションをキャンセル",
- "per-user-per-month": "/ ユーザー / 月",
- "custom": "カスタム",
- "seats": "ユーザー数",
- "accept-terms-prefix": "以下に同意します:",
- "terms-of-service": "利用規約",
- "and": "および",
- "privacy-policy": "プライバシーポリシー",
- "see-comparison": "機能の詳細比較を見る"
+ "syncing": "同期中 ..."
+ },
+ "issue": {
+ "labels": "イシューラベル"
+ },
+ "landing": {
+ "changelog-for-version": "{{version}} の変更履歴",
+ "last-visit": "最終訪問",
+ "quick-link": {
+ "manage": "クイックリンクを管理する",
+ "self": "クイックリンク",
+ "visit-issues": "イシューを開く",
+ "visit-prjects": "プロジェクトを開く"
+ }
+ },
+ "policy": {
+ "environment-tier": {
+ "description": "この環境を他の環境とは異なって見えるようにします。",
+ "mark-env-as-production": "本番環境としてマークする",
+ "name": "環境レベル"
},
- "current": "現在のプラン",
- "contact-us": "お問い合わせ",
- "update": {
- "success": {
- "title": "ライセンスが正常に更新されました",
- "description": "サブスクリプション版のプレミアム機能がロック解除されました"
+ "rollout": {
+ "auto": "自動",
+ "auto-info": "すべての事前チェックに合格すると、自動的にリリースされ、変更が反映されます。",
+ "info": "タスクは、「{{permission}}」許可または次のロールでユーザーが実行できます。",
+ "name": "リリース戦略",
+ "tip": "新しいポリシーは古いイシューにも適用されます"
+ }
+ },
+ "project": {
+ "batch": {
+ "archive": {
+ "description": "選択したプロジェクトがアーカイブされます。必要に応じて後で復元できます。",
+ "error": "プロジェクトをアーカイブできませんでした",
+ "success_one": "{{count}} 件のプロジェクトを正常にアーカイブしました",
+ "success_other": "{{count}} 件のプロジェクトを正常にアーカイブしました",
+ "title_one": "{{count}} 件のプロジェクトをアーカイブしますか?",
+ "title_other": "{{count}} 件のプロジェクトをアーカイブしますか?"
},
- "failure": {
- "title": "ライセンスの更新に失敗しました",
- "description": "ライセンスが有効かどうかを確認してください"
- }
+ "delete": {
+ "description": "選択したプロジェクトを完全に削除し、すべてのデータベースをデフォルトプロジェクトに移動します。",
+ "error": "プロジェクトを削除できませんでした",
+ "success_one": "{{count}} 件のプロジェクトを正常に削除しました",
+ "success_other": "{{count}} 件のプロジェクトを正常に削除しました",
+ "title_one": "{{count}} 件のプロジェクトを削除しますか?",
+ "title_other": "{{count}} 件のプロジェクトを削除しますか?",
+ "warning": "この操作は元に戻せません。イシュー、設定、履歴を含むすべてのプロジェクトデータが完全に削除されます。"
+ },
+ "selected_one": "{{count}} 件のプロジェクトが選択されました",
+ "selected_other": "{{count}} 件のプロジェクトが選択されました"
},
- "expired": "期限切れ",
- "trialing": "トライアル中",
- "expires-at": "有効期限",
- "try-for-free": "無料トライアル",
- "enterprise-free-trial": "Enterprise の {{days}} 日間の無料トライアル",
- "inquire-enterprise-plan": "Enterprise版のお問い合わせ",
- "upload-license": "ライセンスのアップロード",
- "description": "ここで購入した Bytebase ライセンスをアップロードして、プロフェッショナル/エンタープライズ機能のロックを解除できます。",
- "plan-compare": "異なるプラン間の機能を比較する",
- "max-instance-count": "最大インスタンス数",
- "require-subscription": "この機能は、{{requiredPlan}} のサブスクリプションが必要です。この機能のロックを解除するには、Bytebase ライセンスを購入してください。"
+ "create-modal": {
+ "project-name": "プロジェクト名前",
+ "success-prompt": "{{name}} が正常に作成されました。"
+ },
+ "filter-projects": "プロジェクトをフィルタリング",
+ "table": {
+ "name": "名前"
+ }
+ },
+ "quick-action": {
+ "add-instance": "インスタンス追加",
+ "create-db": "データベースの作成",
+ "create-project": "作成するプロジェクト",
+ "new-db": "データベースの作成",
+ "new-project": "作成するプロジェクト"
+ },
+ "remind": {
+ "release": {
+ "new-version-available-with-tag": "新しいバージョン {{tag}} が利用可能です"
+ }
+ },
+ "resource": {
+ "delete-warning": "「{{name}}」は削除されます。この操作は元に戻せません。",
+ "delete-warning-retry": "これらのリソースから削除して、もう一度お試しください。",
+ "delete-warning-with-resources": "「{{name}}」は次のリソースによって使用されます:"
},
"resource-id": {
+ "cannot-be-changed-later": "作成後に変更することはできません。",
+ "description": "{{resource}} ID は一意の識別子です。作成後に変更することはできません。",
+ "self": "{{resource}} ID",
"validation": {
+ "duplicated": "{{resource}} ID はすでに存在します。別のIDを使用してください。",
"empty": "{{resource}} ID は空にできません",
"overflow": "{{resource}} ID は 64 文字未満である必要があります。",
- "pattern": "{{resource}} ID には、小文字、数字、またはハイフンを持つことができます。\n小文字から始めて、文字または番号で終わる必要があります。",
- "duplicated": "{{resource}} ID はすでに存在します。別のIDを使用してください。"
+ "pattern": "{{resource}} ID には、小文字、数字、またはハイフンを持つことができます。\n小文字から始めて、文字または番号で終わる必要があります。"
+ }
+ },
+ "role": {
+ "custom-roles": {
+ "self": "カスタムロール"
},
- "self": "{{resource}} ID",
- "cannot-be-changed-later": "作成後に変更することはできません。",
- "description": "{{resource}} ID は一意の識別子です。作成後に変更することはできません。"
+ "import-from-role": "ロールからインポート",
+ "project-roles": {
+ "self": "プロジェクトのロール"
+ },
+ "select-role": "ロールの選択",
+ "self": "ロール",
+ "setting": {
+ "add": "ロールの追加",
+ "description": "プロジェクトメンバーとカスタム承認に適用できるカスタムロールを定義します。",
+ "description-placeholder": "ロールの説明を入力してください",
+ "edit": "ロールの編集",
+ "title-placeholder": "ロールのタイトルを入力してください"
+ },
+ "title": "タイトル",
+ "workspace-roles": {
+ "self": "ワークスペースのロール"
+ }
},
"schema-template": {
"classification": {
@@ -238,655 +409,571 @@
}
},
"settings": {
- "sidebar": {
- "general": "全般",
- "members": "メンバー",
- "users-and-groups": "ユーザーとグループ",
- "members-and-groups": "メンバーとグループ",
- "sso": "SSO",
- "subscription": "サブスクリプション",
- "audit-log": "監査ログ",
- "custom-roles": "カスタムロール",
- "global-masking": "グローバルマスキング",
- "data-classification": "データ分類",
- "im-integration": "IM",
- "mcp": "MCP"
- },
- "sensitive-data": {
- "classification": {
- "invalid-json": "Invalid JSON format",
- "missing-classification": "Missing \"classification\" field",
- "empty-classification": "The \"classification\" field is empty",
- "missing-levels": "Missing \"levels\" field",
- "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
- "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
- "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
- "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children)."
- },
- "global-rules": {
- "error": {
- "missing-semantic-type": "セマンティックタイプは必須です",
- "invalid-condition": "条件が無効です"
- },
- "condition-order": "条件付きシーケンス",
- "delete-rule-tip": "このルールを削除しますか?",
- "re-order": "並び替え",
- "description": "グローバル ルールを使用してバッチでマスキングを適用します。たとえば、「email」という名前のすべての列は特定のセマンティック タイプでマスキングされ、マスキング アルゴリズムが適用されます。"
- },
- "semantic-types": {
- "table": {
- "semantic-type": "セマンティックタイプ",
- "icon": "アイコン",
- "description": "説明",
- "masking-algorithm": "マスキングアルゴリズム",
- "delete": "このセマンティック タイプを削除しますか?"
- },
- "select": "セマンティックタイプの選択",
- "template": {
- "duplicate-warning": "セマンティック タイプ \"{{title}}\" は既に存在します",
- "description": "テンプレートから組み込みのセマンティック タイプを適用できます。組み込みテンプレートは変更できません。"
+ "general": {
+ "workspace": {
+ "access-token-duration": {
+ "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
+ "hours": "Hour(s)",
+ "minutes": "Minute(s)",
+ "self": "Access token duration"
},
- "use-predefined-type": "事前定義されたタイプを使用する",
- "label": "同じセマンティック タイプの列は、同じマスキング アルゴリズムを使用します。",
- "add-from-template": "テンプレートから追加"
- },
- "algorithms": {
- "full-mask": {
- "self": "完全マスク",
- "substitution": "マスク文字列",
- "substitution-label": "マスキング文字列は、元の値を置換するために使用される文字列であり、最大長 16 文字を超えることはできません。"
- },
- "range-mask": {
- "self": "範囲マスキング",
- "label": "範囲マスキングでは、マスクされた文字列を使用して、開始インデックスから終了インデックスまでの元の値を置き換えます (排他的)。インデックスは 0 から始まります。",
- "slice-start": "出発点",
- "slice-end": "終了位置",
- "substitution": "マスク文字列"
- },
- "md5-mask": {
- "self": "MD5ハッシュ",
- "salt": "ソルト値",
- "salt-label": "ソルト値は、元の値からハッシュ値を生成するために使用されます。"
- },
- "inner-outer-mask": {
- "self": "内部/外部マスク",
- "type": "マスクタイプ",
- "inner-label": "内部マスクは文字列の内部部分をマスクします。プレフィックスとサフィックスはデータのマスクされていない部分を表します。",
- "outer-label": "外部マスクは文字列の左右の端をマスクします。プレフィックスとサフィックスはデータのマスクされた部分を表します。",
- "inner-mask": "インナーマスク",
- "outer-mask": "アウターマスク",
- "prefix-length": "プレフィックスの長さ",
- "suffix-length": "サフィックスの長さ"
- },
- "error": {
- "slice-required": "マスク範囲を空にすることはできません",
- "slice-invalid-number": "マスク範囲の開始値と終了値は数値である必要があります",
- "slice-overlap": "マスキング範囲は重複できません",
- "substitution-required": "マスク文字列を入力してください",
- "substitution-length": "マスク文字列の長さは 16 文字を超えることはできません",
- "salt-required": "塩分値を入力してください"
- },
- "edit": "アルゴリズムを編集",
- "add": "アルゴリズムを追加",
- "table": {
- "masking-type": "アルゴリズムの種類"
- }
- }
- },
- "sso": {
- "delete": "この SSO を削除する",
- "form": {
- "auth-url": "認証URL",
- "auth-url-placeholder": "例えばhttps://github.com/login/oauth/authorize",
- "auth-url-description": "ログインページへのリンク",
- "token-url": "トークンURL",
- "token-url-placeholder": "例えばhttps://github.com/login/oauth/access_token",
- "token-url-description": "accessTokenの取得に使用するAPIアドレス",
- "user-info-url": "ユーザー情報URL",
- "user-info-url-placeholder": "例えばhttps://api.github.com/user",
- "user-info-url-description": "accessTokenによるユーザー情報の取得に使用するAPIアドレス",
- "scopes": "スコープ",
- "scopes-placeholder": "例: user, email, profile",
- "scopes-description": "認証 URL にアクセスするときに渡される範囲パラメーター。複数の値を区切るにはスペースを使用します。",
- "authentication-style": "認証スタイル",
- "in-parameters": "パラメータ",
- "in-parameters-description": "POST 本文で資格情報を送信する(推奨)",
- "in-header": "ヘッダー内",
- "in-header-description": "HTTP 基本認証を使用して資格情報を送信する",
- "security-options": "セキュリティオプション",
- "skip-tls-verification": "TLS証明書の検証をスキップする",
- "skip-tls-warning": "開発またはテストの目的でのみ有効にしてください",
- "issuer-url-placeholder": "例: https://acme.okta.com",
- "issuer-url-description": "OIDC 発行者 URL (既知の構成は自動的に検出されます)",
- "scopes-placeholder-oidc": "例: openid, user, email, profile",
- "openid-scopes-description": "OIDC スコープのスペース区切りリスト (openid は必須)",
- "host-placeholder": "例: ldap.example.com",
- "bind-dn": "バインドDN",
- "bind-dn-placeholder": "例えばuid=システム、ou=ユーザー、dc=example、dc=com",
- "bind-dn-description": "検索リクエストにバインドするユーザーのDN",
- "bind-password": "パスワードをバインドする",
- "base-dn": "ベースDN",
- "base-dn-placeholder": "例えばou=ユーザー、dc=例、dc=com",
- "base-dn-description": "ユーザーを検索するためのベースDN",
- "user-filter": "ユーザーフィルター",
- "user-filter-placeholder": "例: (uid=%s)",
- "user-filter-description": "ユーザーを検索するためのフィルター (%s はユーザー名に置き換えられます)",
- "security-protocol": "セキュリティプロトコル",
- "starttls": "TLS を開始",
- "starttls-description": "接続を TLS にアップグレードする (推奨)",
- "ldaps": "LDAP",
- "ldaps-description": "最初から TLS を使用する (ポート 636)",
- "none": "なし",
- "none-description": "暗号化なし(本番環境では推奨されません)",
- "identifier-placeholder": "例:ログイン、メール",
- "identifier": "バイトベースユーザーの電子メールアドレス",
- "identifier-tips": "電子メールは一意である必要があります。実際の値がメールボックス形式でない場合は、ドメインと連結されます。",
- "display-name-placeholder": "例: name、displayName",
- "display-name": "バイトベースユーザーのニックネーム",
- "phone-placeholder": "例:電話、携帯電話",
- "phone": "Bytebase ユーザーの携帯電話番号",
- "groups-placeholder": "例:グループ",
- "groups": "Bytebaseユーザーグループ",
- "groups-description": "グループベースのアクセス制御に使用されます(OIDC プロバイダーのみ)",
- "provider-type-readonly-hint": "プロバイダタイプは作成後に変更できません",
- "name": "名前",
- "name-description": "ログインユーザーに表示される名前",
- "domain": "ドメイン名",
- "domain-description": "OAuthプロバイダーのドメイン名",
- "domain-optional-hint": "オプション: 電子メール形式でない場合は識別子と連結するために使用します",
- "configuration": "構成",
- "configuration-description": "IDプロバイダーの接続設定を構成する",
- "user-information-mapping": "ユーザー情報のマッピング",
- "user-information-mapping-description": "フィールド マップには、API ユーザー情報のフィールド名が保持されます。",
- "identity-provider-needed-information": "次の情報を使用して SSO アプリケーションを作成します。",
- "redirect-url-description": "ID プロバイダー要求フォームの対応するフィールドに入力するために使用されます。",
- "redirect-url": "コールバックアドレス",
- "type": "タイプ",
- "use-template": "テンプレートを使用する",
- "oauth2-description": "Google、GitHub、GitLabなどのOAuth 2.0プロバイダーと接続する",
- "oidc-description": "Microsoft Entra ID (Azure AD)、Okta、Auth0 などの OpenID Connect プロバイダーと接続します。",
- "ldap-description": "Microsoft Active Directory、OpenLDAPなどのLDAPプロバイダーに接続します",
- "google-template-description": "Googleアカウントでログイン",
- "github-template-description": "GitHubアカウントでサインイン",
- "gitlab-template-description": "GitLabアカウントでサインイン",
- "microsoft-entra-template-description": "Microsoft Entra IDでサインイン",
- "custom-template-description": "カスタムOAuth 2.0プロバイダーを構成する",
- "type-description": "設定するIDプロバイダーの種類を選択します",
- "template-description": "事前設定されたテンプレートを選択するか、カスタムのOAuth 2.0プロバイダーを設定します",
- "general-setting-description": "ID プロバイダーに関する基本情報を提供します。"
- },
- "description": "シングル サインオン (SSO) は、ユーザーが他のアプリケーションや Web サイトからログインできるようにする認証方法です。",
- "create": "SSOの作成"
- },
- "im": {
- "add-im-integration": "IM 連携の追加",
- "add-another-im": "別のIMを追加"
- },
- "im-integration": {
- "description": "IM 連携は、特定のイシューイベントについてユーザーにダイレクトメッセージをプッシュするために使用されます。プロジェクト Webhook と連携して動作します。"
- },
- "mcp": {
- "first-prompt": {
- "example": "Bytebase インスタンス内のすべてのプロジェクトをリストする",
- "title": "最初のプロンプト",
- "description": "接続後、AI アシスタントに聞いてみてください:"
- },
- "title": "MCP 連携",
- "description": "Model Context Protocol を使用して、AI アシスタントを Bytebase に接続します。",
- "auth": {
- "title": "認証が必要",
- "description": "初回接続時に OAuth 認証が必要です。適切な Bytebase 権限があることを確認してください。"
- },
- "general-config": {
- "title": "方法 1:JSON 設定"
- },
- "setup": {
- "add-to-config": "この JSON を MCP クライアント設定ファイルに追加してください。"
- },
- "quick-start": {
- "title": "方法 2:CLI コマンド",
- "description": "または、以下の CLI コマンドを使用してください。"
- }
- },
- "general": {
- "workspace": {
- "external-url": {
- "description": "ユーザーまたはコールバックがアクセスできる Bytebase URL は、http:// または https:// で始まる必要があります。",
- "self": "外部URL",
- "cannot-edit-flag": "外部URLは --external-url コマンドラインフラグで設定されているため変更できません"
- },
- "id": "ワークスペースID",
- "id-description": "一意の読み取り専用ワークスペース ID",
+ "account": "アカウント",
"ai-assistant": {
- "enabled-in-saas": "Gemini AI は SaaS モードで自動的に有効になります。",
- "enable-ai-assistant": "AIアシスタントを有効にする",
- "description": "AI を使用してデータベース開発タスクを支援します。",
- "provider": {
- "self": "AIプロバイダー",
- "open_ai": "Open AI",
- "azure_open_ai": "Azure Open AI",
- "gemini": "Gemini",
- "claude": "Claude"
- },
"api-key": {
- "self": "APIキー",
"description": "読み取り専用の API キーを入力してください。{{viewDoc}}",
"find-my-key": "鍵を探す",
- "placeholder": "API キーは通常 sk-***** で始まります"
+ "placeholder": "API キーは通常 sk-***** で始まります",
+ "self": "APIキー"
},
+ "description": "AI を使用してデータベース開発タスクを支援します。",
+ "enable-ai-assistant": "AIアシスタントを有効にする",
+ "enabled-in-saas": "Gemini AI は SaaS モードで自動的に有効になります。",
"endpoint": {
- "self": "API エンドポイント",
- "description": "プライベート展開用の API エンドポイントを提供します。"
+ "description": "プライベート展開用の API エンドポイントを提供します。",
+ "self": "API エンドポイント"
},
"model": {
- "self": "モデル名",
- "description": "供給プライベートデプロイメントのモデル名。"
+ "description": "供給プライベートデプロイメントのモデル名。",
+ "self": "モデル名"
+ },
+ "provider": {
+ "azure_open_ai": "Azure Open AI",
+ "claude": "Claude",
+ "gemini": "Gemini",
+ "open_ai": "Open AI",
+ "self": "AIプロバイダー"
},
"self": "AI アシスタント"
},
- "disallow-signup": {
- "enable": "セルフサービス登録を無効にする",
- "description": "無効化されると、新しいユーザーは自己登録できなくなり、管理者の招待を通じてのみアカウントを作成できます。"
- },
- "password-restriction": {
- "self": "パスワード制限",
- "min-length": "パスワードの最小文字数は {{min}} 文字以上である必要があります",
- "require-number": "パスワードには少なくとも1つの数字が含まれている必要があります",
- "require-letter": "パスワードには大文字、小文字に関係なく少なくとも1文字が含まれている必要があります",
- "require-uppercase-letter": "パスワードには少なくとも1つの大文字が含まれている必要があります",
- "require-special-character": "パスワードには少なくとも1つの特殊文字が含まれている必要があります",
- "require-reset-password-for-first-login": "初回ログイン後にユーザーにパスワードのリセットを要求する",
- "password-rotation": "ユーザーに{{day}}日ごとにパスワードのリセットを要求する"
- },
- "require-2fa": {
- "enable": "すべてのユーザーに 2 要素認証の設定を要求する",
- "description": "有効にすると、2 要素認証が設定されていないユーザーは強制的に設定されます。"
- },
- "disallow-password-signin": {
- "enable": "メールアドレスとパスワードによるサインインを禁止する",
- "require-sso-setup": "最初に機能する SSO を作成する必要があります。そうしないと、ユーザーはログインできません。",
- "description": "ユーザーはメールとパスワードでサインインすることはできず、SSO のみが許可されます。"
- },
- "access-token-duration": {
- "self": "Access token duration",
- "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
- "minutes": "Minute(s)",
- "hours": "Hour(s)"
- },
- "refresh-token-duration": {
- "self": "Refresh token duration",
- "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
- "hours": "Hour(s)",
- "days": "Day(s)"
+ "allow-admin-data-source": {
+ "description": "有効にすると、ユーザーは管理データソースと読み取り専用データソースのどちらかを選択できます。無効にすると、読み取り専用データソースが設定されている場合は強制的に読み取り専用データソースを使用し、設定されていない場合は管理データソースにフォールバックします。",
+ "self": "管理データソースのクエリを許可する"
},
- "inactive-session-timeout": {
- "self": "非アクティブセッションタイムアウト",
- "description": "ユーザーの活動が検出されない場合のセッション有効期限です。ユーザーが制限時間に達すると、強制的にログアウトされます。",
- "hours": "時間"
+ "announcement": {
+ "self": "お知らせ"
},
- "no-limit": "値が0以下の場合、制限なし",
"announcement-alert-level": {
"description": "レベル",
"field": {
+ "critical": "重要",
"info": "情報",
- "warning": "警告",
- "critical": "重要"
+ "warning": "警告"
}
},
"announcement-text": {
- "self": "タイトル",
"description": "お知らせを非表示にしたい場合は空白のままにしてください。",
- "placeholder": "お知らせのタイトルを入力してください"
- },
- "extra-link": {
- "self": "リンク",
- "placeholder": "お知らせのリンクを入力してください"
+ "placeholder": "お知らせのタイトルを入力してください",
+ "self": "タイトル"
},
- "log": "ログ",
"audit-log-stdout": {
- "enable": "監査ログの標準出力への出力を有効にする",
- "description": "構造化されたJSON監査ログを標準出力に出力し、ログアグリゲーター(Splunk、ELK、Datadog、Loki)で取り込めるようにします。TEAMまたはENTERPRISEライセンスが必要です。"
- },
- "enable-debug": {
- "enable": "バックエンドサービスのデバッグレベルのログを有効にする"
+ "description": "構造化されたJSON監査ログを標準出力に出力し、ログアグリゲーター(Splunk、ELK、Datadog、Loki)で取り込めるようにします。TEAMまたはENTERPRISEライセンスが必要です。",
+ "enable": "監査ログの標準出力への出力を有効にする"
},
- "title": "ワークスペース名",
- "logo": "ロゴ",
- "logo-aspect": "推奨されるロゴの幅:高さの比率 (例: 100 x 40 ピクセル)",
- "select-logo": "選ぶ",
- "drag-logo": "またはファイルをドラッグ アンド ドロップします",
- "logo-upload-tip": "{{extension}} タイプのファイルをサポートします。{{size}} MiB より大きくすることはできません",
"branding": "ブランド",
- "account": "アカウント",
- "security": "セキュリティ",
- "announcement": {
- "self": "お知らせ"
- },
- "product-improvement": {
- "self": "製品改善",
- "participate": "改善プログラムに参加",
- "description": "匿名の使用データを共有してBytebaseの改善に協力する"
- },
- "failed-to-update-setting": "設定「{{title}}」の更新に失敗しました",
- "config-updated": "設定が更新されました。",
"config-partly-updated": "設定が部分的に更新されました。",
+ "config-updated": "設定が更新されました。",
+ "data-copy": "データのコピーを有効にする",
+ "data-export": "データのエクスポートを有効にする",
"default-landing-page": {
+ "default-view-changed-to-sql-editor": "ワークスペースのデフォルト ビューが SQL エディターに変更されました。",
+ "go-to-sql-editor": "SQLエディタに移動",
"self": "デフォルトのランディングページ",
- "workspace": {
- "self": "ワークスペース",
- "description": "イシューを使用して、データベースの変更をリクエスト、レビュー、ロールアウト、バージョン管理します。これは、アクセス制御と CI および CD ワークフローを備えたチームに適しています。"
- },
"sql-editor": {
- "self": "SQLエディター",
- "description": "SQL エディターを使用してデータベースの変更を直接実行します。これは、1 人で使用する場合や、監視を必要としない環境に適しています。"
- },
- "default-view-changed-to-sql-editor": "ワークスペースのデフォルト ビューが SQL エディターに変更されました。",
- "go-to-sql-editor": "SQLエディタに移動"
- },
- "data-export": "データのエクスポートを有効にする",
- "data-copy": "データのコピーを有効にする",
- "allow-admin-data-source": {
- "self": "管理データソースのクエリを許可する",
- "description": "有効にすると、ユーザーは管理データソースと読み取り専用データソースのどちらかを選択できます。無効にすると、読み取り専用データソースが設定されている場合は強制的に読み取り専用データソースを使用し、設定されていない場合は管理データソースにフォールバックします。"
- },
- "maximum-sql-result": {
- "size": {
- "self": "最大SQL結果サイズ",
- "description": "出力される SQL クエリ結果のサイズを制限します。",
- "default": "デフォルトの制限 {{limit}} MB"
+ "description": "SQL エディターを使用してデータベースの変更を直接実行します。これは、1 人で使用する場合や、監視を必要としない環境に適しています。",
+ "self": "SQLエディター"
},
- "rows": {
- "self": "最大SQL結果行数",
- "description": "SQL クエリ結果の出力行を制限します。",
- "rows": "行"
+ "workspace": {
+ "description": "イシューを使用して、データベースの変更をリクエスト、レビュー、ロールアウト、バージョン管理します。これは、アクセス制御と CI および CD ワークフローを備えたチームに適しています。",
+ "self": "ワークスペース"
}
},
- "query-data-policy": {
- "timeout": {
- "self": "最大クエリ時間",
- "description": "クエリの実行に許容される最大時間。"
- },
- "seconds": "秒"
- },
- "watermark": {
- "enable": "ウォーターマークをオンにする",
- "description": "ユーザー名、ID、メールアドレスを含むページにウォーターマークを表示します。"
+ "disallow-password-signin": {
+ "description": "ユーザーはメールとパスワードでサインインすることはできず、SSO のみが許可されます。",
+ "enable": "メールアドレスとパスワードによるサインインを禁止する",
+ "require-sso-setup": "最初に機能する SSO を作成する必要があります。そうしないと、ユーザーはログインできません。"
},
- "maximum-role-expiration": {
- "self": "最大ロール有効期限",
- "description": "最大ロール有効期限は、ロールをユーザーに付与できる最大期間であり、プロジェクト所有者を除くすべてのプロジェクト ロールに適用されます。",
- "days": "日",
- "never-expires": "期限切れなし"
+ "disallow-signup": {
+ "description": "無効化されると、新しいユーザーは自己登録できなくなり、管理者の招待を通じてのみアカウントを作成できます。",
+ "enable": "セルフサービス登録を無効にする"
},
"domain-restriction": {
- "self": "ワークスペースドメイン",
"description": "ワークスペース メンバーの電子メール ドメインとして使用できるドメインを指定します。",
"domain-input-placeholder": "ドメインを入力してください。例: example.com",
"members-restriction": {
- "self": "メンバー制限",
- "description": "指定されたドメインの電子メール アドレスを持つユーザーのみにサインインを制限します。"
- }
- }
- }
- }
- },
- "database": {
- "classification": {
- "description": "Define classification levels to apply consistent masking policies across columns and databases."
- },
- "edit-environment": "環境の編集",
- "engine": "エンジン",
- "edit-labels": "ラベルを編集",
- "filter-database": "データベースをフィルター",
- "selected-n-databases": "{{n}} 個のデータベースが選択されました",
- "successfully-transferred-databases": "データベースの転送に成功しました",
- "sync-schema-button": "スキーマを同期",
- "sync-status": "同期ステータス",
- "sync-status-failed": "同期に失敗しました",
- "transfer-project": "プロジェクトの転送",
- "unassign": "割り当てを解除する"
- },
- "bbkit": {
- "confirm-button": {
- "sure-to-delete": "本当に削除してもよろしいですか?"
- }
- },
- "role": {
- "workspace-roles": {
- "self": "ワークスペースのロール"
- },
- "project-roles": {
- "self": "プロジェクトのロール"
- },
- "custom-roles": {
- "self": "カスタムロール"
+ "description": "指定されたドメインの電子メール アドレスを持つユーザーのみにサインインを制限します。",
+ "self": "メンバー制限"
+ },
+ "self": "ワークスペースドメイン"
+ },
+ "drag-logo": "またはファイルをドラッグ アンド ドロップします",
+ "enable-debug": {
+ "enable": "バックエンドサービスのデバッグレベルのログを有効にする"
+ },
+ "external-url": {
+ "cannot-edit-flag": "外部URLは --external-url コマンドラインフラグで設定されているため変更できません",
+ "description": "ユーザーまたはコールバックがアクセスできる Bytebase URL は、http:// または https:// で始まる必要があります。",
+ "self": "外部URL"
+ },
+ "extra-link": {
+ "placeholder": "お知らせのリンクを入力してください",
+ "self": "リンク"
+ },
+ "failed-to-update-setting": "設定「{{title}}」の更新に失敗しました",
+ "id": "ワークスペースID",
+ "id-description": "一意の読み取り専用ワークスペース ID",
+ "inactive-session-timeout": {
+ "description": "ユーザーの活動が検出されない場合のセッション有効期限です。ユーザーが制限時間に達すると、強制的にログアウトされます。",
+ "hours": "時間",
+ "self": "非アクティブセッションタイムアウト"
+ },
+ "log": "ログ",
+ "logo": "ロゴ",
+ "logo-aspect": "推奨されるロゴの幅:高さの比率 (例: 100 x 40 ピクセル)",
+ "logo-upload-tip": "{{extension}} タイプのファイルをサポートします。{{size}} MiB より大きくすることはできません",
+ "maximum-role-expiration": {
+ "days": "日",
+ "description": "最大ロール有効期限は、ロールをユーザーに付与できる最大期間であり、プロジェクト所有者を除くすべてのプロジェクト ロールに適用されます。",
+ "never-expires": "期限切れなし",
+ "self": "最大ロール有効期限"
+ },
+ "maximum-sql-result": {
+ "rows": {
+ "description": "SQL クエリ結果の出力行を制限します。",
+ "rows": "行",
+ "self": "最大SQL結果行数"
+ },
+ "size": {
+ "default": "デフォルトの制限 {{limit}} MB",
+ "description": "出力される SQL クエリ結果のサイズを制限します。",
+ "self": "最大SQL結果サイズ"
+ }
+ },
+ "no-limit": "値が0以下の場合、制限なし",
+ "password-restriction": {
+ "min-length": "パスワードの最小文字数は {{min}} 文字以上である必要があります",
+ "password-rotation": "ユーザーに{{day}}日ごとにパスワードのリセットを要求する",
+ "require-letter": "パスワードには大文字、小文字に関係なく少なくとも1文字が含まれている必要があります",
+ "require-number": "パスワードには少なくとも1つの数字が含まれている必要があります",
+ "require-reset-password-for-first-login": "初回ログイン後にユーザーにパスワードのリセットを要求する",
+ "require-special-character": "パスワードには少なくとも1つの特殊文字が含まれている必要があります",
+ "require-uppercase-letter": "パスワードには少なくとも1つの大文字が含まれている必要があります",
+ "self": "パスワード制限"
+ },
+ "product-improvement": {
+ "description": "匿名の使用データを共有してBytebaseの改善に協力する",
+ "participate": "改善プログラムに参加",
+ "self": "製品改善"
+ },
+ "query-data-policy": {
+ "seconds": "秒",
+ "timeout": {
+ "description": "クエリの実行に許容される最大時間。",
+ "self": "最大クエリ時間"
+ }
+ },
+ "refresh-token-duration": {
+ "days": "Day(s)",
+ "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
+ "hours": "Hour(s)",
+ "self": "Refresh token duration"
+ },
+ "require-2fa": {
+ "description": "有効にすると、2 要素認証が設定されていないユーザーは強制的に設定されます。",
+ "enable": "すべてのユーザーに 2 要素認証の設定を要求する"
+ },
+ "security": "セキュリティ",
+ "select-logo": "選ぶ",
+ "title": "ワークスペース名",
+ "watermark": {
+ "description": "ユーザー名、ID、メールアドレスを含むページにウォーターマークを表示します。",
+ "enable": "ウォーターマークをオンにする"
+ }
+ }
},
- "import-from-role": "ロールからインポート",
- "select-role": "ロールの選択",
- "self": "ロール",
- "setting": {
- "add": "ロールの追加",
- "edit": "ロールの編集",
- "title-placeholder": "ロールのタイトルを入力してください",
- "description-placeholder": "ロールの説明を入力してください",
- "description": "プロジェクトメンバーとカスタム承認に適用できるカスタムロールを定義します。"
+ "im": {
+ "add-another-im": "別のIMを追加",
+ "add-im-integration": "IM 連携の追加"
},
- "title": "タイトル"
- },
- "policy": {
- "rollout": {
- "auto": "自動",
- "auto-info": "すべての事前チェックに合格すると、自動的にリリースされ、変更が反映されます。",
- "name": "リリース戦略",
- "tip": "新しいポリシーは古いイシューにも適用されます",
- "info": "タスクは、「{{permission}}」許可または次のロールでユーザーが実行できます。"
+ "im-integration": {
+ "description": "IM 連携は、特定のイシューイベントについてユーザーにダイレクトメッセージをプッシュするために使用されます。プロジェクト Webhook と連携して動作します。"
},
- "environment-tier": {
- "name": "環境レベル",
- "description": "この環境を他の環境とは異なって見えるようにします。",
- "mark-env-as-production": "本番環境としてマークする"
- }
- },
- "sql-review": {
- "title": "SQL レビューポリシー",
- "configure-policy": "SQL レビューポリシーを設定する"
- },
- "environment": {
- "successfully-updated-environment": "環境「{{name}}」は正常に更新されました",
- "delete": "この環境を削除します",
- "delete-description": "環境を削除すると、関連するインスタンスとデータベースからも削除されます。この操作は元に戻せません",
- "create": "環境を作成する",
- "reorder": "環境の並べ替え"
- },
- "custom-approval": {
- "rule": {
- "first-match-wins": "ルールは順番に評価されます。最初に一致するルールが適用されます。"
+ "mcp": {
+ "auth": {
+ "description": "初回接続時に OAuth 認証が必要です。適切な Bytebase 権限があることを確認してください。",
+ "title": "認証が必要"
+ },
+ "description": "Model Context Protocol を使用して、AI アシスタントを Bytebase に接続します。",
+ "first-prompt": {
+ "description": "接続後、AI アシスタントに聞いてみてください:",
+ "example": "Bytebase インスタンス内のすべてのプロジェクトをリストする",
+ "title": "最初のプロンプト"
+ },
+ "general-config": {
+ "title": "方法 1:JSON 設定"
+ },
+ "quick-start": {
+ "description": "または、以下の CLI コマンドを使用してください。",
+ "title": "方法 2:CLI コマンド"
+ },
+ "setup": {
+ "add-to-config": "この JSON を MCP クライアント設定ファイルに追加してください。"
+ },
+ "title": "MCP 連携"
},
- "approval-flow": {
- "add-rule": "ルールを追加",
- "create-approval-flow": "承認フローの作成",
- "edit-rule": "ルールを編集",
- "fallback-rules": "フォールバックルール",
- "fallback-rules-hint": "フォールバックルールは、他のルールが一致しない場合にのみ評価されます。",
- "self": "承認の流れ",
- "skip": "承認不要",
- "node": {
- "add": "ノードの追加",
- "approver": "承認者",
- "delete": "承認ノードの削除",
- "description": "ノードに複数の承認者がいる場合、必要な承認は 1 つだけです。",
- "nodes": "承認ノード",
- "order": "順序"
+ "members": {
+ "action": {
+ "deactivate-confirm-title": "無効にしてもOK",
+ "reactivate-confirm-title": "[OK] を有効にします"
},
- "template": {
- "presets-title": "プリセット",
- "preset-descriptions": {
- "drop-or-truncate": "DROP TABLEまたはTRUNCATEステートメントには承認が必要です。",
- "fallback": "すべてのリクエストに一致するキャッチオールルール。ルールリストの最後に配置してください。",
- "high-affected-rows": "影響行数が100を超える場合は承認が必要です。"
+ "add-member": "メンバーを追加",
+ "add-user": "ユーザーを追加",
+ "cannot-revoke-self": "You cannot revoke yourself",
+ "entra-sync": {
+ "description": "Entra ID (旧 Azure AD) または Okta のユーザーとグループを Bytebase インスタンスに同期します。",
+ "endpoint": "Endpoint",
+ "endpoint-tip": "ユーザーとグループはこのエンドポイントを介して Bytebase に同期されます。",
+ "reset-token": "トークンをリセット",
+ "reset-token-warning": "Entra アプリケーションのプロビジョニング設定を更新する必要があります。",
+ "secret-token": "Secret Token",
+ "secret-token-tip": "エンドポイントの検証トークンです。秘密にしてください。",
+ "self": "SCIM から同期"
+ },
+ "grant-access": "アクセスを許可する",
+ "groups": {
+ "add-group": "グループを追加",
+ "external-readonly": "External group is read-only.",
+ "form": {
+ "description": "説明",
+ "email": "Eメール",
+ "email-tips": "電子メールは一意である必要があり、作成後に変更することはできません。",
+ "role": {
+ "member": "グループの人(仲間)たち",
+ "owner": "グループオーナー"
+ },
+ "title": "タイトル"
},
- "presets": {
- "drop-or-truncate": "テーブル削除/切り捨て",
- "fallback": "フォールバックルール",
- "high-affected-rows": "高影響行数"
- }
- }
+ "n-members": "{{n}} 人のメンバー",
+ "self": "グループ",
+ "update-group": "更新グループ",
+ "workspace-domain-required": "まずワークスペースドメインを設定してください。"
+ },
+ "inactive-users": "非アクティブユーザー",
+ "revoke-access": "アクセスを取り消す",
+ "revoke-access-alert": "アクセスを取り消してもよろしいですか?",
+ "revoke-allusers-alert": "「すべてのユーザー」を取り消すと、ワークスペース内の他のすべてのユーザーの関連ロールが取り消されます。続行しますか?",
+ "revoked": "取り消されました",
+ "search-member": "メンバーを検索",
+ "select-account-hint": "ユーザーやグループを検索するか、完全なメールアドレスを入力してサービスアカウントまたはワークロードアイデンティティを選択できます。",
+ "select-account_one": "アカウントを選択",
+ "select-account_other": "アカウントを選択",
+ "select-role_one": "ロールを選択",
+ "select-role_other": "ロールを選択",
+ "service-account": "サービスアカウント",
+ "show-inactive": "非アクティブなアカウントを表示",
+ "table": {
+ "account": "アカウント",
+ "groups": "グループ",
+ "roles": "ロール"
+ },
+ "update-user": "ユーザーを更新",
+ "view-by-members": "メンバー別に表示",
+ "view-by-roles": "ロールごとに表示",
+ "workload-identity": "Workload Identity"
},
- "risk": {
- "description": "リスク評価は、データベースの変更を自動的に評価し、実行される操作の種類に基づいてリスクレベルを割り当てます。",
- "how-it-works": "仕組み",
- "how-it-works-description": "データベースの変更を作成すると、Bytebaseは自動的にSQL文を分析し、事前定義されたルールに基づいてリスクレベル(低、中、高)を割り当てます。",
- "risk-levels": "リスクレベル",
- "risk-level-high": "高リスクの操作には、DROP TABLE、TRUNCATE、または大規模なデータ変更などの破壊的な変更が含まれます。",
- "risk-level-moderate": "中リスクの操作には、カラムやインデックスの追加などの標準的なDDL変更が含まれます。",
- "risk-level-low": "低リスクの操作には、SELECTクエリや問題を引き起こす可能性が低い軽微なスキーマ変更が含まれます。",
- "integration": "承認フローとの連携",
- "integration-description": "リスクレベルはカスタム承認システムと連携しています。変更の評価されたリスクレベルに基づいて、異なるレベルのレビューを必要とする承認フローを設定できます。"
+ "profile": {
+ "password": "パスワード",
+ "password-confirm": "パスワードの確認",
+ "password-confirm-placeholder": "新しいパスワードを確認します",
+ "password-hint": "パスワードは制限設定に従う必要があります",
+ "password-mismatch": "新しいパスワードが一致しません",
+ "phone": "電話番号",
+ "phone-tips": "国コードを必ず含めてください +81xxxxxx"
},
- "risk-rule": {
- "risk": {
- "namespace": {
- "change_database": "データベースの変更",
- "create_database": "データベースの作成",
- "data_export": "データのエクスポート",
- "request-role": "ロールのリクエスト",
- "request-access": "ジャストインタイムアクセスのリクエスト"
+ "sensitive-data": {
+ "algorithms": {
+ "add": "アルゴリズムを追加",
+ "edit": "アルゴリズムを編集",
+ "error": {
+ "salt-required": "塩分値を入力してください",
+ "slice-invalid-number": "マスク範囲の開始値と終了値は数値である必要があります",
+ "slice-overlap": "マスキング範囲は重複できません",
+ "slice-required": "マスク範囲を空にすることはできません",
+ "substitution-length": "マスク文字列の長さは 16 文字を超えることはできません",
+ "substitution-required": "マスク文字列を入力してください"
},
- "risk-level": {
- "default": "デフォルト",
- "high": "高",
- "moderate": "中",
- "low": "低"
- }
- }
- }
- },
- "identity-provider": {
- "test-connection-success": "テスト接続に成功しました",
- "userinfo-description": "一致したユーザー情報。",
- "claims-description": "IDプロバイダーから以下のクレームが返されました。この情報は、フィールドマッピングの設定に役立ちます。",
- "no-claims": "アイデンティティ プロバイダーから返されるクレームはありません。",
- "test-connection": "テスト接続",
- "delete-warning": "このアイデンティティプロバイダを削除してもよろしいですか?このSSO経由でサインアップしたユーザーは、今後このSSOでサインインできなくなります。ワークスペースの設定でパスワードによるサインインが無効になっている場合、これらのユーザーは完全にロックアウトされる可能性があります。",
- "identity-provider-update-failed": "IDプロバイダの更新に失敗しました",
- "identity-provider-permission-denied": "許可が拒否されました",
- "identity-provider-deleted": "ID プロバイダが正常に削除されました",
- "identity-provider-delete-failed": "IDプロバイダの削除に失敗しました",
- "identity-provider-created": "ID プロバイダが正常に作成されました",
- "identity-provider-create-failed": "IDプロバイダの作成に失敗しました"
- },
- "error-page": {
- "not-found": "ページが見つかりません"
- },
- "instance": {
- "successfully-archived-instance": "インスタンス '{{0}}' を正常にアーカイブしました。",
- "successfully-restored-instance": "インスタンス '{{0}}' を正常に復元しました。",
- "archive-instance-instance-name": "インスタンス '{{0}}' をアーカイブしますか?",
- "archived-instances-will-not-be-displayed": "アーカイブされたインスタンスは表示されなくなります。",
- "force-archive-description": "アーカイブを強制します。すべてのデータベースの割り当てが解除されます。",
- "syncing": "同期中 ...",
- "sync": {
- "self": "インスタンスの同期",
- "sync-all-tip": "データベースの同期は非同期で、数秒から数分かかる場合があります。",
- "sync-all": "すべてのデータベースを同期する",
- "sync-new": "新しいデータベースのみを同期する"
- },
- "selected-n-instances_one": "{{count}} 個のインスタンスが選択されました",
- "selected-n-instances_other": "{{count}} 個のインスタンスが選択されました",
- "advanced-search": {
- "scope": {
- "host": {
- "title": "サーバーアドレス",
- "description": "インスタンス サーバーのアドレスでフィルターします。値を入力してEnterキーを押してください。"
+ "full-mask": {
+ "self": "完全マスク",
+ "substitution": "マスク文字列",
+ "substitution-label": "マスキング文字列は、元の値を置換するために使用される文字列であり、最大長 16 文字を超えることはできません。"
},
- "port": {
- "title": "ポート",
- "description": "インスタンス ポートでフィルターします。値を入力してEnterキーを押してください。"
+ "inner-outer-mask": {
+ "inner-label": "内部マスクは文字列の内部部分をマスクします。プレフィックスとサフィックスはデータのマスクされていない部分を表します。",
+ "inner-mask": "インナーマスク",
+ "outer-label": "外部マスクは文字列の左右の端をマスクします。プレフィックスとサフィックスはデータのマスクされた部分を表します。",
+ "outer-mask": "アウターマスク",
+ "prefix-length": "プレフィックスの長さ",
+ "self": "内部/外部マスク",
+ "suffix-length": "サフィックスの長さ",
+ "type": "マスクタイプ"
+ },
+ "md5-mask": {
+ "salt": "ソルト値",
+ "salt-label": "ソルト値は、元の値からハッシュ値を生成するために使用されます。",
+ "self": "MD5ハッシュ"
+ },
+ "range-mask": {
+ "label": "範囲マスキングでは、マスクされた文字列を使用して、開始インデックスから終了インデックスまでの元の値を置き換えます (排他的)。インデックスは 0 から始まります。",
+ "self": "範囲マスキング",
+ "slice-end": "終了位置",
+ "slice-start": "出発点",
+ "substitution": "マスク文字列"
+ },
+ "table": {
+ "masking-type": "アルゴリズムの種類"
}
+ },
+ "classification": {
+ "empty-classification": "The \"classification\" field is empty",
+ "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
+ "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children).",
+ "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
+ "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
+ "invalid-json": "Invalid JSON format",
+ "missing-classification": "Missing \"classification\" field",
+ "missing-levels": "Missing \"levels\" field"
+ },
+ "global-rules": {
+ "condition-order": "条件付きシーケンス",
+ "delete-rule-tip": "このルールを削除しますか?",
+ "description": "グローバル ルールを使用してバッチでマスキングを適用します。たとえば、「email」という名前のすべての列は特定のセマンティック タイプでマスキングされ、マスキング アルゴリズムが適用されます。",
+ "error": {
+ "invalid-condition": "条件が無効です",
+ "missing-semantic-type": "セマンティックタイプは必須です"
+ },
+ "re-order": "並び替え"
+ },
+ "semantic-types": {
+ "add-from-template": "テンプレートから追加",
+ "label": "同じセマンティック タイプの列は、同じマスキング アルゴリズムを使用します。",
+ "select": "セマンティックタイプの選択",
+ "table": {
+ "delete": "このセマンティック タイプを削除しますか?",
+ "description": "説明",
+ "icon": "アイコン",
+ "masking-algorithm": "マスキングアルゴリズム",
+ "semantic-type": "セマンティックタイプ"
+ },
+ "template": {
+ "description": "テンプレートから組み込みのセマンティック タイプを適用できます。組み込みテンプレートは変更できません。",
+ "duplicate-warning": "セマンティック タイプ \"{{title}}\" は既に存在します"
+ },
+ "use-predefined-type": "事前定義されたタイプを使用する"
}
},
- "filter-instance-name": "インスタンス名のフィルタリング"
- },
- "db": {
- "start-to-sync-schema": "スキーマの同期を開始します",
- "character-set": "文字セット",
- "collation": "照合順序",
- "encoding": "エンコーディング",
- "failed-to-sync-schema": "スキーマの同期に失敗しました",
- "successfully-synced-schema": "スキーマの同期に成功しました"
- },
- "quick-action": {
- "add-instance": "インスタンス追加",
- "create-project": "作成するプロジェクト",
- "new-project": "作成するプロジェクト",
- "create-db": "データベースの作成",
- "new-db": "データベースの作成"
- },
- "landing": {
- "quick-link": {
- "visit-prjects": "プロジェクトを開く",
- "visit-issues": "イシューを開く",
- "manage": "クイックリンクを管理する",
- "self": "クイックリンク"
+ "sidebar": {
+ "audit-log": "監査ログ",
+ "custom-roles": "カスタムロール",
+ "data-classification": "データ分類",
+ "general": "全般",
+ "global-masking": "グローバルマスキング",
+ "im-integration": "IM",
+ "mcp": "MCP",
+ "members": "メンバー",
+ "members-and-groups": "メンバーとグループ",
+ "sso": "SSO",
+ "subscription": "サブスクリプション",
+ "users-and-groups": "ユーザーとグループ"
},
- "last-visit": "最終訪問",
- "changelog-for-version": "{{version}} の変更履歴"
- },
- "remind": {
- "release": {
- "new-version-available-with-tag": "新しいバージョン {{tag}} が利用可能です"
+ "sso": {
+ "create": "SSOの作成",
+ "delete": "この SSO を削除する",
+ "description": "シングル サインオン (SSO) は、ユーザーが他のアプリケーションや Web サイトからログインできるようにする認証方法です。",
+ "form": {
+ "auth-url": "認証URL",
+ "auth-url-description": "ログインページへのリンク",
+ "auth-url-placeholder": "例えばhttps://github.com/login/oauth/authorize",
+ "authentication-style": "認証スタイル",
+ "base-dn": "ベースDN",
+ "base-dn-description": "ユーザーを検索するためのベースDN",
+ "base-dn-placeholder": "例えばou=ユーザー、dc=例、dc=com",
+ "bind-dn": "バインドDN",
+ "bind-dn-description": "検索リクエストにバインドするユーザーのDN",
+ "bind-dn-placeholder": "例えばuid=システム、ou=ユーザー、dc=example、dc=com",
+ "bind-password": "パスワードをバインドする",
+ "configuration": "構成",
+ "configuration-description": "IDプロバイダーの接続設定を構成する",
+ "custom-template-description": "カスタムOAuth 2.0プロバイダーを構成する",
+ "display-name": "バイトベースユーザーのニックネーム",
+ "display-name-placeholder": "例: name、displayName",
+ "domain": "ドメイン名",
+ "domain-description": "OAuthプロバイダーのドメイン名",
+ "domain-optional-hint": "オプション: 電子メール形式でない場合は識別子と連結するために使用します",
+ "general-setting-description": "ID プロバイダーに関する基本情報を提供します。",
+ "github-template-description": "GitHubアカウントでサインイン",
+ "gitlab-template-description": "GitLabアカウントでサインイン",
+ "google-template-description": "Googleアカウントでログイン",
+ "groups": "Bytebaseユーザーグループ",
+ "groups-description": "グループベースのアクセス制御に使用されます(OIDC プロバイダーのみ)",
+ "groups-placeholder": "例:グループ",
+ "host-placeholder": "例: ldap.example.com",
+ "identifier": "バイトベースユーザーの電子メールアドレス",
+ "identifier-placeholder": "例:ログイン、メール",
+ "identifier-tips": "電子メールは一意である必要があります。実際の値がメールボックス形式でない場合は、ドメインと連結されます。",
+ "identity-provider-needed-information": "次の情報を使用して SSO アプリケーションを作成します。",
+ "in-header": "ヘッダー内",
+ "in-header-description": "HTTP 基本認証を使用して資格情報を送信する",
+ "in-parameters": "パラメータ",
+ "in-parameters-description": "POST 本文で資格情報を送信する(推奨)",
+ "issuer-url-description": "OIDC 発行者 URL (既知の構成は自動的に検出されます)",
+ "issuer-url-placeholder": "例: https://acme.okta.com",
+ "ldap-description": "Microsoft Active Directory、OpenLDAPなどのLDAPプロバイダーに接続します",
+ "ldaps": "LDAP",
+ "ldaps-description": "最初から TLS を使用する (ポート 636)",
+ "microsoft-entra-template-description": "Microsoft Entra IDでサインイン",
+ "name": "名前",
+ "name-description": "ログインユーザーに表示される名前",
+ "none": "なし",
+ "none-description": "暗号化なし(本番環境では推奨されません)",
+ "oauth2-description": "Google、GitHub、GitLabなどのOAuth 2.0プロバイダーと接続する",
+ "oidc-description": "Microsoft Entra ID (Azure AD)、Okta、Auth0 などの OpenID Connect プロバイダーと接続します。",
+ "openid-scopes-description": "OIDC スコープのスペース区切りリスト (openid は必須)",
+ "phone": "Bytebase ユーザーの携帯電話番号",
+ "phone-placeholder": "例:電話、携帯電話",
+ "provider-type-readonly-hint": "プロバイダタイプは作成後に変更できません",
+ "redirect-url": "コールバックアドレス",
+ "redirect-url-description": "ID プロバイダー要求フォームの対応するフィールドに入力するために使用されます。",
+ "scopes": "スコープ",
+ "scopes-description": "認証 URL にアクセスするときに渡される範囲パラメーター。複数の値を区切るにはスペースを使用します。",
+ "scopes-placeholder": "例: user, email, profile",
+ "scopes-placeholder-oidc": "例: openid, user, email, profile",
+ "security-options": "セキュリティオプション",
+ "security-protocol": "セキュリティプロトコル",
+ "skip-tls-verification": "TLS証明書の検証をスキップする",
+ "skip-tls-warning": "開発またはテストの目的でのみ有効にしてください",
+ "starttls": "TLS を開始",
+ "starttls-description": "接続を TLS にアップグレードする (推奨)",
+ "template-description": "事前設定されたテンプレートを選択するか、カスタムのOAuth 2.0プロバイダーを設定します",
+ "token-url": "トークンURL",
+ "token-url-description": "accessTokenの取得に使用するAPIアドレス",
+ "token-url-placeholder": "例えばhttps://github.com/login/oauth/access_token",
+ "type": "タイプ",
+ "type-description": "設定するIDプロバイダーの種類を選択します",
+ "use-template": "テンプレートを使用する",
+ "user-filter": "ユーザーフィルター",
+ "user-filter-description": "ユーザーを検索するためのフィルター (%s はユーザー名に置き換えられます)",
+ "user-filter-placeholder": "例: (uid=%s)",
+ "user-info-url": "ユーザー情報URL",
+ "user-info-url-description": "accessTokenによるユーザー情報の取得に使用するAPIアドレス",
+ "user-info-url-placeholder": "例えばhttps://api.github.com/user",
+ "user-information-mapping": "ユーザー情報のマッピング",
+ "user-information-mapping-description": "フィールド マップには、API ユーザー情報のフィールド名が保持されます。"
+ }
}
},
- "banner": {
- "external-url": "Bytebase は --extern-url を設定していません"
+ "sql-editor": {
+ "self": "SQLエディタ"
},
- "project": {
- "create-modal": {
- "success-prompt": "{{name}} が正常に作成されました。",
- "project-name": "プロジェクト名前"
+ "sql-review": {
+ "configure-policy": "SQL レビューポリシーを設定する",
+ "title": "SQL レビューポリシー"
+ },
+ "subscription": {
+ "contact-us": "お問い合わせ",
+ "current": "現在のプラン",
+ "description": "ここで購入した Bytebase ライセンスをアップロードして、プロフェッショナル/エンタープライズ機能のロックを解除できます。",
+ "enterprise-free-trial": "Enterprise の {{days}} 日間の無料トライアル",
+ "expired": "期限切れ",
+ "expires-at": "有効期限",
+ "inquire-enterprise-plan": "Enterprise版のお問い合わせ",
+ "instance-assignment": {
+ "assign-license": "ライセンスの割り当て",
+ "license": "ライセンス",
+ "missing-license-attention": "この機能のロックを解除するには、インスタンスにライセンスを割り当ててください。",
+ "used-and-total-license": "割り当てられた/合計インスタンスライセンス",
+ "used-and-total-user": "アクティブ/合計ユーザー制限"
},
- "batch": {
- "archive": {
- "success_one": "{{count}} 件のプロジェクトを正常にアーカイブしました",
- "success_other": "{{count}} 件のプロジェクトを正常にアーカイブしました",
- "error": "プロジェクトをアーカイブできませんでした",
- "title_one": "{{count}} 件のプロジェクトをアーカイブしますか?",
- "title_other": "{{count}} 件のプロジェクトをアーカイブしますか?",
- "description": "選択したプロジェクトがアーカイブされます。必要に応じて後で復元できます。"
+ "max-instance-count": "最大インスタンス数",
+ "plan": {
+ "enterprise": {
+ "desc": "追加のセキュリティ、コンプライアンス、および権限機能。SLA付きの専任サポート。",
+ "label": "",
+ "title": "エンタープライズ"
},
- "delete": {
- "success_one": "{{count}} 件のプロジェクトを正常に削除しました",
- "success_other": "{{count}} 件のプロジェクトを正常に削除しました",
- "error": "プロジェクトを削除できませんでした",
- "title_one": "{{count}} 件のプロジェクトを削除しますか?",
- "title_other": "{{count}} 件のプロジェクトを削除しますか?",
- "description": "選択したプロジェクトを完全に削除し、すべてのデータベースをデフォルトプロジェクトに移動します。",
- "warning": "この操作は元に戻せません。イシュー、設定、履歴を含むすべてのプロジェクトデータが完全に削除されます。"
+ "free": {
+ "desc": "データベース開発ライフサイクルを管理するためのチームの基本機能。",
+ "label": "",
+ "title": "コミュニティ"
},
- "selected_one": "{{count}} 件のプロジェクトが選択されました",
- "selected_other": "{{count}} 件のプロジェクトが選択されました"
+ "team": {
+ "desc": "チーム間のコラボレーションを標準化し、促進するためのさらなるポリシー。",
+ "label": "",
+ "title": "プロ"
+ },
+ "title": "コミュニティ",
+ "try": "無料トライアルを開始する"
},
- "filter-projects": "プロジェクトをフィルタリング",
- "table": {
- "name": "名前"
+ "plan-compare": "異なるプラン間の機能を比較する",
+ "purchase": {
+ "accept-terms-prefix": "以下に同意します:",
+ "and": "および",
+ "billing-period": "請求期間",
+ "cancel": "サブスクリプションをキャンセル",
+ "cancel-confirm": "サブスクリプションをキャンセルしてもよろしいですか?",
+ "cancel-pending": "サブスクリプションはキャンセル済みで、{{date}} に終了します。",
+ "canceled": "サブスクリプションがキャンセルされました",
+ "custom": "カスタム",
+ "discount": {
+ "month-off": "{{value}} ヶ月無料",
+ "percentage-off": "初月 {{value}}% オフ",
+ "price-off": "${{value}} オフ"
+ },
+ "enterprise-description": "Scale your business securely while staying compliant.",
+ "free-description": "Designed for solo devs, side-projects, and experiments.",
+ "manage-invoices": "請求書を管理",
+ "payment-info": "支払い情報",
+ "pending-description": "お支払いの確認中です。通常は数秒で完了します。",
+ "pending-title": "購入を完了しています...",
+ "per-user-per-month": "/ ユーザー / 月",
+ "privacy-policy": "プライバシーポリシー",
+ "pro-description": "Built for teams creating production-ready applications.",
+ "seats": "ユーザー数",
+ "see-comparison": "機能の詳細比較を見る",
+ "subscribe": "今すぐ購読",
+ "terms-of-service": "利用規約",
+ "total-price": "合計金額",
+ "update": "サブスクリプションを更新"
+ },
+ "request-n-days-trial": "{{days}} 日間のトライアルをリクエストします (クレジット カードは必要ありません)",
+ "require-subscription": "この機能は、{{requiredPlan}} のサブスクリプションが必要です。この機能のロックを解除するには、Bytebase ライセンスを購入してください。",
+ "required-plan-with-trial": "この機能は、{{requiredPlan}} のサブスクリプションが必要です。{{startTrial}} ",
+ "trial-for-days": "{{days}} 日間の無料トライアルを開始できます。クレジット カードや前払いは必要ありません。",
+ "trialing": "トライアル中",
+ "try-for-free": "無料トライアル",
+ "update": {
+ "failure": {
+ "description": "ライセンスが有効かどうかを確認してください",
+ "title": "ライセンスの更新に失敗しました"
+ },
+ "success": {
+ "description": "サブスクリプション版のプレミアム機能がロック解除されました",
+ "title": "ライセンスが正常に更新されました"
+ }
+ },
+ "upload-license": "ライセンスのアップロード",
+ "usage": {
+ "instance-count": {
+ "runoutof": "すべての {{total}} インスタンス クレジットが使用されました。",
+ "title": "インスタンスの制限"
+ },
+ "user-count": {
+ "remaining": "現在の合計ユーザー割り当ては {{total}} で、使用できる共有は {{count}} 個のみです。",
+ "runoutof": "{{total}} 個のユーザー クレジットがすべて使用されました。",
+ "title": "ユーザー制限",
+ "upgrade": "アップグレード でユーザークォータをさらに取得します。"
+ }
}
},
- "resource": {
- "delete-warning-with-resources": "「{{name}}」は次のリソースによって使用されます:",
- "delete-warning-retry": "これらのリソースから削除して、もう一度お試しください。",
- "delete-warning": "「{{name}}」は削除されます。この操作は元に戻せません。"
- },
- "sql-editor": {
- "self": "SQLエディタ"
- },
- "create-db": {
- "cluster": "集まる",
- "database-owner-name": "データベース所有者",
- "new-collection-name": "新しいコレクション名",
- "new-database-name": "新しいデータベース名",
- "reserved-db-error": "{{databaseName}} は予約された名前です"
- },
- "issue": {
- "labels": "イシューラベル"
+ "two-factor": {
+ "enabled": "二要素認証がオンになっています"
}
}
diff --git a/frontend/src/react/locales/vi-VN.json b/frontend/src/react/locales/vi-VN.json
index cc3d566f55..1cb4581eb0 100644
--- a/frontend/src/react/locales/vi-VN.json
+++ b/frontend/src/react/locales/vi-VN.json
@@ -1,236 +1,407 @@
{
+ "audit-log": {
+ "advanced-search": {
+ "scope": {
+ "actor": {
+ "description": "Tìm kiếm theo người thực hiện",
+ "title": "Người thực hiện"
+ },
+ "level": {
+ "description": "Tìm kiếm theo mức độ",
+ "title": "Mức độ"
+ },
+ "method": {
+ "description": "Tìm kiếm theo phương thức",
+ "title": "Phương thức"
+ }
+ }
+ },
+ "export-tooltip": "Phải chọn thời gian bắt đầu và kết thúc trong vòng 30 ngày",
+ "table": {
+ "actor": "Người thực hiện",
+ "created-ts": "Thời gian",
+ "latency": "Độ trễ",
+ "level": "Mức độ",
+ "method": "Phương thức",
+ "request": "Yêu cầu",
+ "response": "Phản hồi",
+ "service-data": "Dữ liệu Dịch vụ",
+ "status": "Trạng thái"
+ }
+ },
+ "banner": {
+ "external-url": "Bytebase chưa được cấu hình --external-url"
+ },
+ "bbkit": {
+ "confirm-button": {
+ "sure-to-delete": "Bạn có chắc chắn muốn xóa?"
+ }
+ },
+ "cel": {
+ "condition": {
+ "add": "Thêm điều kiện",
+ "add-condition-in-group-placeholder": "Thêm {{plus}} để thêm điều kiện",
+ "add-group": "Thêm nhóm điều kiện",
+ "add-raw-expression": "Thêm biểu thức thô",
+ "add-root-condition-placeholder": "Nhấp vào \"Thêm điều kiện\" hoặc \"Thêm nhóm điều kiện\" để thêm điều kiện",
+ "description-tips": "Điều kiện là một quy tắc có thể được định cấu hình thông qua một biểu thức. Ví dụ: điều kiện \"Môi trường là sản xuất\" sẽ khớp với các vấn đề được thực hiện trong môi trường \"sản xuất\".",
+ "group": {
+ "and": {
+ "description": "Tất cả những điều sau đây là đúng..."
+ },
+ "or": {
+ "description": "Bất kỳ điều nào sau đây là đúng..."
+ }
+ },
+ "input-value": "Nhập giá trị",
+ "input-value-press-enter": "Nhập giá trị, nhấn Enter để xác nhận",
+ "select-value": "Chọn giá trị",
+ "self": "Điều kiện"
+ }
+ },
"common": {
- "filter-by-name": "Lọc theo tên",
- "loading": "Đang tải",
- "no-data": "Không có dữ liệu",
+ "add": "Thêm",
+ "add-permissions": "Thêm quyền",
+ "added": "Đã thêm",
+ "address": "Địa chỉ",
"all": "Tất cả",
- "edit": "Chỉnh sửa",
- "updated": "Đã cập nhật",
- "learn-more": "Tìm hiểu thêm",
- "revert": "Hoàn tác",
+ "archive": "Lưu trữ",
+ "archived": "Đã lưu trữ",
+ "back": "Quay lại",
"cancel": "Hủy",
- "save": "Lưu",
- "confirm": "Xác nhận",
+ "cannot-undo-this-action": "Bạn không thể hoàn tác hành động này.",
"clear": "Xóa",
- "add": "Thêm",
- "warning": "Cảnh báo",
- "environment-name": "Tên môi trường",
- "environment": "Môi trường",
+ "close": "Đóng",
+ "configure": "Cấu hình",
+ "configure-now": "Cấu hình ngay",
+ "confirm": "Xác nhận",
"confirm-and-update": "Xác nhận và Cập nhật",
- "cannot-undo-this-action": "Bạn không thể hoàn tác hành động này.",
- "delete": "Xóa",
+ "copied": "Đã sao chép",
+ "copy": "Sao chép",
"create": "Tạo",
- "leave-without-saving": "Thoát mà không lưu?",
+ "created": "Đã tạo",
+ "delete": "Xóa",
+ "delete-resource": "Delete {{type}}",
"deleted": "Đã xóa",
- "reorder": "Sắp xếp lại",
- "close": "Đóng",
- "general": "Chung",
- "type": "Loại",
+ "description": "Mô tả",
"discard-changes": "Hủy thay đổi",
- "update": "Cập nhật",
- "copied": "Đã sao chép",
- "copy": "Sao chép",
- "back": "Quay lại",
- "next": "Tiếp theo",
+ "edit": "Chỉnh sửa",
+ "email": "Email",
+ "environment": "Môi trường",
+ "environment-name": "Tên môi trường",
+ "export": "Xuất",
+ "failed": "Thất bại",
+ "file-selector": {
+ "size-limit": "Kích thước tệp phải nhỏ hơn {{size}} MiB",
+ "type-limit": "Chỉ hỗ trợ tệp {{extension}}"
+ },
+ "filter-by-name": "Lọc theo tên",
+ "from": "Từ",
+ "general": "Chung",
+ "groups": "Nhóm",
"id": "ID",
- "name": "Tên",
- "sensitive-placeholder": "Nhạy cảm - Chỉ ghi",
- "unassigned": "Chưa gán",
- "archive": "Lưu trữ",
- "restore": "Khôi phục",
- "delete-resource": "Delete {{type}}",
+ "instance": "Phiên bản",
+ "is-required": "is required",
"labels": "Nhãn",
- "state": "Trạng thái",
- "address": "Địa chỉ",
- "rows-per-page": "Số dòng mỗi trang",
+ "learn-more": "Tìm hiểu thêm",
+ "leave-without-saving": "Thoát mà không lưu?",
"load-more": "Tải thêm",
- "configure-now": "Cấu hình ngay",
- "restored": "Restored",
- "archived": "Đã lưu trữ",
- "select-all": "Chọn tất cả",
- "total-n-items": "Tổng {{n}} mục",
- "search": "Tìm kiếm",
+ "loading": "Đang tải",
+ "members_one": "Thành viên",
+ "members_other": "Thành viên",
+ "missing-required-permission": "Thiếu quyền cần thiết {{permissions}}",
"n-items-selected": "Đã chọn {{n}} mục",
- "permissions": "Quyền",
- "added": "Đã thêm",
- "description": "Mô tả",
+ "name": "Tên",
+ "next": "Tiếp theo",
+ "no-data": "Không có dữ liệu",
+ "ok": "OK",
"operations": "Các thao tác",
- "title": "Tiêu đề",
- "missing-required-permission": "Thiếu quyền cần thiết {{permissions}}",
+ "permissions": "Quyền",
+ "project": "Dự án",
+ "reorder": "Sắp xếp lại",
"required-permission": "Quyền hạn cần thiết",
"required-workspace-permission": "Các quyền sau đây cần thiết để khởi tạo không gian làm việc UX",
- "add-permissions": "Thêm quyền",
+ "restore": "Khôi phục",
+ "restored": "Restored",
+ "revert": "Hoàn tác",
+ "rows-per-page": "Số dòng mỗi trang",
+ "save": "Lưu",
+ "search": "Tìm kiếm",
+ "select": "Vui lòng chọn",
+ "select-all": "Chọn tất cả",
+ "sensitive-placeholder": "Nhạy cảm - Chỉ ghi",
+ "state": "Trạng thái",
"system": "Hệ thống",
- "created": "Đã tạo",
- "upload": "Tải lên",
+ "title": "Tiêu đề",
+ "to": "Đến",
+ "total-n-items": "Tổng {{n}} mục",
+ "type": "Loại",
+ "unassigned": "Chưa gán",
"unlimited": "Không giới hạn",
- "file-selector": {
- "type-limit": "Chỉ hỗ trợ tệp {{extension}}",
- "size-limit": "Kích thước tệp phải nhỏ hơn {{size}} MiB"
- },
- "ok": "OK",
- "failed": "Thất bại",
- "instance": "Phiên bản",
- "project": "Dự án",
- "select": "Vui lòng chọn",
- "export": "Xuất",
+ "update": "Cập nhật",
+ "updated": "Đã cập nhật",
+ "upload": "Tải lên",
+ "users": "Người dùng",
"view": "Xem",
"view-details": "Xem Chi tiết",
- "from": "Từ",
- "to": "Đến"
+ "warning": "Cảnh báo",
+ "you": "bạn",
+ "copy-failed": "Copy failed"
},
- "audit-log": {
- "export-tooltip": "Phải chọn thời gian bắt đầu và kết thúc trong vòng 30 ngày",
- "table": {
- "created-ts": "Thời gian",
- "actor": "Người thực hiện",
- "level": "Mức độ",
- "method": "Phương thức",
- "request": "Yêu cầu",
- "response": "Phản hồi",
- "status": "Trạng thái",
- "latency": "Độ trễ",
- "service-data": "Dữ liệu Dịch vụ"
- },
- "advanced-search": {
- "scope": {
- "actor": {
- "title": "Người thực hiện",
- "description": "Tìm kiếm theo người thực hiện"
+ "create-db": {
+ "cluster": "Cụm",
+ "database-owner-name": "Tên chủ sở hữu cơ sở dữ liệu",
+ "new-collection-name": "Tên bộ sưu tập mới",
+ "new-database-name": "Tên cơ sở dữ liệu mới",
+ "reserved-db-error": "{{databaseName}} là một tên dành riêng"
+ },
+ "custom-approval": {
+ "approval-flow": {
+ "add-rule": "Thêm quy tắc",
+ "create-approval-flow": "Tạo quy trình phê duyệt",
+ "edit-rule": "Chỉnh sửa quy tắc",
+ "fallback-rules": "Quy tắc dự phòng",
+ "fallback-rules-hint": "Quy tắc dự phòng chỉ được đánh giá khi không có quy tắc nào khác khớp.",
+ "node": {
+ "add": "Thêm nút",
+ "approver": "Người phê duyệt",
+ "delete": "Xóa nút phê duyệt",
+ "description": "Chỉ cần một phê duyệt trên nút này khi có nhiều người phê duyệt.",
+ "nodes": "Nút phê duyệt",
+ "order": "Thứ tự"
+ },
+ "self": "Quy trình phê duyệt",
+ "skip": "Không cần phê duyệt",
+ "template": {
+ "preset-descriptions": {
+ "drop-or-truncate": "Yêu cầu phê duyệt cho các câu lệnh DROP TABLE hoặc TRUNCATE.",
+ "fallback": "Quy tắc bắt tất cả khớp với mọi yêu cầu. Đặt ở cuối danh sách quy tắc của bạn.",
+ "high-affected-rows": "Yêu cầu phê duyệt khi số hàng bị ảnh hưởng vượt quá 100."
},
- "method": {
- "title": "Phương thức",
- "description": "Tìm kiếm theo phương thức"
+ "presets": {
+ "drop-or-truncate": "Xóa/Truncate Bảng",
+ "fallback": "Quy tắc dự phòng",
+ "high-affected-rows": "Số Hàng Ảnh Hưởng Cao"
},
- "level": {
- "title": "Mức độ",
- "description": "Tìm kiếm theo mức độ"
+ "presets-title": "Mẫu có sẵn"
+ }
+ },
+ "risk": {
+ "description": "Đánh giá rủi ro tự động đánh giá các thay đổi cơ sở dữ liệu và phân loại mức độ rủi ro dựa trên loại thao tác được thực hiện.",
+ "how-it-works": "Cách hoạt động",
+ "how-it-works-description": "Khi bạn tạo một thay đổi cơ sở dữ liệu, Bytebase tự động phân tích các câu lệnh SQL và phân loại mức độ rủi ro (Thấp, Trung bình hoặc Cao) dựa trên các quy tắc được xác định trước.",
+ "integration": "Tích hợp với Quy trình Phê duyệt",
+ "integration-description": "Các mức độ rủi ro tích hợp với hệ thống Phê duyệt Tùy chỉnh. Bạn có thể cấu hình các quy trình phê duyệt yêu cầu các cấp độ xem xét khác nhau dựa trên mức độ rủi ro được đánh giá của một thay đổi.",
+ "risk-level-high": "Các thao tác rủi ro cao bao gồm các thay đổi phá hủy như DROP TABLE, TRUNCATE hoặc sửa đổi dữ liệu quy mô lớn.",
+ "risk-level-low": "Các thao tác rủi ro thấp bao gồm các truy vấn SELECT và các thay đổi schema nhỏ không có khả năng gây ra sự cố.",
+ "risk-level-moderate": "Các thao tác rủi ro trung bình bao gồm các thay đổi DDL tiêu chuẩn như thêm cột hoặc chỉ mục.",
+ "risk-levels": "Các Mức độ Rủi ro"
+ },
+ "risk-rule": {
+ "risk": {
+ "namespace": {
+ "change_database": "Thay đổi cơ sở dữ liệu",
+ "create_database": "Tạo cơ sở dữ liệu",
+ "data_export": "Xuất dữ liệu",
+ "request-access": "Yêu cầu quyền truy cập Just-In-Time",
+ "request-role": "Yêu cầu vai trò"
+ },
+ "risk-level": {
+ "default": "Mặc định",
+ "high": "Cao",
+ "low": "Thấp",
+ "moderate": "Trung bình"
}
}
+ },
+ "rule": {
+ "first-match-wins": "Các quy tắc được đánh giá theo thứ tự. Quy tắc phù hợp đầu tiên sẽ được áp dụng."
}
},
- "cel": {
- "condition": {
- "input-value": "Nhập giá trị",
- "select-value": "Chọn giá trị",
- "input-value-press-enter": "Nhập giá trị, nhấn Enter để xác nhận",
- "group": {
- "or": {
- "description": "Bất kỳ điều nào sau đây là đúng..."
- },
- "and": {
- "description": "Tất cả những điều sau đây là đúng..."
- }
- },
- "add-condition-in-group-placeholder": "Thêm {{plus}} để thêm điều kiện",
- "add-root-condition-placeholder": "Nhấp vào \"Thêm điều kiện\" hoặc \"Thêm nhóm điều kiện\" để thêm điều kiện",
- "add": "Thêm điều kiện",
- "add-raw-expression": "Thêm biểu thức thô",
- "add-group": "Thêm nhóm điều kiện",
- "description-tips": "Điều kiện là một quy tắc có thể được định cấu hình thông qua một biểu thức. Ví dụ: điều kiện \"Môi trường là sản xuất\" sẽ khớp với các vấn đề được thực hiện trong môi trường \"sản xuất\".",
- "self": "Điều kiện"
- }
- },
- "subscription": {
- "trial-for-days": "Bạn có thể bắt đầu dùng thử miễn phí trong {{days}} ngày - không cần thẻ tín dụng.",
- "required-plan-with-trial": "Tính năng này yêu cầu {{requiredPlan}}. {{startTrial}}",
- "instance-assignment": {
- "missing-license-attention": "Bạn cần gán giấy phép cho phiên bản để bật tính năng này.",
- "assign-license": "Gán giấy phép",
- "license": "Giấy phép",
- "used-and-total-user": "Giới hạn người dùng đang hoạt động / Tổng số",
- "used-and-total-license": "Giấy phép phiên bản đã gán / Tổng số"
+ "database": {
+ "classification": {
+ "description": "Define classification levels to apply consistent masking policies across columns and databases."
},
- "request-n-days-trial": "Yêu cầu dùng thử {{days}} ngày (không cần thẻ tín dụng)",
- "usage": {
- "instance-count": {
- "title": "Giới hạn số lượng phiên bản",
- "runoutof": "Bạn đã hết hạn ngạch {{total}} phiên bản của mình."
+ "edit-environment": "Chỉnh sửa Môi trường",
+ "edit-labels": "Chỉnh sửa nhãn",
+ "engine": "Engine",
+ "filter-database": "Lọc cơ sở dữ liệu",
+ "selected-n-databases": "Đã chọn {{n}} cơ sở dữ liệu",
+ "successfully-transferred-databases": "Chuyển cơ sở dữ liệu thành công",
+ "sync-schema-button": "Đồng bộ lược đồ",
+ "sync-status": "Trạng thái đồng bộ",
+ "sync-status-failed": "Đồng bộ thất bại",
+ "transfer-project": "Chuyển dự án",
+ "unassign": "Hủy gán"
+ },
+ "db": {
+ "character-set": "Bộ ký tự",
+ "collation": "Đối chiếu",
+ "encoding": "Mã hóa",
+ "failed-to-sync-schema": "Đồng bộ hóa lược đồ thất bại",
+ "start-to-sync-schema": "Bắt đầu đồng bộ hóa lược đồ",
+ "successfully-synced-schema": "Đồng bộ hóa lược đồ thành công"
+ },
+ "environment": {
+ "create": "Tạo môi trường",
+ "delete": "Xóa môi trường này",
+ "delete-description": "Xóa môi trường cũng sẽ xóa nó khỏi các phiên bản và cơ sở dữ liệu liên quan. Bạn không thể hoàn tác hành động này.",
+ "reorder": "Sắp xếp lại môi trường",
+ "successfully-updated-environment": "Đã cập nhật thành công môi trường '{{name}}'."
+ },
+ "error-page": {
+ "not-found": "Không tìm thấy"
+ },
+ "identity-provider": {
+ "claims-description": "Các yêu cầu sau đây đã được nhà cung cấp danh tính trả về. Thông tin này có thể giúp bạn cấu hình ánh xạ trường.",
+ "delete-warning": "Bạn có chắc chắn muốn xóa nhà cung cấp danh tính này không? Người dùng đã đăng ký qua SSO này sẽ không thể đăng nhập bằng SSO này nữa. Nếu đăng nhập bằng mật khẩu bị vô hiệu hóa trong cài đặt không gian làm việc của bạn, những người dùng này có thể bị khóa hoàn toàn.",
+ "identity-provider-create-failed": "Không tạo được nhà cung cấp danh tính",
+ "identity-provider-created": "Nhà cung cấp danh tính đã được tạo thành công",
+ "identity-provider-delete-failed": "Không xóa được nhà cung cấp danh tính",
+ "identity-provider-deleted": "Nhà cung cấp danh tính đã xóa thành công",
+ "identity-provider-permission-denied": "Quyền bị từ chối",
+ "identity-provider-update-failed": "Không cập nhật được nhà cung cấp danh tính",
+ "no-claims": "Nhà cung cấp danh tính không trả lại bất kỳ khiếu nại nào.",
+ "test-connection": "Kiểm tra kết nối",
+ "test-connection-success": "Kiểm tra kết nối thành công",
+ "userinfo-description": "Thông tin người dùng đã khớp."
+ },
+ "instance": {
+ "advanced-search": {
+ "scope": {
+ "host": {
+ "description": "Lọc theo máy chủ lưu trữ. Vui lòng nhập giá trị rồi nhấn Enter.",
+ "title": "Host"
+ },
+ "port": {
+ "description": "Lọc theo cổng phiên bản. Vui lòng nhập giá trị rồi nhấn Enter.",
+ "title": "Port"
+ }
}
},
- "plan": {
- "free": {
- "title": "Cộng đồng",
- "label": "",
- "desc": "Các yếu tố cần thiết cho nhóm để quản lý vòng đời phát triển cơ sở dữ liệu."
- },
- "team": {
- "title": "Pro",
- "label": "",
- "desc": "Nhiều chính sách hơn để chuẩn hóa và tạo điều kiện cộng tác giữa các nhóm."
- },
- "enterprise": {
- "title": "Doanh nghiệp",
- "label": "",
- "desc": "Các tính năng bảo mật, tuân thủ và quyền bổ sung. Hỗ trợ chuyên dụng với SLA."
- },
- "try": "Bắt đầu dùng thử miễn phí",
- "title": "Cộng đồng"
+ "archive-instance-instance-name": "Lưu trữ phiên bản '{{0}}'?",
+ "archived-instances-will-not-be-displayed": "Các phiên bản đã lưu trữ sẽ không được hiển thị.",
+ "filter-instance-name": "Lọc tên phiên bản",
+ "force-archive-description": "Buộc lưu trữ. Tất cả cơ sở dữ liệu sẽ bị hủy gán.",
+ "selected-n-instances_one": "{{count}} phiên bản đã chọn",
+ "selected-n-instances_other": "{{count}} phiên bản đã chọn",
+ "successfully-archived-instance": "Đã lưu trữ 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}}'.",
+ "sync": {
+ "self": "Đồng bộ phiên bản",
+ "sync-all": "Đồng bộ tất cả cơ sở dữ liệu",
+ "sync-all-tip": "Đồng bộ cơ sở dữ liệu không đồng bộ và có thể mất vài giây đến vài phút",
+ "sync-new": "Chỉ đồng bộ cơ sở dữ liệu mới"
},
- "purchase": {
- "free-description": "Designed for solo devs, side-projects, and experiments.",
- "pro-description": "Built for teams creating production-ready applications.",
- "enterprise-description": "Scale your business securely while staying compliant.",
- "discount": {
- "percentage-off": "tháng đầu giảm {{value}}%",
- "month-off": "{{value}} tháng miễn phí",
- "price-off": "giảm ${{value}}"
- },
- "update": "Cập nhật đăng ký",
- "subscribe": "Đăng ký ngay",
- "cancel-confirm": "Bạn có chắc chắn muốn hủy đăng ký không?",
- "canceled": "Đã hủy đăng ký",
- "pending-title": "Đang hoàn tất giao dịch...",
- "pending-description": "Vui lòng đợi trong khi chúng tôi xác nhận thanh toán. Thường chỉ mất vài giây.",
- "payment-info": "Thông tin thanh toán",
- "total-price": "Tổng giá",
- "manage-invoices": "Quản lý hóa đơn",
- "billing-period": "Kỳ thanh toán",
- "cancel-pending": "Đăng ký đã bị hủy và sẽ kết thúc vào {{date}}.",
- "cancel": "Hủy đăng ký",
- "per-user-per-month": "/ người dùng / tháng",
- "custom": "Tùy chỉnh",
- "seats": "Người dùng",
- "accept-terms-prefix": "Tôi chấp nhận",
- "terms-of-service": "Điều khoản dịch vụ",
- "and": "và",
- "privacy-policy": "Chính sách bảo mật",
- "see-comparison": "Xem so sánh tính năng chi tiết"
+ "syncing": "Đang đồng bộ hóa ..."
+ },
+ "issue": {
+ "labels": "Nhãn vấn đề"
+ },
+ "landing": {
+ "changelog-for-version": "Nhật ký thay đổi cho phiên bản {{version}}",
+ "last-visit": "Lần truy cập cuối",
+ "quick-link": {
+ "manage": "Quản lý liên kết nhanh",
+ "self": "Liên kết nhanh",
+ "visit-issues": "Truy cập Vấn đề",
+ "visit-prjects": "Truy cập Dự án"
+ }
+ },
+ "policy": {
+ "environment-tier": {
+ "description": "Môi trường sẽ xuất hiện khác với các môi trường khác.",
+ "mark-env-as-production": "Đánh dấu là môi trường sản xuất",
+ "name": "Cấp môi trường"
},
- "current": "Gói hiện tại",
- "contact-us": "Liên hệ chúng tôi",
- "update": {
- "success": {
- "title": "Đã cập nhật thành công giấy phép",
- "description": "Các tính năng cao cấp trong gói đăng ký đã được mở khóa."
+ "rollout": {
+ "auto": "Triển khai tự động",
+ "auto-info": "Nếu tất cả kiểm tra vượt qua, thay đổi sẽ được triển khai và thực hiện tự động.",
+ "info": "Các tác vụ có thể được thực hiện bởi người dùng có quyền 'taskRuns.Create' hoặc các vai trò sau.",
+ "name": "Chính sách triển khai",
+ "tip": "Chính sách được áp dụng cho các vấn đề hồi tố."
+ }
+ },
+ "project": {
+ "batch": {
+ "archive": {
+ "description": "Thao tác này sẽ lưu trữ các dự án đã chọn. Bạn có thể khôi phục chúng sau nếu cần.",
+ "error": "Không lưu trữ được dự án",
+ "success_one": "Đã lưu trữ thành công {{count}} dự án",
+ "success_other": "Đã lưu trữ thành công {{count}} dự án",
+ "title_one": "Lưu trữ {{count}} Dự án?",
+ "title_other": "Lưu trữ {{count}} Dự án?"
},
- "failure": {
- "title": "Không cập nhật được giấy phép",
- "description": "Vui lòng kiểm tra xem giấy phép của bạn có hợp lệ không."
- }
+ "delete": {
+ "description": "Thao tác này sẽ xóa vĩnh viễn các dự án đã chọn và chuyển tất cả cơ sở dữ liệu sang dự án mặc định.",
+ "error": "Không xóa được dự án",
+ "success_one": "Đã xóa thành công {{count}} dự án",
+ "success_other": "Đã xóa thành công {{count}} dự án",
+ "title_one": "Xóa {{count}} Dự án?",
+ "title_other": "Xóa {{count}} Dự án?",
+ "warning": "Hành động này không thể hoàn tác. Tất cả dữ liệu dự án bao gồm vấn đề, cấu hình và lịch sử sẽ bị xóa vĩnh viễn."
+ },
+ "selected_one": "{{count}} dự án đã chọn",
+ "selected_other": "{{count}} dự án đã chọn"
},
- "expired": "đã hết hạn",
- "trialing": "đang dùng thử",
- "expires-at": "Hết hạn vào",
- "try-for-free": "Dùng thử miễn phí",
- "enterprise-free-trial": "Dùng thử Doanh nghiệp miễn phí {{days}} ngày",
- "inquire-enterprise-plan": "Yêu cầu gói Doanh nghiệp",
- "upload-license": "Tải lên giấy phép",
- "description": "Bạn có thể tải lên giấy phép Bytebase của mình để mở khóa các tính năng chuyên nghiệp/doanh nghiệp.",
- "plan-compare": "So sánh tính năng giữa các gói khác nhau",
- "max-instance-count": "Số lượng phiên bản tối đa",
- "require-subscription": "Tính năng này yêu cầu đăng ký {{requiredPlan}}, vui lòng mua giấy phép Bytebase để mở khóa."
+ "create-modal": {
+ "project-name": "Dự án Tên",
+ "success-prompt": "Đã tạo thành công dự án {{name}}."
+ },
+ "filter-projects": "Lọc dự án",
+ "table": {
+ "name": "Tên"
+ }
+ },
+ "quick-action": {
+ "add-instance": "Thêm Phiên bản",
+ "create-db": "Tạo cơ sở dữ liệu",
+ "create-project": "Tạo Dự án",
+ "new-db": "Cơ sở dữ liệu mới",
+ "new-project": "Mới Dự án"
+ },
+ "remind": {
+ "release": {
+ "new-version-available-with-tag": "Phiên bản mới {{tag}} có sẵn"
+ }
+ },
+ "resource": {
+ "delete-warning": "\"{{name}}\" sẽ bị xóa. Hành động này không thể hoàn tác.",
+ "delete-warning-retry": "Vui lòng xóa nó khỏi các tài nguyên này rồi thử lại.",
+ "delete-warning-with-resources": "\"{{name}}\" được sử dụng bởi các tài nguyên sau:"
},
"resource-id": {
+ "cannot-be-changed-later": "Nó không thể được thay đổi sau này.",
+ "description": "ID {{resource}} là một mã định danh duy nhất. Bạn không thể thay đổi nó sau khi tạo.",
+ "self": "ID {{resource}}",
"validation": {
+ "duplicated": "ID {{resource}} đã tồn tại. Vui lòng chọn một ID khác.",
"empty": "ID {{resource}} không được để trống",
"overflow": "ID {{resource}} quá dài. Nó phải có ít hơn 64 ký tự.",
- "pattern": "ID {{resource}} có thể có chữ thường, chữ số hoặc dấu gạch nối. \nNó phải bắt đầu với một chữ cái viết thường và kết thúc bằng một chữ cái hoặc số.",
- "duplicated": "ID {{resource}} đã tồn tại. Vui lòng chọn một ID khác."
+ "pattern": "ID {{resource}} có thể có chữ thường, chữ số hoặc dấu gạch nối. \nNó phải bắt đầu với một chữ cái viết thường và kết thúc bằng một chữ cái hoặc số."
+ }
+ },
+ "role": {
+ "custom-roles": {
+ "self": "Vai trò tùy chỉnh"
},
- "self": "ID {{resource}}",
- "cannot-be-changed-later": "Nó không thể được thay đổi sau này.",
- "description": "ID {{resource}} là một mã định danh duy nhất. Bạn không thể thay đổi nó sau khi tạo."
+ "import-from-role": "Nhập từ vai trò",
+ "project-roles": {
+ "self": "Vai trò dự án"
+ },
+ "select-role": "Chọn vai trò",
+ "self": "Vai trò",
+ "setting": {
+ "add": "Thêm vai trò",
+ "description": "Xác định vai trò tùy chỉnh. Bạn có thể áp dụng chúng cho các thành viên dự án và được sử dụng trong phê duyệt tùy chỉnh.",
+ "description-placeholder": "Nhập mô tả vai trò",
+ "edit": "Chỉnh sửa vai trò",
+ "title-placeholder": "Nhập tiêu đề vai trò"
+ },
+ "title": "Tiêu đề",
+ "workspace-roles": {
+ "self": "Vai trò không gian làm việc"
+ }
},
"schema-template": {
"classification": {
@@ -238,655 +409,571 @@
}
},
"settings": {
- "sidebar": {
- "general": "Chung",
- "members": "Thành viên",
- "users-and-groups": "Người dùng & Nhóm",
- "members-and-groups": "Thành viên & Nhóm",
- "sso": "SSO",
- "subscription": "Gói đăng ký",
- "audit-log": "Nhật ký kiểm tra",
- "custom-roles": "Vai trò tùy chỉnh",
- "global-masking": "Che giấu toàn cục",
- "data-classification": "Phân loại dữ liệu",
- "im-integration": "Tích hợp",
- "mcp": "MCP"
- },
- "sensitive-data": {
- "classification": {
- "invalid-json": "Invalid JSON format",
- "missing-classification": "Missing \"classification\" field",
- "empty-classification": "The \"classification\" field is empty",
- "missing-levels": "Missing \"levels\" field",
- "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
- "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
- "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
- "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children)."
- },
- "global-rules": {
- "error": {
- "missing-semantic-type": "Kiểu ngữ nghĩa là bắt buộc",
- "invalid-condition": "Điều kiện không hợp lệ"
- },
- "condition-order": "Thứ tự điều kiện",
- "delete-rule-tip": "Xóa quy tắc này?",
- "re-order": "Sắp xếp lại",
- "description": "Sử dụng quy tắc toàn cục để áp dụng che giấu hàng loạt, ví dụ: tất cả các cột có tên là \"email\" sẽ được che bằng loại ngữ nghĩa cụ thể và áp dụng thuật toán che."
- },
- "semantic-types": {
- "table": {
- "semantic-type": "Loại ngữ nghĩa",
- "icon": "Biểu tượng",
- "description": "Mô tả",
- "masking-algorithm": "Thuật toán che",
- "delete": "Xóa loại ngữ nghĩa này?"
- },
- "select": "Chọn loại ngữ nghĩa",
- "template": {
- "duplicate-warning": "Loại ngữ nghĩa \"{{title}}\" đã tồn tại",
- "description": "Bạn có thể áp dụng các loại ngữ nghĩa tích hợp từ mẫu. Mẫu tích hợp không thể thay đổi."
+ "general": {
+ "workspace": {
+ "access-token-duration": {
+ "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
+ "hours": "Hour(s)",
+ "minutes": "Minute(s)",
+ "self": "Access token duration"
},
- "use-predefined-type": "Sử dụng Loại định nghĩa trước",
- "label": "Các cột có cùng loại ngữ nghĩa sẽ sử dụng cùng một thuật toán che.",
- "add-from-template": "Thêm từ mẫu"
- },
- "algorithms": {
- "full-mask": {
- "self": "Che toàn bộ",
- "substitution": "Thay thế",
- "substitution-label": "Thay thế là chuỗi được sử dụng để thay thế giá trị ban đầu, độ dài tối đa của chuỗi là 16 byte."
- },
- "range-mask": {
- "self": "Che phạm vi",
- "label": "Che phạm vi sẽ thay thế giá trị ban đầu từ chỉ số bắt đầu đến chỉ số kết thúc (không bao gồm kết thúc) bằng chuỗi thay thế. Chỉ số bắt đầu từ 0.",
- "slice-start": "Bắt đầu lát cắt",
- "slice-end": "Kết thúc lát cắt",
- "substitution": "Thay thế"
- },
- "md5-mask": {
- "self": "Che MD5",
- "salt": "Muối",
- "salt-label": "Muối được sử dụng để tạo một hàm băm từ giá trị ban đầu."
- },
- "inner-outer-mask": {
- "self": "Che trong / ngoài",
- "type": "Loại che",
- "inner-label": "Che trong che phần bên trong của một chuỗi. Tiền tố và hậu tố đại diện cho các phần không bị che của dữ liệu.",
- "outer-label": "Che ngoài che các đầu bên trái và bên phải của một chuỗi. Tiền tố và hậu tố đại diện cho các phần bị che của dữ liệu.",
- "inner-mask": "Che trong",
- "outer-mask": "Che ngoài",
- "prefix-length": "Độ dài tiền tố",
- "suffix-length": "Độ dài hậu tố"
- },
- "error": {
- "slice-required": "Yêu cầu lát cắt",
- "slice-invalid-number": "Lát cắt bắt đầu hoặc kết thúc không phải là một số hợp lệ",
- "slice-overlap": "Phạm vi lát cắt không được chồng chéo",
- "substitution-required": "Yêu cầu thay thế",
- "substitution-length": "Thay thế phải nhỏ hơn 16 byte",
- "salt-required": "Yêu cầu muối"
- },
- "edit": "Chỉnh sửa thuật toán",
- "add": "Thêm thuật toán",
- "table": {
- "masking-type": "Loại che"
- }
- }
- },
- "sso": {
- "delete": "xóa SSO này đi",
- "form": {
- "auth-url": "URL ủy quyền",
- "auth-url-placeholder": "ví dụ. https://github.com/login/oauth/authorize",
- "auth-url-description": "Liên kết đến trang đăng nhập OAuth",
- "token-url": "URL mã thông báo",
- "token-url-placeholder": "ví dụ. https://github.com/login/oauth/access_token",
- "token-url-description": "Địa chỉ API để lấy accessToken",
- "user-info-url": "URL thông tin người dùng",
- "user-info-url-placeholder": "ví dụ. https://api.github.com/user",
- "user-info-url-description": "Địa chỉ API để lấy thông tin người dùng bằng accessToken",
- "scopes": "Phạm vi",
- "scopes-placeholder": "ví dụ: user, email, profile",
- "scopes-description": "Danh sách các phạm vi được phân tách bằng dấu cách sẽ được thực hiện khi truy cập URL Xác thực",
- "authentication-style": "Kiểu xác thực",
- "in-parameters": "Trong các tham số",
- "in-parameters-description": "Gửi thông tin xác thực trong nội dung POST (khuyến nghị)",
- "in-header": "Trong Tiêu đề",
- "in-header-description": "Gửi thông tin xác thực bằng HTTP Basic Authorization",
- "security-options": "Tùy chọn bảo mật",
- "skip-tls-verification": "Bỏ qua Xác minh chứng chỉ TLS",
- "skip-tls-warning": "Chỉ bật tính năng này cho mục đích phát triển hoặc thử nghiệm",
- "issuer-url-placeholder": "ví dụ: https://acme.okta.com",
- "issuer-url-description": "URL của đơn vị phát hành OIDC (cấu hình được biết đến rộng rãi sẽ được tự động phát hiện)",
- "scopes-placeholder-oidc": "ví dụ: openid, user, email, profile",
- "openid-scopes-description": "Danh sách các phạm vi OIDC được phân tách bằng dấu cách (cần có openid)",
- "host-placeholder": "ví dụ ldap.example.com",
- "bind-dn": "Liên kết DN",
- "bind-dn-placeholder": "ví dụ. uid=system,ou=Users,dc=example,dc=com",
- "bind-dn-description": "DN của người dùng để ràng buộc như đối với các yêu cầu tìm kiếm",
- "bind-password": "Liên kết mật khẩu",
- "base-dn": "DN cơ sở",
- "base-dn-placeholder": "ví dụ. ou=users,dc=example,dc=com",
- "base-dn-description": "DN cơ sở để tìm kiếm người dùng",
- "user-filter": "Bộ lọc người dùng",
- "user-filter-placeholder": "ví dụ (uid=%s)",
- "user-filter-description": "Bộ lọc để tìm kiếm người dùng (%s sẽ được thay thế bằng tên người dùng)",
- "security-protocol": "Giao thức bảo mật",
- "starttls": "Bắt đầu TLS",
- "starttls-description": "Nâng cấp kết nối lên TLS (khuyến nghị)",
- "ldaps": "LDAPS",
- "ldaps-description": "Sử dụng TLS ngay từ đầu (cổng 636)",
- "none": "Không có",
- "none-description": "Không mã hóa (không khuyến khích sử dụng cho mục đích sản xuất)",
- "identifier-placeholder": "ví dụ: đăng nhập, email",
- "identifier": "Email của người dùng Bytebase",
- "identifier-tips": "Nó phải là một chuỗi duy nhất. Và nếu nó không ở định dạng email, nó sẽ được nối với tên miền.",
- "display-name-placeholder": "ví dụ tên, displayName",
- "display-name": "Tên hiển thị của người dùng Bytebase",
- "phone-placeholder": "ví dụ điện thoại, di động",
- "phone": "Số điện thoại của người dùng Bytebase",
- "groups-placeholder": "ví dụ nhóm",
- "groups": "Nhóm người dùng Bytebase",
- "groups-description": "Được sử dụng để kiểm soát truy cập theo nhóm (chỉ dành cho nhà cung cấp OIDC)",
- "provider-type-readonly-hint": "Loại nhà cung cấp không thể thay đổi sau khi tạo",
- "name": "Tên",
- "name-description": "Tên hiển thị sẽ được hiển thị cho người dùng",
- "domain": "Tên miền",
- "domain-description": "Tên miền của nhà cung cấp danh tính",
- "domain-optional-hint": "Tùy chọn: Sử dụng để nối với mã định danh nếu nó không ở định dạng email",
- "configuration": "Cấu hình",
- "configuration-description": "Cấu hình cài đặt kết nối cho nhà cung cấp danh tính của bạn",
- "user-information-mapping": "Ánh xạ thông tin người dùng",
- "user-information-mapping-description": "Ánh xạ tên trường từ API thông tin người dùng sang người dùng Bytebase.",
- "identity-provider-needed-information": "Tạo ứng dụng SSO của bạn với các thông tin sau.",
- "redirect-url-description": "Nó sẽ được sử dụng để điền vào trường thích hợp trong biểu mẫu ứng dụng của nhà cung cấp danh tính.",
- "redirect-url": "URL chuyển hướng ủy quyền",
- "type": "Loại",
- "use-template": "Sử dụng mẫu",
- "oauth2-description": "Kết nối với các nhà cung cấp OAuth 2.0 như Google, GitHub, GitLab",
- "oidc-description": "Kết nối với các nhà cung cấp OpenID Connect như Microsoft Entra ID (Azure AD), Okta, Auth0",
- "ldap-description": "Kết nối với các nhà cung cấp LDAP như Microsoft Active Directory, OpenLDAP",
- "google-template-description": "Đăng nhập bằng tài khoản Google",
- "github-template-description": "Đăng nhập bằng tài khoản GitHub",
- "gitlab-template-description": "Đăng nhập bằng tài khoản GitLab",
- "microsoft-entra-template-description": "Đăng nhập bằng ID Microsoft Entra",
- "custom-template-description": "Cấu hình nhà cung cấp OAuth 2.0 tùy chỉnh",
- "type-description": "Chọn loại nhà cung cấp danh tính bạn muốn cấu hình",
- "template-description": "Chọn một mẫu được cấu hình sẵn hoặc thiết lập một nhà cung cấp OAuth 2.0 tùy chỉnh",
- "general-setting-description": "Cung cấp thông tin cơ bản về nhà cung cấp danh tính của bạn."
- },
- "description": "Đăng nhập một lần (SSO) là một phương thức xác thực cho phép người dùng xác thực với nhiều ứng dụng và trang web bằng một thông tin đăng nhập duy nhất.",
- "create": "Tạo SSO"
- },
- "im": {
- "add-im-integration": "Thêm tích hợp IM",
- "add-another-im": "Thêm tin nhắn tức thời khác"
- },
- "im-integration": {
- "description": "Tích hợp IM sẽ được sử dụng để đẩy tin nhắn trực tiếp đến người dùng cho các sự kiện vấn đề cụ thể. Hoạt động với webhook của dự án."
- },
- "mcp": {
- "first-prompt": {
- "example": "Liệt kê tất cả các dự án trong phiên bản Bytebase của tôi",
- "title": "Prompt đầu tiên của bạn",
- "description": "Sau khi kết nối, hãy thử hỏi trợ lý AI của bạn:"
- },
- "title": "Tích hợp MCP",
- "description": "Kết nối trợ lý AI với Bytebase bằng Model Context Protocol.",
- "auth": {
- "title": "Yêu cầu xác thực",
- "description": "Xác thực OAuth được yêu cầu khi kết nối lần đầu. Đảm bảo bạn có quyền Bytebase phù hợp."
- },
- "general-config": {
- "title": "Cách 1: Cấu hình JSON"
- },
- "setup": {
- "add-to-config": "Thêm JSON này vào tệp cấu hình MCP client của bạn."
- },
- "quick-start": {
- "title": "Cách 2: Lệnh CLI",
- "description": "Hoặc sử dụng một trong các lệnh CLI sau."
- }
- },
- "general": {
- "workspace": {
- "external-url": {
- "description": "URL bên ngoài mà người dùng truy cập Bytebase, phải bắt đầu bằng http:// hoặc https://.",
- "self": "URL bên ngoài",
- "cannot-edit-flag": "Không thể thay đổi URL bên ngoài vì nó được đặt thông qua tham số dòng lệnh --external-url"
- },
- "id": "ID không gian làm việc",
- "id-description": "ID không gian làm việc duy nhất, chỉ đọc.",
+ "account": "Tài khoản",
"ai-assistant": {
- "enabled-in-saas": "Gemini AI được bật tự động trong chế độ SaaS.",
- "enable-ai-assistant": "Bật Trợ lý AI",
- "description": "Sử dụng AI để hỗ trợ các tác vụ phát triển cơ sở dữ liệu.",
- "provider": {
- "self": "Nhà cung cấp AI",
- "open_ai": "Open AI",
- "azure_open_ai": "Azure Open AI",
- "gemini": "Gemini",
- "claude": "Claude"
- },
"api-key": {
- "self": "Khóa API",
"description": "Cung cấp Khóa API, chỉ đọc. {{viewDoc}}",
"find-my-key": "Tìm khóa của tôi",
- "placeholder": "Khóa API thường bắt đầu bằng sk-*****"
+ "placeholder": "Khóa API thường bắt đầu bằng sk-*****",
+ "self": "Khóa API"
},
+ "description": "Sử dụng AI để hỗ trợ các tác vụ phát triển cơ sở dữ liệu.",
+ "enable-ai-assistant": "Bật Trợ lý AI",
+ "enabled-in-saas": "Gemini AI được bật tự động trong chế độ SaaS.",
"endpoint": {
- "self": "Điểm cuối API",
- "description": "Cung cấp triển khai riêng của Điểm cuối API."
+ "description": "Cung cấp triển khai riêng của Điểm cuối API.",
+ "self": "Điểm cuối API"
},
"model": {
- "self": "Tên mô hình",
- "description": "Cung cấp triển khai riêng của tên mô hình."
+ "description": "Cung cấp triển khai riêng của tên mô hình.",
+ "self": "Tên mô hình"
+ },
+ "provider": {
+ "azure_open_ai": "Azure Open AI",
+ "claude": "Claude",
+ "gemini": "Gemini",
+ "open_ai": "Open AI",
+ "self": "Nhà cung cấp AI"
},
"self": "Trợ lý AI"
},
- "disallow-signup": {
- "enable": "Không cho phép đăng ký tự phục vụ",
- "description": "Người dùng không thể tự đăng ký và chỉ có thể được mời bởi quản trị viên không gian làm việc."
- },
- "password-restriction": {
- "self": "Hạn chế mật khẩu",
- "min-length": "Độ dài tối thiểu cho mật khẩu không được ít hơn {{min}} ký tự",
- "require-number": "Mật khẩu phải chứa ít nhất một số",
- "require-letter": "Mật khẩu phải chứa ít nhất một chữ cái, bất kể chữ hoa hay chữ thường",
- "require-uppercase-letter": "Mật khẩu phải chứa ít nhất một chữ cái viết hoa",
- "require-special-character": "Mật khẩu phải chứa ít nhất một ký tự đặc biệt",
- "require-reset-password-for-first-login": "Yêu cầu người dùng đặt lại mật khẩu của họ sau lần đăng nhập đầu tiên",
- "password-rotation": "Yêu cầu người dùng đặt lại mật khẩu của họ sau mỗi {{day}} ngày"
- },
- "require-2fa": {
- "enable": "Yêu cầu xác thực hai yếu tố cho tất cả người dùng",
- "description": "Những người dùng chưa bật xác thực hai yếu tố cho tài khoản cá nhân của họ sẽ bị buộc phải định cấu hình."
- },
- "disallow-password-signin": {
- "enable": "Không cho phép đăng nhập bằng email & mật khẩu",
- "require-sso-setup": "Phải tạo SSO hoạt động trước, nếu không người dùng sẽ không thể đăng nhập.",
- "description": "Người dùng không thể đăng nhập bằng email & mật khẩu, chỉ cho phép SSO."
- },
- "access-token-duration": {
- "self": "Access token duration",
- "description": "How long access tokens remain valid before requiring refresh. Shorter durations improve security.",
- "minutes": "Minute(s)",
- "hours": "Hour(s)"
- },
- "refresh-token-duration": {
- "self": "Refresh token duration",
- "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
- "hours": "Hour(s)",
- "days": "Day(s)"
+ "allow-admin-data-source": {
+ "description": "Khi được bật, người dùng có thể chọn giữa nguồn dữ liệu quản trị và nguồn dữ liệu chỉ đọc. Khi bị tắt, người dùng buộc phải sử dụng nguồn dữ liệu chỉ đọc nếu được cấu hình, nếu không sẽ quay lại sử dụng nguồn dữ liệu quản trị.",
+ "self": "Cho phép truy vấn nguồn dữ liệu quản trị"
},
- "inactive-session-timeout": {
- "self": "Thời gian chờ phiên không hoạt động",
- "description": "Thời gian hết hạn phiên nếu không phát hiện hoạt động từ người dùng. Người dùng sẽ bị buộc phải đăng xuất khi đạt đến giới hạn.",
- "hours": "Giờ"
+ "announcement": {
+ "self": "Thông báo"
},
- "no-limit": "Không giới hạn khi giá trị <= 0",
"announcement-alert-level": {
"description": "Cấp độ",
"field": {
+ "critical": "Quan trọng",
"info": "Bình thường",
- "warning": "Cảnh báo",
- "critical": "Quan trọng"
+ "warning": "Cảnh báo"
}
},
"announcement-text": {
- "self": "Tiêu đề",
"description": "Để ẩn thông báo, hãy để trống.",
- "placeholder": "Nhập tiêu đề thông báo"
- },
- "extra-link": {
- "self": "Liên kết",
- "placeholder": "Nhập liên kết thông báo"
+ "placeholder": "Nhập tiêu đề thông báo",
+ "self": "Tiêu đề"
},
- "log": "Nhật ký",
"audit-log-stdout": {
- "enable": "Bật ghi nhật ký kiểm toán vào đầu ra chuẩn",
- "description": "Xuất nhật ký kiểm toán JSON có cấu trúc vào đầu ra chuẩn để thu thập bởi các bộ tổng hợp nhật ký (Splunk, ELK, Datadog, Loki). Yêu cầu giấy phép TEAM hoặc ENTERPRISE."
- },
- "enable-debug": {
- "enable": "Bật nhật ký cấp độ gỡ lỗi cho dịch vụ backend"
+ "description": "Xuất nhật ký kiểm toán JSON có cấu trúc vào đầu ra chuẩn để thu thập bởi các bộ tổng hợp nhật ký (Splunk, ELK, Datadog, Loki). Yêu cầu giấy phép TEAM hoặc ENTERPRISE.",
+ "enable": "Bật ghi nhật ký kiểm toán vào đầu ra chuẩn"
},
- "title": "Tên không gian làm việc",
- "logo": "Logo",
- "logo-aspect": "Kích thước logo được đề xuất nên theo tỷ lệ 5:2, ví dụ 100 x 40.",
- "select-logo": "Tải lên một tệp",
- "drag-logo": "hoặc kéo vào đây",
- "logo-upload-tip": "{{extension}} tối đa {{size}} MiB",
"branding": "Thương hiệu",
- "account": "Tài khoản",
- "security": "Bảo mật",
- "announcement": {
- "self": "Thông báo"
- },
- "product-improvement": {
- "self": "Cải thiện Sản phẩm",
- "participate": "Tham gia chương trình cải thiện",
- "description": "Giúp cải thiện Bytebase bằng cách chia sẻ dữ liệu sử dụng ẩn danh"
- },
- "failed-to-update-setting": "Không cập nhật được cài đặt \"{{title}}\"",
- "config-updated": "Cấu hình được cập nhật.",
"config-partly-updated": "Cấu hình đã được cập nhật một phần.",
+ "config-updated": "Cấu hình được cập nhật.",
+ "data-copy": "Bật sao chép dữ liệu",
+ "data-export": "Bật xuất dữ liệu",
"default-landing-page": {
+ "default-view-changed-to-sql-editor": "Chế độ xem mặc định của không gian làm việc đã được thay đổi thành SQL Editor.",
+ "go-to-sql-editor": "Đi tới Trình soạn thảo SQL",
"self": "Trang đích mặc định",
- "workspace": {
- "self": "Không gian làm việc",
- "description": "Sử dụng issue để yêu cầu, xem xét, triển khai và thay đổi phiên bản cơ sở dữ liệu, phù hợp với các nhóm có kiểm soát truy cập và quy trình làm việc CI & CD."
- },
"sql-editor": {
- "self": "Trình soạn thảo SQL",
- "description": "Sử dụng SQL Editor để thực hiện trực tiếp các thay đổi cơ sở dữ liệu, phù hợp cho mục đích sử dụng của một người hoặc môi trường không yêu cầu giám sát."
- },
- "default-view-changed-to-sql-editor": "Chế độ xem mặc định của không gian làm việc đã được thay đổi thành SQL Editor.",
- "go-to-sql-editor": "Đi tới Trình soạn thảo SQL"
- },
- "data-export": "Bật xuất dữ liệu",
- "data-copy": "Bật sao chép dữ liệu",
- "allow-admin-data-source": {
- "self": "Cho phép truy vấn nguồn dữ liệu quản trị",
- "description": "Khi được bật, người dùng có thể chọn giữa nguồn dữ liệu quản trị và nguồn dữ liệu chỉ đọc. Khi bị tắt, người dùng buộc phải sử dụng nguồn dữ liệu chỉ đọc nếu được cấu hình, nếu không sẽ quay lại sử dụng nguồn dữ liệu quản trị."
- },
- "maximum-sql-result": {
- "size": {
- "self": "Kích thước kết quả SQL tối đa",
- "description": "Giới hạn kích thước kết quả truy vấn SQL đầu ra.",
- "default": "Giới hạn mặc định {{limit}} MB"
+ "description": "Sử dụng SQL Editor để thực hiện trực tiếp các thay đổi cơ sở dữ liệu, phù hợp cho mục đích sử dụng của một người hoặc môi trường không yêu cầu giám sát.",
+ "self": "Trình soạn thảo SQL"
},
- "rows": {
- "self": "Số lượng hàng kết quả SQL tối đa",
- "description": "Giới hạn số hàng đầu ra trong kết quả truy vấn SQL.",
- "rows": "Hàng"
+ "workspace": {
+ "description": "Sử dụng issue để yêu cầu, xem xét, triển khai và thay đổi phiên bản cơ sở dữ liệu, phù hợp với các nhóm có kiểm soát truy cập và quy trình làm việc CI & CD.",
+ "self": "Không gian làm việc"
}
},
- "query-data-policy": {
- "timeout": {
- "self": "Thời gian truy vấn tối đa",
- "description": "Thời gian tối đa cho phép để thực hiện một truy vấn."
- },
- "seconds": "Giây"
- },
- "watermark": {
- "enable": "Bật hình mờ",
- "description": "Hiển thị hình mờ trên các trang, bao gồm tên người dùng, ID và email."
+ "disallow-password-signin": {
+ "description": "Người dùng không thể đăng nhập bằng email & mật khẩu, chỉ cho phép SSO.",
+ "enable": "Không cho phép đăng nhập bằng email & mật khẩu",
+ "require-sso-setup": "Phải tạo SSO hoạt động trước, nếu không người dùng sẽ không thể đăng nhập."
},
- "maximum-role-expiration": {
- "self": "Thời gian hết hạn vai trò tối đa",
- "description": "Thời hạn vai trò tối đa là thời hạn tối đa mà một vai trò có thể được cấp cho người dùng, sẽ áp dụng cho tất cả các vai trò trong dự án ngoại trừ chủ sở hữu dự án.",
- "days": "Ngày",
- "never-expires": "Không bao giờ hết hạn"
+ "disallow-signup": {
+ "description": "Người dùng không thể tự đăng ký và chỉ có thể được mời bởi quản trị viên không gian làm việc.",
+ "enable": "Không cho phép đăng ký tự phục vụ"
},
"domain-restriction": {
- "self": "Tên miền không gian làm việc",
"description": "Chỉ định tên miền có thể được sử dụng làm miền email cho các thành viên không gian làm việc.",
"domain-input-placeholder": "Vui lòng nhập tên miền, ví dụ: example.com",
"members-restriction": {
- "self": "Hạn chế thành viên",
- "description": "Hạn chế đăng nhập đối với người dùng có địa chỉ email từ các miền được chỉ định."
- }
- }
- }
- }
- },
- "database": {
- "classification": {
- "description": "Define classification levels to apply consistent masking policies across columns and databases."
- },
- "edit-environment": "Chỉnh sửa Môi trường",
- "engine": "Engine",
- "edit-labels": "Chỉnh sửa nhãn",
- "filter-database": "Lọc cơ sở dữ liệu",
- "selected-n-databases": "Đã chọn {{n}} cơ sở dữ liệu",
- "successfully-transferred-databases": "Chuyển cơ sở dữ liệu thành công",
- "sync-schema-button": "Đồng bộ lược đồ",
- "sync-status": "Trạng thái đồng bộ",
- "sync-status-failed": "Đồng bộ thất bại",
- "transfer-project": "Chuyển dự án",
- "unassign": "Hủy gán"
- },
- "bbkit": {
- "confirm-button": {
- "sure-to-delete": "Bạn có chắc chắn muốn xóa?"
- }
- },
- "role": {
- "workspace-roles": {
- "self": "Vai trò không gian làm việc"
- },
- "project-roles": {
- "self": "Vai trò dự án"
- },
- "custom-roles": {
- "self": "Vai trò tùy chỉnh"
+ "description": "Hạn chế đăng nhập đối với người dùng có địa chỉ email từ các miền được chỉ định.",
+ "self": "Hạn chế thành viên"
+ },
+ "self": "Tên miền không gian làm việc"
+ },
+ "drag-logo": "hoặc kéo vào đây",
+ "enable-debug": {
+ "enable": "Bật nhật ký cấp độ gỡ lỗi cho dịch vụ backend"
+ },
+ "external-url": {
+ "cannot-edit-flag": "Không thể thay đổi URL bên ngoài vì nó được đặt thông qua tham số dòng lệnh --external-url",
+ "description": "URL bên ngoài mà người dùng truy cập Bytebase, phải bắt đầu bằng http:// hoặc https://.",
+ "self": "URL bên ngoài"
+ },
+ "extra-link": {
+ "placeholder": "Nhập liên kết thông báo",
+ "self": "Liên kết"
+ },
+ "failed-to-update-setting": "Không cập nhật được cài đặt \"{{title}}\"",
+ "id": "ID không gian làm việc",
+ "id-description": "ID không gian làm việc duy nhất, chỉ đọc.",
+ "inactive-session-timeout": {
+ "description": "Thời gian hết hạn phiên nếu không phát hiện hoạt động từ người dùng. Người dùng sẽ bị buộc phải đăng xuất khi đạt đến giới hạn.",
+ "hours": "Giờ",
+ "self": "Thời gian chờ phiên không hoạt động"
+ },
+ "log": "Nhật ký",
+ "logo": "Logo",
+ "logo-aspect": "Kích thước logo được đề xuất nên theo tỷ lệ 5:2, ví dụ 100 x 40.",
+ "logo-upload-tip": "{{extension}} tối đa {{size}} MiB",
+ "maximum-role-expiration": {
+ "days": "Ngày",
+ "description": "Thời hạn vai trò tối đa là thời hạn tối đa mà một vai trò có thể được cấp cho người dùng, sẽ áp dụng cho tất cả các vai trò trong dự án ngoại trừ chủ sở hữu dự án.",
+ "never-expires": "Không bao giờ hết hạn",
+ "self": "Thời gian hết hạn vai trò tối đa"
+ },
+ "maximum-sql-result": {
+ "rows": {
+ "description": "Giới hạn số hàng đầu ra trong kết quả truy vấn SQL.",
+ "rows": "Hàng",
+ "self": "Số lượng hàng kết quả SQL tối đa"
+ },
+ "size": {
+ "default": "Giới hạn mặc định {{limit}} MB",
+ "description": "Giới hạn kích thước kết quả truy vấn SQL đầu ra.",
+ "self": "Kích thước kết quả SQL tối đa"
+ }
+ },
+ "no-limit": "Không giới hạn khi giá trị <= 0",
+ "password-restriction": {
+ "min-length": "Độ dài tối thiểu cho mật khẩu không được ít hơn {{min}} ký tự",
+ "password-rotation": "Yêu cầu người dùng đặt lại mật khẩu của họ sau mỗi {{day}} ngày",
+ "require-letter": "Mật khẩu phải chứa ít nhất một chữ cái, bất kể chữ hoa hay chữ thường",
+ "require-number": "Mật khẩu phải chứa ít nhất một số",
+ "require-reset-password-for-first-login": "Yêu cầu người dùng đặt lại mật khẩu của họ sau lần đăng nhập đầu tiên",
+ "require-special-character": "Mật khẩu phải chứa ít nhất một ký tự đặc biệt",
+ "require-uppercase-letter": "Mật khẩu phải chứa ít nhất một chữ cái viết hoa",
+ "self": "Hạn chế mật khẩu"
+ },
+ "product-improvement": {
+ "description": "Giúp cải thiện Bytebase bằng cách chia sẻ dữ liệu sử dụng ẩn danh",
+ "participate": "Tham gia chương trình cải thiện",
+ "self": "Cải thiện Sản phẩm"
+ },
+ "query-data-policy": {
+ "seconds": "Giây",
+ "timeout": {
+ "description": "Thời gian tối đa cho phép để thực hiện một truy vấn.",
+ "self": "Thời gian truy vấn tối đa"
+ }
+ },
+ "refresh-token-duration": {
+ "days": "Day(s)",
+ "description": "How often users must fully reauthenticate. Configuration updates require users to sign in again for changes to take effect.",
+ "hours": "Hour(s)",
+ "self": "Refresh token duration"
+ },
+ "require-2fa": {
+ "description": "Những người dùng chưa bật xác thực hai yếu tố cho tài khoản cá nhân của họ sẽ bị buộc phải định cấu hình.",
+ "enable": "Yêu cầu xác thực hai yếu tố cho tất cả người dùng"
+ },
+ "security": "Bảo mật",
+ "select-logo": "Tải lên một tệp",
+ "title": "Tên không gian làm việc",
+ "watermark": {
+ "description": "Hiển thị hình mờ trên các trang, bao gồm tên người dùng, ID và email.",
+ "enable": "Bật hình mờ"
+ }
+ }
},
- "import-from-role": "Nhập từ vai trò",
- "select-role": "Chọn vai trò",
- "self": "Vai trò",
- "setting": {
- "add": "Thêm vai trò",
- "edit": "Chỉnh sửa vai trò",
- "title-placeholder": "Nhập tiêu đề vai trò",
- "description-placeholder": "Nhập mô tả vai trò",
- "description": "Xác định vai trò tùy chỉnh. Bạn có thể áp dụng chúng cho các thành viên dự án và được sử dụng trong phê duyệt tùy chỉnh."
+ "im": {
+ "add-another-im": "Thêm tin nhắn tức thời khác",
+ "add-im-integration": "Thêm tích hợp IM"
},
- "title": "Tiêu đề"
- },
- "policy": {
- "rollout": {
- "auto": "Triển khai tự động",
- "auto-info": "Nếu tất cả kiểm tra vượt qua, thay đổi sẽ được triển khai và thực hiện tự động.",
- "name": "Chính sách triển khai",
- "tip": "Chính sách được áp dụng cho các vấn đề hồi tố.",
- "info": "Các tác vụ có thể được thực hiện bởi người dùng có quyền 'taskRuns.Create' hoặc các vai trò sau."
+ "im-integration": {
+ "description": "Tích hợp IM sẽ được sử dụng để đẩy tin nhắn trực tiếp đến người dùng cho các sự kiện vấn đề cụ thể. Hoạt động với webhook của dự án."
},
- "environment-tier": {
- "name": "Cấp môi trường",
- "description": "Môi trường sẽ xuất hiện khác với các môi trường khác.",
- "mark-env-as-production": "Đánh dấu là môi trường sản xuất"
- }
- },
- "sql-review": {
- "title": "Đánh giá SQL",
- "configure-policy": "Định cấu hình chính sách"
- },
- "environment": {
- "successfully-updated-environment": "Đã cập nhật thành công môi trường '{{name}}'.",
- "delete": "Xóa môi trường này",
- "delete-description": "Xóa môi trường cũng sẽ xóa nó khỏi các phiên bản và cơ sở dữ liệu liên quan. Bạn không thể hoàn tác hành động này.",
- "create": "Tạo môi trường",
- "reorder": "Sắp xếp lại môi trường"
- },
- "custom-approval": {
- "rule": {
- "first-match-wins": "Các quy tắc được đánh giá theo thứ tự. Quy tắc phù hợp đầu tiên sẽ được áp dụng."
+ "mcp": {
+ "auth": {
+ "description": "Xác thực OAuth được yêu cầu khi kết nối lần đầu. Đảm bảo bạn có quyền Bytebase phù hợp.",
+ "title": "Yêu cầu xác thực"
+ },
+ "description": "Kết nối trợ lý AI với Bytebase bằng Model Context Protocol.",
+ "first-prompt": {
+ "description": "Sau khi kết nối, hãy thử hỏi trợ lý AI của bạn:",
+ "example": "Liệt kê tất cả các dự án trong phiên bản Bytebase của tôi",
+ "title": "Prompt đầu tiên của bạn"
+ },
+ "general-config": {
+ "title": "Cách 1: Cấu hình JSON"
+ },
+ "quick-start": {
+ "description": "Hoặc sử dụng một trong các lệnh CLI sau.",
+ "title": "Cách 2: Lệnh CLI"
+ },
+ "setup": {
+ "add-to-config": "Thêm JSON này vào tệp cấu hình MCP client của bạn."
+ },
+ "title": "Tích hợp MCP"
},
- "approval-flow": {
- "add-rule": "Thêm quy tắc",
- "create-approval-flow": "Tạo quy trình phê duyệt",
- "edit-rule": "Chỉnh sửa quy tắc",
- "fallback-rules": "Quy tắc dự phòng",
- "fallback-rules-hint": "Quy tắc dự phòng chỉ được đánh giá khi không có quy tắc nào khác khớp.",
- "self": "Quy trình phê duyệt",
- "skip": "Không cần phê duyệt",
- "node": {
- "add": "Thêm nút",
- "approver": "Người phê duyệt",
- "delete": "Xóa nút phê duyệt",
- "description": "Chỉ cần một phê duyệt trên nút này khi có nhiều người phê duyệt.",
- "nodes": "Nút phê duyệt",
- "order": "Thứ tự"
+ "members": {
+ "action": {
+ "deactivate-confirm-title": "Bạn có chắc muốn vô hiệu hóa?",
+ "reactivate-confirm-title": "Bạn có chắc muốn kích hoạt lại?"
},
- "template": {
- "presets-title": "Mẫu có sẵn",
- "preset-descriptions": {
- "drop-or-truncate": "Yêu cầu phê duyệt cho các câu lệnh DROP TABLE hoặc TRUNCATE.",
- "fallback": "Quy tắc bắt tất cả khớp với mọi yêu cầu. Đặt ở cuối danh sách quy tắc của bạn.",
- "high-affected-rows": "Yêu cầu phê duyệt khi số hàng bị ảnh hưởng vượt quá 100."
+ "add-member": "Thêm thành viên",
+ "add-user": "Thêm người dùng",
+ "cannot-revoke-self": "You cannot revoke yourself",
+ "entra-sync": {
+ "description": "Đồng bộ người dùng và nhóm từ Entra ID (trước đây là Azure AD) hoặc Okta sang phiên bản Bytebase của bạn.",
+ "endpoint": "Điểm cuối",
+ "endpoint-tip": "Người dùng và nhóm sẽ được đồng bộ đến Bytebase qua điểm cuối này.",
+ "reset-token": "Đặt lại mã thông báo",
+ "reset-token-warning": "Bạn cần cập nhật cấu hình cung cấp ứng dụng Entra.",
+ "secret-token": "Mã thông báo bí mật",
+ "secret-token-tip": "Mã xác thực cho điểm cuối. Vui lòng giữ bí mật.",
+ "self": "Đồng bộ từ SCIM"
+ },
+ "grant-access": "Cấp Quyền truy cập",
+ "groups": {
+ "add-group": "Thêm nhóm",
+ "external-readonly": "External group is read-only.",
+ "form": {
+ "description": "Mô tả",
+ "email": "Email",
+ "email-tips": "Email phải là duy nhất, và không thể thay đổi sau khi tạo.",
+ "role": {
+ "member": "Thành viên nhóm",
+ "owner": "Chủ sở hữu nhóm"
+ },
+ "title": "Tiêu đề"
},
- "presets": {
- "drop-or-truncate": "Xóa/Truncate Bảng",
- "fallback": "Quy tắc dự phòng",
- "high-affected-rows": "Số Hàng Ảnh Hưởng Cao"
- }
- }
+ "n-members": "{{n}} thành viên",
+ "self": "Nhóm",
+ "update-group": "Cập nhật nhóm",
+ "workspace-domain-required": "Vui lòng thiết lập tên miền không gian làm việc trước."
+ },
+ "inactive-users": "Người dùng không hoạt động",
+ "revoke-access": "Thu hồi Quyền truy cập",
+ "revoke-access-alert": "Bạn có chắc muốn thu hồi quyền truy cập?",
+ "revoke-allusers-alert": "Thu hồi \"Tất cả người dùng\" sẽ thu hồi các vai trò liên quan từ tất cả người dùng khác trong không gian làm việc của bạn. Bạn có chắc chắn muốn tiếp tục không?",
+ "revoked": "Đã thu hồi",
+ "search-member": "Tìm kiếm thành viên",
+ "select-account-hint": "Bạn có thể tìm kiếm người dùng và nhóm, hoặc nhập toàn bộ email để chọn tài khoản dịch vụ hoặc danh tính khối lượng công việc.",
+ "select-account_one": "Chọn tài khoản",
+ "select-account_other": "Chọn tài khoản",
+ "select-role_one": "Chọn vai trò",
+ "select-role_other": "Chọn vai trò",
+ "service-account": "Tài khoản dịch vụ",
+ "show-inactive": "Hiển thị tài khoản không hoạt động",
+ "table": {
+ "account": "Tài khoản",
+ "groups": "Nhóm",
+ "roles": "Vai trò"
+ },
+ "update-user": "Cập nhật người dùng",
+ "view-by-members": "Xem theo thành viên",
+ "view-by-roles": "Xem theo vai trò",
+ "workload-identity": "Workload Identity"
},
- "risk": {
- "description": "Đánh giá rủi ro tự động đánh giá các thay đổi cơ sở dữ liệu và phân loại mức độ rủi ro dựa trên loại thao tác được thực hiện.",
- "how-it-works": "Cách hoạt động",
- "how-it-works-description": "Khi bạn tạo một thay đổi cơ sở dữ liệu, Bytebase tự động phân tích các câu lệnh SQL và phân loại mức độ rủi ro (Thấp, Trung bình hoặc Cao) dựa trên các quy tắc được xác định trước.",
- "risk-levels": "Các Mức độ Rủi ro",
- "risk-level-high": "Các thao tác rủi ro cao bao gồm các thay đổi phá hủy như DROP TABLE, TRUNCATE hoặc sửa đổi dữ liệu quy mô lớn.",
- "risk-level-moderate": "Các thao tác rủi ro trung bình bao gồm các thay đổi DDL tiêu chuẩn như thêm cột hoặc chỉ mục.",
- "risk-level-low": "Các thao tác rủi ro thấp bao gồm các truy vấn SELECT và các thay đổi schema nhỏ không có khả năng gây ra sự cố.",
- "integration": "Tích hợp với Quy trình Phê duyệt",
- "integration-description": "Các mức độ rủi ro tích hợp với hệ thống Phê duyệt Tùy chỉnh. Bạn có thể cấu hình các quy trình phê duyệt yêu cầu các cấp độ xem xét khác nhau dựa trên mức độ rủi ro được đánh giá của một thay đổi."
+ "profile": {
+ "password": "Mật khẩu",
+ "password-confirm": "Xác nhận mật khẩu",
+ "password-confirm-placeholder": "Xác nhận mật khẩu mới",
+ "password-hint": "Mật khẩu phải theo quy định hạn chế",
+ "password-mismatch": "Mật khẩu mới không khớp",
+ "phone": "Điện thoại",
+ "phone-tips": "Nhớ bao gồm mã quốc gia +1xxxxxx"
},
- "risk-rule": {
- "risk": {
- "namespace": {
- "change_database": "Thay đổi cơ sở dữ liệu",
- "create_database": "Tạo cơ sở dữ liệu",
- "data_export": "Xuất dữ liệu",
- "request-role": "Yêu cầu vai trò",
- "request-access": "Yêu cầu quyền truy cập Just-In-Time"
+ "sensitive-data": {
+ "algorithms": {
+ "add": "Thêm thuật toán",
+ "edit": "Chỉnh sửa thuật toán",
+ "error": {
+ "salt-required": "Yêu cầu muối",
+ "slice-invalid-number": "Lát cắt bắt đầu hoặc kết thúc không phải là một số hợp lệ",
+ "slice-overlap": "Phạm vi lát cắt không được chồng chéo",
+ "slice-required": "Yêu cầu lát cắt",
+ "substitution-length": "Thay thế phải nhỏ hơn 16 byte",
+ "substitution-required": "Yêu cầu thay thế"
},
- "risk-level": {
- "default": "Mặc định",
- "high": "Cao",
- "moderate": "Trung bình",
- "low": "Thấp"
- }
- }
- }
- },
- "identity-provider": {
- "test-connection-success": "Kiểm tra kết nối thành công",
- "userinfo-description": "Thông tin người dùng đã khớp.",
- "claims-description": "Các yêu cầu sau đây đã được nhà cung cấp danh tính trả về. Thông tin này có thể giúp bạn cấu hình ánh xạ trường.",
- "no-claims": "Nhà cung cấp danh tính không trả lại bất kỳ khiếu nại nào.",
- "test-connection": "Kiểm tra kết nối",
- "delete-warning": "Bạn có chắc chắn muốn xóa nhà cung cấp danh tính này không? Người dùng đã đăng ký qua SSO này sẽ không thể đăng nhập bằng SSO này nữa. Nếu đăng nhập bằng mật khẩu bị vô hiệu hóa trong cài đặt không gian làm việc của bạn, những người dùng này có thể bị khóa hoàn toàn.",
- "identity-provider-update-failed": "Không cập nhật được nhà cung cấp danh tính",
- "identity-provider-permission-denied": "Quyền bị từ chối",
- "identity-provider-deleted": "Nhà cung cấp danh tính đã xóa thành công",
- "identity-provider-delete-failed": "Không xóa được nhà cung cấp danh tính",
- "identity-provider-created": "Nhà cung cấp danh tính đã được tạo thành công",
- "identity-provider-create-failed": "Không tạo được nhà cung cấp danh tính"
- },
- "error-page": {
- "not-found": "Không tìm thấy"
- },
- "instance": {
- "successfully-archived-instance": "Đã lưu trữ 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}}'.",
- "archive-instance-instance-name": "Lưu trữ phiên bản '{{0}}'?",
- "archived-instances-will-not-be-displayed": "Các phiên bản đã lưu trữ sẽ không được hiển thị.",
- "force-archive-description": "Buộc lưu trữ. Tất cả cơ sở dữ liệu sẽ bị hủy gán.",
- "syncing": "Đang đồng bộ hóa ...",
- "sync": {
- "self": "Đồng bộ phiên bản",
- "sync-all-tip": "Đồng bộ cơ sở dữ liệu không đồng bộ và có thể mất vài giây đến vài phút",
- "sync-all": "Đồng bộ tất cả cơ sở dữ liệu",
- "sync-new": "Chỉ đồng bộ cơ sở dữ liệu mới"
- },
- "selected-n-instances_one": "{{count}} phiên bản đã chọn",
- "selected-n-instances_other": "{{count}} phiên bản đã chọn",
- "advanced-search": {
- "scope": {
- "host": {
- "title": "Host",
- "description": "Lọc theo máy chủ lưu trữ. Vui lòng nhập giá trị rồi nhấn Enter."
+ "full-mask": {
+ "self": "Che toàn bộ",
+ "substitution": "Thay thế",
+ "substitution-label": "Thay thế là chuỗi được sử dụng để thay thế giá trị ban đầu, độ dài tối đa của chuỗi là 16 byte."
},
- "port": {
- "title": "Port",
- "description": "Lọc theo cổng phiên bản. Vui lòng nhập giá trị rồi nhấn Enter."
+ "inner-outer-mask": {
+ "inner-label": "Che trong che phần bên trong của một chuỗi. Tiền tố và hậu tố đại diện cho các phần không bị che của dữ liệu.",
+ "inner-mask": "Che trong",
+ "outer-label": "Che ngoài che các đầu bên trái và bên phải của một chuỗi. Tiền tố và hậu tố đại diện cho các phần bị che của dữ liệu.",
+ "outer-mask": "Che ngoài",
+ "prefix-length": "Độ dài tiền tố",
+ "self": "Che trong / ngoài",
+ "suffix-length": "Độ dài hậu tố",
+ "type": "Loại che"
+ },
+ "md5-mask": {
+ "salt": "Muối",
+ "salt-label": "Muối được sử dụng để tạo một hàm băm từ giá trị ban đầu.",
+ "self": "Che MD5"
+ },
+ "range-mask": {
+ "label": "Che phạm vi sẽ thay thế giá trị ban đầu từ chỉ số bắt đầu đến chỉ số kết thúc (không bao gồm kết thúc) bằng chuỗi thay thế. Chỉ số bắt đầu từ 0.",
+ "self": "Che phạm vi",
+ "slice-end": "Kết thúc lát cắt",
+ "slice-start": "Bắt đầu lát cắt",
+ "substitution": "Thay thế"
+ },
+ "table": {
+ "masking-type": "Loại che"
}
+ },
+ "classification": {
+ "empty-classification": "The \"classification\" field is empty",
+ "guide-classification": "\"classification\" maps each category by ID. Leaf categories must reference a level number; parent categories omit the level.",
+ "guide-hierarchy": "IDs use a dash-separated hierarchy (e.g., \"1\" is a parent, \"1-1\" and \"1-2\" are its children).",
+ "guide-intro": "Edit the classification JSON below. An example template is provided when no classification is configured.",
+ "guide-levels": "\"levels\" defines sensitivity tiers with consecutive numbers starting from 1 (e.g., 1 = Public, 2 = Internal, 3 = Confidential).",
+ "invalid-json": "Invalid JSON format",
+ "missing-classification": "Missing \"classification\" field",
+ "missing-levels": "Missing \"levels\" field"
+ },
+ "global-rules": {
+ "condition-order": "Thứ tự điều kiện",
+ "delete-rule-tip": "Xóa quy tắc này?",
+ "description": "Sử dụng quy tắc toàn cục để áp dụng che giấu hàng loạt, ví dụ: tất cả các cột có tên là \"email\" sẽ được che bằng loại ngữ nghĩa cụ thể và áp dụng thuật toán che.",
+ "error": {
+ "invalid-condition": "Điều kiện không hợp lệ",
+ "missing-semantic-type": "Kiểu ngữ nghĩa là bắt buộc"
+ },
+ "re-order": "Sắp xếp lại"
+ },
+ "semantic-types": {
+ "add-from-template": "Thêm từ mẫu",
+ "label": "Các cột có cùng loại ngữ nghĩa sẽ sử dụng cùng một thuật toán che.",
+ "select": "Chọn loại ngữ nghĩa",
+ "table": {
+ "delete": "Xóa loại ngữ nghĩa này?",
+ "description": "Mô tả",
+ "icon": "Biểu tượng",
+ "masking-algorithm": "Thuật toán che",
+ "semantic-type": "Loại ngữ nghĩa"
+ },
+ "template": {
+ "description": "Bạn có thể áp dụng các loại ngữ nghĩa tích hợp từ mẫu. Mẫu tích hợp không thể thay đổi.",
+ "duplicate-warning": "Loại ngữ nghĩa \"{{title}}\" đã tồn tại"
+ },
+ "use-predefined-type": "Sử dụng Loại định nghĩa trước"
}
},
- "filter-instance-name": "Lọc tên phiên bản"
- },
- "db": {
- "start-to-sync-schema": "Bắt đầu đồng bộ hóa lược đồ",
- "character-set": "Bộ ký tự",
- "collation": "Đối chiếu",
- "encoding": "Mã hóa",
- "failed-to-sync-schema": "Đồng bộ hóa lược đồ thất bại",
- "successfully-synced-schema": "Đồng bộ hóa lược đồ thành công"
- },
- "quick-action": {
- "add-instance": "Thêm Phiên bản",
- "create-project": "Tạo Dự án",
- "new-project": "Mới Dự án",
- "create-db": "Tạo cơ sở dữ liệu",
- "new-db": "Cơ sở dữ liệu mới"
- },
- "landing": {
- "quick-link": {
- "visit-prjects": "Truy cập Dự án",
- "visit-issues": "Truy cập Vấn đề",
- "manage": "Quản lý liên kết nhanh",
- "self": "Liên kết nhanh"
+ "sidebar": {
+ "audit-log": "Nhật ký kiểm tra",
+ "custom-roles": "Vai trò tùy chỉnh",
+ "data-classification": "Phân loại dữ liệu",
+ "general": "Chung",
+ "global-masking": "Che giấu toàn cục",
+ "im-integration": "Tích hợp",
+ "mcp": "MCP",
+ "members": "Thành viên",
+ "members-and-groups": "Thành viên & Nhóm",
+ "sso": "SSO",
+ "subscription": "Gói đăng ký",
+ "users-and-groups": "Người dùng & Nhóm"
},
- "last-visit": "Lần truy cập cuối",
- "changelog-for-version": "Nhật ký thay đổi cho phiên bản {{version}}"
- },
- "remind": {
- "release": {
- "new-version-available-with-tag": "Phiên bản mới {{tag}} có sẵn"
+ "sso": {
+ "create": "Tạo SSO",
+ "delete": "xóa SSO này đi",
+ "description": "Đăng nhập một lần (SSO) là một phương thức xác thực cho phép người dùng xác thực với nhiều ứng dụng và trang web bằng một thông tin đăng nhập duy nhất.",
+ "form": {
+ "auth-url": "URL ủy quyền",
+ "auth-url-description": "Liên kết đến trang đăng nhập OAuth",
+ "auth-url-placeholder": "ví dụ. https://github.com/login/oauth/authorize",
+ "authentication-style": "Kiểu xác thực",
+ "base-dn": "DN cơ sở",
+ "base-dn-description": "DN cơ sở để tìm kiếm người dùng",
+ "base-dn-placeholder": "ví dụ. ou=users,dc=example,dc=com",
+ "bind-dn": "Liên kết DN",
+ "bind-dn-description": "DN của người dùng để ràng buộc như đối với các yêu cầu tìm kiếm",
+ "bind-dn-placeholder": "ví dụ. uid=system,ou=Users,dc=example,dc=com",
+ "bind-password": "Liên kết mật khẩu",
+ "configuration": "Cấu hình",
+ "configuration-description": "Cấu hình cài đặt kết nối cho nhà cung cấp danh tính của bạn",
+ "custom-template-description": "Cấu hình nhà cung cấp OAuth 2.0 tùy chỉnh",
+ "display-name": "Tên hiển thị của người dùng Bytebase",
+ "display-name-placeholder": "ví dụ tên, displayName",
+ "domain": "Tên miền",
+ "domain-description": "Tên miền của nhà cung cấp danh tính",
+ "domain-optional-hint": "Tùy chọn: Sử dụng để nối với mã định danh nếu nó không ở định dạng email",
+ "general-setting-description": "Cung cấp thông tin cơ bản về nhà cung cấp danh tính của bạn.",
+ "github-template-description": "Đăng nhập bằng tài khoản GitHub",
+ "gitlab-template-description": "Đăng nhập bằng tài khoản GitLab",
+ "google-template-description": "Đăng nhập bằng tài khoản Google",
+ "groups": "Nhóm người dùng Bytebase",
+ "groups-description": "Được sử dụng để kiểm soát truy cập theo nhóm (chỉ dành cho nhà cung cấp OIDC)",
+ "groups-placeholder": "ví dụ nhóm",
+ "host-placeholder": "ví dụ ldap.example.com",
+ "identifier": "Email của người dùng Bytebase",
+ "identifier-placeholder": "ví dụ: đăng nhập, email",
+ "identifier-tips": "Nó phải là một chuỗi duy nhất. Và nếu nó không ở định dạng email, nó sẽ được nối với tên miền.",
+ "identity-provider-needed-information": "Tạo ứng dụng SSO của bạn với các thông tin sau.",
+ "in-header": "Trong Tiêu đề",
+ "in-header-description": "Gửi thông tin xác thực bằng HTTP Basic Authorization",
+ "in-parameters": "Trong các tham số",
+ "in-parameters-description": "Gửi thông tin xác thực trong nội dung POST (khuyến nghị)",
+ "issuer-url-description": "URL của đơn vị phát hành OIDC (cấu hình được biết đến rộng rãi sẽ được tự động phát hiện)",
+ "issuer-url-placeholder": "ví dụ: https://acme.okta.com",
+ "ldap-description": "Kết nối với các nhà cung cấp LDAP như Microsoft Active Directory, OpenLDAP",
+ "ldaps": "LDAPS",
+ "ldaps-description": "Sử dụng TLS ngay từ đầu (cổng 636)",
+ "microsoft-entra-template-description": "Đăng nhập bằng ID Microsoft Entra",
+ "name": "Tên",
+ "name-description": "Tên hiển thị sẽ được hiển thị cho người dùng",
+ "none": "Không có",
+ "none-description": "Không mã hóa (không khuyến khích sử dụng cho mục đích sản xuất)",
+ "oauth2-description": "Kết nối với các nhà cung cấp OAuth 2.0 như Google, GitHub, GitLab",
+ "oidc-description": "Kết nối với các nhà cung cấp OpenID Connect như Microsoft Entra ID (Azure AD), Okta, Auth0",
+ "openid-scopes-description": "Danh sách các phạm vi OIDC được phân tách bằng dấu cách (cần có openid)",
+ "phone": "Số điện thoại của người dùng Bytebase",
+ "phone-placeholder": "ví dụ điện thoại, di động",
+ "provider-type-readonly-hint": "Loại nhà cung cấp không thể thay đổi sau khi tạo",
+ "redirect-url": "URL chuyển hướng ủy quyền",
+ "redirect-url-description": "Nó sẽ được sử dụng để điền vào trường thích hợp trong biểu mẫu ứng dụng của nhà cung cấp danh tính.",
+ "scopes": "Phạm vi",
+ "scopes-description": "Danh sách các phạm vi được phân tách bằng dấu cách sẽ được thực hiện khi truy cập URL Xác thực",
+ "scopes-placeholder": "ví dụ: user, email, profile",
+ "scopes-placeholder-oidc": "ví dụ: openid, user, email, profile",
+ "security-options": "Tùy chọn bảo mật",
+ "security-protocol": "Giao thức bảo mật",
+ "skip-tls-verification": "Bỏ qua Xác minh chứng chỉ TLS",
+ "skip-tls-warning": "Chỉ bật tính năng này cho mục đích phát triển hoặc thử nghiệm",
+ "starttls": "Bắt đầu TLS",
+ "starttls-description": "Nâng cấp kết nối lên TLS (khuyến nghị)",
+ "template-description": "Chọn một mẫu được cấu hình sẵn hoặc thiết lập một nhà cung cấp OAuth 2.0 tùy chỉnh",
+ "token-url": "URL mã thông báo",
+ "token-url-description": "Địa chỉ API để lấy accessToken",
+ "token-url-placeholder": "ví dụ. https://github.com/login/oauth/access_token",
+ "type": "Loại",
+ "type-description": "Chọn loại nhà cung cấp danh tính bạn muốn cấu hình",
+ "use-template": "Sử dụng mẫu",
+ "user-filter": "Bộ lọc người dùng",
+ "user-filter-description": "Bộ lọc để tìm kiếm người dùng (%s sẽ được thay thế bằng tên người dùng)",
+ "user-filter-placeholder": "ví dụ (uid=%s)",
+ "user-info-url": "URL thông tin người dùng",
+ "user-info-url-description": "Địa chỉ API để lấy thông tin người dùng bằng accessToken",
+ "user-info-url-placeholder": "ví dụ. https://api.github.com/user",
+ "user-information-mapping": "Ánh xạ thông tin người dùng",
+ "user-information-mapping-description": "Ánh xạ tên trường từ API thông tin người dùng sang người dùng Bytebase."
+ }
}
},
- "banner": {
- "external-url": "Bytebase chưa được cấu hình --external-url"
+ "sql-editor": {
+ "self": "Trình soạn thảo SQL"
},
- "project": {
- "create-modal": {
- "success-prompt": "Đã tạo thành công dự án {{name}}.",
- "project-name": "Dự án Tên"
+ "sql-review": {
+ "configure-policy": "Định cấu hình chính sách",
+ "title": "Đánh giá SQL"
+ },
+ "subscription": {
+ "contact-us": "Liên hệ chúng tôi",
+ "current": "Gói hiện tại",
+ "description": "Bạn có thể tải lên giấy phép Bytebase của mình để mở khóa các tính năng chuyên nghiệp/doanh nghiệp.",
+ "enterprise-free-trial": "Dùng thử Doanh nghiệp miễn phí {{days}} ngày",
+ "expired": "đã hết hạn",
+ "expires-at": "Hết hạn vào",
+ "inquire-enterprise-plan": "Yêu cầu gói Doanh nghiệp",
+ "instance-assignment": {
+ "assign-license": "Gán giấy phép",
+ "license": "Giấy phép",
+ "missing-license-attention": "Bạn cần gán giấy phép cho phiên bản để bật tính năng này.",
+ "used-and-total-license": "Giấy phép phiên bản đã gán / Tổng số",
+ "used-and-total-user": "Giới hạn người dùng đang hoạt động / Tổng số"
},
- "batch": {
- "archive": {
- "success_one": "Đã lưu trữ thành công {{count}} dự án",
- "success_other": "Đã lưu trữ thành công {{count}} dự án",
- "error": "Không lưu trữ được dự án",
- "title_one": "Lưu trữ {{count}} Dự án?",
- "title_other": "Lưu trữ {{count}} Dự án?",
- "description": "Thao tác này sẽ lưu trữ các dự án đã chọn. Bạn có thể khôi phục chúng sau nếu cần."
+ "max-instance-count": "Số lượng phiên bản tối đa",
+ "plan": {
+ "enterprise": {
+ "desc": "Các tính năng bảo mật, tuân thủ và quyền bổ sung. Hỗ trợ chuyên dụng với SLA.",
+ "label": "",
+ "title": "Doanh nghiệp"
},
- "delete": {
- "success_one": "Đã xóa thành công {{count}} dự án",
- "success_other": "Đã xóa thành công {{count}} dự án",
- "error": "Không xóa được dự án",
- "title_one": "Xóa {{count}} Dự án?",
- "title_other": "Xóa {{count}} Dự án?",
- "description": "Thao tác này sẽ xóa vĩnh viễn các dự án đã chọn và chuyển tất cả cơ sở dữ liệu sang dự án mặc định.",
- "warning": "Hành động này không thể hoàn tác. Tất cả dữ liệu dự án bao gồm vấn đề, cấu hình và lịch sử sẽ bị xóa vĩnh viễn."
+ "free": {
+ "desc": "Các yếu tố cần thiết cho nhóm để quản lý vòng đời phát triển cơ sở dữ liệu.",
+ "label": "",
+ "title": "Cộng đồng"
},
- "selected_one": "{{count}} dự án đã chọn",
- "selected_other": "{{count}} dự án đã chọn"
+ "team": {
+ "desc": "Nhiều chính sách hơn để chuẩn hóa và tạo điều kiện cộng tác giữa các nhóm.",
+ "label": "",
+ "title": "Pro"
+ },
+ "title": "Cộng đồng",
+ "try": "Bắt đầu dùng thử miễn phí"
},
- "filter-projects": "Lọc dự án",
- "table": {
- "name": "Tên"
+ "plan-compare": "So sánh tính năng giữa các gói khác nhau",
+ "purchase": {
+ "accept-terms-prefix": "Tôi chấp nhận",
+ "and": "và",
+ "billing-period": "Kỳ thanh toán",
+ "cancel": "Hủy đăng ký",
+ "cancel-confirm": "Bạn có chắc chắn muốn hủy đăng ký không?",
+ "cancel-pending": "Đăng ký đã bị hủy và sẽ kết thúc vào {{date}}.",
+ "canceled": "Đã hủy đăng ký",
+ "custom": "Tùy chỉnh",
+ "discount": {
+ "month-off": "{{value}} tháng miễn phí",
+ "percentage-off": "tháng đầu giảm {{value}}%",
+ "price-off": "giảm ${{value}}"
+ },
+ "enterprise-description": "Scale your business securely while staying compliant.",
+ "free-description": "Designed for solo devs, side-projects, and experiments.",
+ "manage-invoices": "Quản lý hóa đơn",
+ "payment-info": "Thông tin thanh toán",
+ "pending-description": "Vui lòng đợi trong khi chúng tôi xác nhận thanh toán. Thường chỉ mất vài giây.",
+ "pending-title": "Đang hoàn tất giao dịch...",
+ "per-user-per-month": "/ người dùng / tháng",
+ "privacy-policy": "Chính sách bảo mật",
+ "pro-description": "Built for teams creating production-ready applications.",
+ "seats": "Người dùng",
+ "see-comparison": "Xem so sánh tính năng chi tiết",
+ "subscribe": "Đăng ký ngay",
+ "terms-of-service": "Điều khoản dịch vụ",
+ "total-price": "Tổng giá",
+ "update": "Cập nhật đăng ký"
+ },
+ "request-n-days-trial": "Yêu cầu dùng thử {{days}} ngày (không cần thẻ tín dụng)",
+ "require-subscription": "Tính năng này yêu cầu đăng ký {{requiredPlan}}, vui lòng mua giấy phép Bytebase để mở khóa.",
+ "required-plan-with-trial": "Tính năng này yêu cầu {{requiredPlan}}. {{startTrial}}",
+ "trial-for-days": "Bạn có thể bắt đầu dùng thử miễn phí trong {{days}} ngày - không cần thẻ tín dụng.",
+ "trialing": "đang dùng thử",
+ "try-for-free": "Dùng thử miễn phí",
+ "update": {
+ "failure": {
+ "description": "Vui lòng kiểm tra xem giấy phép của bạn có hợp lệ không.",
+ "title": "Không cập nhật được giấy phép"
+ },
+ "success": {
+ "description": "Các tính năng cao cấp trong gói đăng ký đã được mở khóa.",
+ "title": "Đã cập nhật thành công giấy phép"
+ }
+ },
+ "upload-license": "Tải lên giấy phép",
+ "usage": {
+ "instance-count": {
+ "runoutof": "Bạn đã hết hạn ngạch {{total}} phiên bản của mình.",
+ "title": "Giới hạn số lượng phiên bản"
+ },
+ "user-count": {
+ "remaining": "Tổng hạn ngạch người dùng của bạn là {{total}}, chỉ còn lại {{count}} người dùng.",
+ "runoutof": "Bạn đã hết hạn ngạch {{total}} người dùng của mình.",
+ "title": "Giới hạn số lượng người dùng",
+ "upgrade": "Nâng cấp để có thêm hạn ngạch người dùng."
+ }
}
},
- "resource": {
- "delete-warning-with-resources": "\"{{name}}\" được sử dụng bởi các tài nguyên sau:",
- "delete-warning-retry": "Vui lòng xóa nó khỏi các tài nguyên này rồi thử lại.",
- "delete-warning": "\"{{name}}\" sẽ bị xóa. Hành động này không thể hoàn tác."
- },
- "sql-editor": {
- "self": "Trình soạn thảo SQL"
- },
- "create-db": {
- "cluster": "Cụm",
- "database-owner-name": "Tên chủ sở hữu cơ sở dữ liệu",
- "new-collection-name": "Tên bộ sưu tập mới",
- "new-database-name": "Tên cơ sở dữ liệu mới",
- "reserved-db-error": "{{databaseName}} là một tên dành riêng"
- },
- "issue": {
- "labels": "Nhãn vấn đề"
+ "two-factor": {
+ "enabled": "Đã bật 2FA"
}
}
diff --git a/frontend/src/react/locales/zh-CN.json b/frontend/src/react/locales/zh-CN.json
index 6ee2e8d824..0c55b6e514 100644
--- a/frontend/src/react/locales/zh-CN.json
+++ b/frontend/src/react/locales/zh-CN.json
@@ -1,236 +1,407 @@
{
+ "audit-log": {
+ "advanced-search": {
+ "scope": {
+ "actor": {
+ "description": "按审计日志操作者搜索",
+ "title": "操作者"
+ },
+ "level": {
+ "description": "按审计日志事件等级搜索",
+ "title": "事件等级"
+ },
+ "method": {
+ "description": "按审计日志操作搜索",
+ "title": "操作"
+ }
+ }
+ },
+ "export-tooltip": "必须选择 30 天范围内的开始和结束日期",
+ "table": {
+ "actor": "操作者",
+ "created-ts": "时间",
+ "latency": "延迟",
+ "level": "事件等级",
+ "method": "操作",
+ "request": "请求信息",
+ "response": "响应信息",
+ "service-data": "服务数据",
+ "status": "状态"
+ }
+ },
+ "banner": {
+ "external-url": "Bytebase 还没有配置 --external-url"
+ },
+ "bbkit": {
+ "confirm-button": {
+ "sure-to-delete": "确定要删除吗?"
+ }
+ },
+ "cel": {
+ "condition": {
+ "add": "添加条件",
+ "add-condition-in-group-placeholder": "点击{{plus}}添加条件",
+ "add-group": "添加条件组",
+ "add-raw-expression": "添加 Raw 表达式",
+ "add-root-condition-placeholder": "点击「添加条件」或「添加条件组」以添加条件",
+ "description-tips": "条件是通过表达式配置的规则。例如:条件「环境 为 prod」将会匹配在「prod」环境中执行的工单。",
+ "group": {
+ "and": {
+ "description": "以下全部为真…"
+ },
+ "or": {
+ "description": "以下任一为真…"
+ }
+ },
+ "input-value": "输入值",
+ "input-value-press-enter": "输入值,按回车确认",
+ "select-value": "选择值",
+ "self": "条件"
+ }
+ },
"common": {
- "filter-by-name": "按名称过滤",
- "loading": "加载中",
- "no-data": "无数据",
+ "add": "添加",
+ "add-permissions": "添加权限",
+ "added": "已创建",
+ "address": "地址",
"all": "全部",
- "edit": "编辑",
- "updated": "已更新",
- "learn-more": "了解更多",
- "revert": "恢复",
+ "archive": "归档",
+ "archived": "已归档",
+ "back": "返回",
"cancel": "取消",
- "save": "保存",
- "confirm": "确认",
+ "cannot-undo-this-action": "这个操作无法撤销",
"clear": "清除",
- "add": "添加",
- "warning": "警告",
- "environment-name": "环境名",
- "environment": "环境",
+ "close": "关闭",
+ "configure": "配置",
+ "configure-now": "现在配置",
+ "confirm": "确认",
"confirm-and-update": "确认并更新",
- "cannot-undo-this-action": "这个操作无法撤销",
- "delete": "删除",
+ "copied": "已拷贝",
+ "copy": "拷贝",
"create": "创建",
- "leave-without-saving": "不保存变动?",
+ "created": "已创建",
+ "delete": "删除",
+ "delete-resource": "删除{{type}}",
"deleted": "已删除",
- "reorder": "排序",
- "close": "关闭",
- "general": "通用",
- "type": "类型",
+ "description": "描述",
"discard-changes": "取消修改",
- "update": "更新",
- "copied": "已拷贝",
- "copy": "拷贝",
- "back": "返回",
- "next": "下一步",
+ "edit": "编辑",
+ "email": "邮箱",
+ "environment": "环境",
+ "environment-name": "环境名",
+ "export": "导出",
+ "failed": "失败",
+ "file-selector": {
+ "size-limit": "文件大小需小于 {{size}} MiB",
+ "type-limit": "仅支持 {{extension}} 类型的文件"
+ },
+ "filter-by-name": "按名称过滤",
+ "from": "从",
+ "general": "通用",
+ "groups": "分组",
"id": "ID",
- "name": "名称",
- "sensitive-placeholder": "敏感数据 - 仅写入",
- "unassigned": "未分配",
- "archive": "归档",
- "restore": "恢复",
- "delete-resource": "删除{{type}}",
+ "instance": "实例",
+ "is-required": "is required",
"labels": "标签",
- "state": "状态",
- "address": "地址",
- "rows-per-page": "每页行数",
+ "learn-more": "了解更多",
+ "leave-without-saving": "不保存变动?",
"load-more": "加载更多",
- "configure-now": "现在配置",
- "restored": "已恢复",
- "archived": "已归档",
- "select-all": "全选",
- "total-n-items": "共 {{n}} 项",
- "search": "搜索",
+ "loading": "加载中",
+ "members_one": "成员",
+ "members_other": "成员",
+ "missing-required-permission": "缺少必需的权限 {{permissions}}",
"n-items-selected": "已选 {{n}} 项",
- "permissions": "权限",
- "added": "已创建",
- "description": "描述",
+ "name": "名称",
+ "next": "下一步",
+ "no-data": "无数据",
+ "ok": "OK",
"operations": "操作",
- "title": "标题",
- "missing-required-permission": "缺少必需的权限 {{permissions}}",
+ "permissions": "权限",
+ "project": "项目",
+ "reorder": "排序",
"required-permission": "所需权限",
"required-workspace-permission": "初始化工作空间 UX 需要以下权限",
- "add-permissions": "添加权限",
+ "restore": "恢复",
+ "restored": "已恢复",
+ "revert": "恢复",
+ "rows-per-page": "每页行数",
+ "save": "保存",
+ "search": "搜索",
+ "select": "请选择",
+ "select-all": "全选",
+ "sensitive-placeholder": "敏感数据 - 仅写入",
+ "state": "状态",
"system": "系统",
- "created": "已创建",
- "upload": "上传",
+ "title": "标题",
+ "to": "到",
+ "total-n-items": "共 {{n}} 项",
+ "type": "类型",
+ "unassigned": "未分配",
"unlimited": "无限制",
- "file-selector": {
- "type-limit": "仅支持 {{extension}} 类型的文件",
- "size-limit": "文件大小需小于 {{size}} MiB"
- },
- "ok": "OK",
- "failed": "失败",
- "instance": "实例",
- "project": "项目",
- "select": "请选择",
- "export": "导出",
+ "update": "更新",
+ "updated": "已更新",
+ "upload": "上传",
+ "users": "用户",
"view": "查看",
"view-details": "查看详情",
- "from": "从",
- "to": "到"
+ "warning": "警告",
+ "you": "您",
+ "copy-failed": "Copy failed"
},
- "audit-log": {
- "export-tooltip": "必须选择 30 天范围内的开始和结束日期",
- "table": {
- "created-ts": "时间",
- "actor": "操作者",
- "level": "事件等级",
- "method": "操作",
- "request": "请求信息",
- "response": "响应信息",
- "status": "状态",
- "latency": "延迟",
- "service-data": "服务数据"
- },
- "advanced-search": {
- "scope": {
- "actor": {
- "title": "操作者",
- "description": "按审计日志操作者搜索"
+ "create-db": {
+ "cluster": "集群",
+ "database-owner-name": "数据库所有者",
+ "new-collection-name": "新集合名称",
+ "new-database-name": "新数据库名称",
+ "reserved-db-error": "{{databaseName}} 是一个预留名称"
+ },
+ "custom-approval": {
+ "approval-flow": {
+ "add-rule": "添加规则",
+ "create-approval-flow": "创建审批流",
+ "edit-rule": "编辑规则",
+ "fallback-rules": "兜底规则",
+ "fallback-rules-hint": "兜底规则仅在没有其他规则匹配时才会被评估。",
+ "node": {
+ "add": "增加节点",
+ "approver": "审批人",
+ "delete": "删除审批节点",
+ "description": "当一个节点上有多个审批人时,只需要一次审批通过。",
+ "nodes": "审批节点",
+ "order": "顺序"
+ },
+ "self": "审批流",
+ "skip": "无需审批",
+ "template": {
+ "preset-descriptions": {
+ "drop-or-truncate": "DROP TABLE 或 TRUNCATE 语句需要审批。",
+ "fallback": "匹配所有请求的兜底规则,请将其放在规则列表的末尾。",
+ "high-affected-rows": "影响行数超过 100 时需要审批。"
},
- "method": {
- "title": "操作",
- "description": "按审计日志操作搜索"
+ "presets": {
+ "drop-or-truncate": "删除/清空表",
+ "fallback": "兜底规则",
+ "high-affected-rows": "高影响行数"
},
- "level": {
- "title": "事件等级",
- "description": "按审计日志事件等级搜索"
+ "presets-title": "预设模板"
+ }
+ },
+ "risk": {
+ "description": "风险评估会自动评估数据库变更,并根据操作类型分配风险等级。",
+ "how-it-works": "工作原理",
+ "how-it-works-description": "当您创建数据库变更时,Bytebase 会自动分析 SQL 语句,并根据预定义规则分配风险等级(低、中、高)。",
+ "integration": "与审批流集成",
+ "integration-description": "风险等级与自定义审批系统集成。您可以配置审批流,根据变更的风险等级要求不同级别的审批。",
+ "risk-level-high": "高风险操作包括破坏性变更,如 DROP TABLE、TRUNCATE 或大规模数据修改。",
+ "risk-level-low": "低风险操作包括 SELECT 查询和不太可能造成问题的小型模式变更。",
+ "risk-level-moderate": "中风险操作包括标准 DDL 变更,如添加列或索引。",
+ "risk-levels": "风险等级"
+ },
+ "risk-rule": {
+ "risk": {
+ "namespace": {
+ "change_database": "变更数据库",
+ "create_database": "创建数据库",
+ "data_export": "导出数据",
+ "request-access": "请求即时访问",
+ "request-role": "请求角色"
+ },
+ "risk-level": {
+ "default": "默认",
+ "high": "高",
+ "low": "低",
+ "moderate": "中"
}
}
+ },
+ "rule": {
+ "first-match-wins": "规则按顺序评估,第一个匹配的规则将被应用。"
}
},
- "cel": {
- "condition": {
- "input-value": "输入值",
- "select-value": "选择值",
- "input-value-press-enter": "输入值,按回车确认",
- "group": {
- "or": {
- "description": "以下任一为真…"
- },
- "and": {
- "description": "以下全部为真…"
- }
- },
- "add-condition-in-group-placeholder": "点击{{plus}}添加条件",
- "add-root-condition-placeholder": "点击「添加条件」或「添加条件组」以添加条件",
- "add": "添加条件",
- "add-raw-expression": "添加 Raw 表达式",
- "add-group": "添加条件组",
- "description-tips": "条件是通过表达式配置的规则。例如:条件「环境 为 prod」将会匹配在「prod」环境中执行的工单。",
- "self": "条件"
- }
- },
- "subscription": {
- "trial-for-days": "您可以开启 {{days}} 天的免费试用 - 无需任何信用卡或预付费。",
- "required-plan-with-trial": "这个功能需要{{requiredPlan}}订阅,{{startTrial}}",
- "instance-assignment": {
- "missing-license-attention": "请给实例分配证书以解锁该功能。",
- "assign-license": "分配证书",
- "license": "证书",
- "used-and-total-user": "活跃/总用户限制",
- "used-and-total-license": "已分配 / 总实例证书"
+ "database": {
+ "classification": {
+ "description": "定义分类分级,跨列和数据库统一应用脱敏策略。"
},
- "request-n-days-trial": "申请 {{days}} 天试用 (无需信用卡)",
- "usage": {
- "instance-count": {
- "title": "实例数量限制",
- "runoutof": "已用尽全部 {{total}} 个实例额度。"
+ "edit-environment": "编辑环境",
+ "edit-labels": "编辑标签",
+ "engine": "引擎",
+ "filter-database": "筛选数据库",
+ "selected-n-databases": "已选择 {{n}} 个数据库",
+ "successfully-transferred-databases": "成功转移数据库",
+ "sync-schema-button": "同步 Schema",
+ "sync-status": "同步状态",
+ "sync-status-failed": "同步失败",
+ "transfer-project": "转移项目",
+ "unassign": "取消分配"
+ },
+ "db": {
+ "character-set": "字符集",
+ "collation": "排序规则",
+ "encoding": "编码",
+ "failed-to-sync-schema": "同步 schema 失败",
+ "start-to-sync-schema": "开始同步 schema",
+ "successfully-synced-schema": "成功同步 schema"
+ },
+ "environment": {
+ "create": "创建环境",
+ "delete": "删除此环境",
+ "delete-description": "删除环境也会将其从相关实例和数据库中删除。这个操作无法撤销",
+ "reorder": "重新排序环境",
+ "successfully-updated-environment": "环境'{{name}}'更新成功"
+ },
+ "error-page": {
+ "not-found": "页面未找到"
+ },
+ "identity-provider": {
+ "claims-description": "身份提供商返回了以下 claims。此信息可帮助您配置用户信息映射。",
+ "delete-warning": "您确定要删除此身份提供者吗?通过此 SSO 注册的用户将无法再使用该身份提供者登录。如果您在工作区设置中禁用了密码登录,这些用户可能会被完全锁定。",
+ "identity-provider-create-failed": "无法创建身份提供商",
+ "identity-provider-created": "身份提供商创建成功",
+ "identity-provider-delete-failed": "无法删除身份提供商",
+ "identity-provider-deleted": "身份提供商已成功删除",
+ "identity-provider-permission-denied": "没有权限",
+ "identity-provider-update-failed": "无法更新身份提供商",
+ "no-claims": "身份提供商未返回 claims。",
+ "test-connection": "测试连接",
+ "test-connection-success": "测试连接成功",
+ "userinfo-description": "匹配到的用户信息。"
+ },
+ "instance": {
+ "advanced-search": {
+ "scope": {
+ "host": {
+ "description": "按实例服务器地址过滤。请输入值然后按 Enter。",
+ "title": "服务器地址"
+ },
+ "port": {
+ "description": "按实例端口过滤。请输入值然后按 Enter。",
+ "title": "端口"
+ }
}
},
- "plan": {
- "free": {
- "title": "社区版",
- "label": "",
- "desc": "团队中心化管理数据库生命周期的核心能力。"
- },
- "team": {
- "title": "专业版",
- "label": "",
- "desc": "更多协同和管控能力,进阶的数据库生命周期管理。"
- },
- "enterprise": {
- "title": "企业版",
- "label": "",
- "desc": "额外的安全,合规,权限功能,SLA 支持。"
- },
- "try": "免费试用",
- "title": "版本"
+ "archive-instance-instance-name": "归档实例'{{0}}'?",
+ "archived-instances-will-not-be-displayed": "不再会显示已归档实例。",
+ "filter-instance-name": "过滤实例名称",
+ "force-archive-description": "强制归档。所有数据库均将被取消分配。",
+ "selected-n-instances_one": "已选择 {{count}} 个实例",
+ "selected-n-instances_other": "已选择 {{count}} 个实例",
+ "successfully-archived-instance": "成功归档实例'{{0}}'。",
+ "successfully-restored-instance": "已成功恢复实例“{{0}}”。",
+ "sync": {
+ "self": "同步实例",
+ "sync-all": "同步所有数据库",
+ "sync-all-tip": "数据库同步是异步的,可能需要几秒到几分钟",
+ "sync-new": "仅同步新数据库"
},
- "purchase": {
- "free-description": "适用于个人开发者、副业项目和实验。",
- "pro-description": "适用于构建生产级应用的团队。",
- "enterprise-description": "安全合规地扩展您的业务。",
- "discount": {
- "percentage-off": "首月 {{value}}% 优惠",
- "month-off": "{{value}} 个月免费",
- "price-off": "减 ${{value}}"
- },
- "update": "更新订阅",
- "subscribe": "立即订阅",
- "cancel-confirm": "确定要取消订阅吗?",
- "canceled": "订阅已取消",
- "pending-title": "正在完成购买...",
- "pending-description": "请稍候,我们正在确认您的付款。通常只需几秒钟。",
- "payment-info": "支付信息",
- "total-price": "总价",
- "manage-invoices": "管理发票",
- "billing-period": "账单周期",
- "cancel-pending": "您的订阅已取消,将于 {{date}} 到期。",
- "cancel": "取消订阅",
- "per-user-per-month": "/ 用户 / 月",
- "custom": "自定义",
- "seats": "用户数",
- "accept-terms-prefix": "我接受",
- "terms-of-service": "服务条款",
- "and": "和",
- "privacy-policy": "隐私政策",
- "see-comparison": "查看详细功能对比"
+ "syncing": "同步中 ..."
+ },
+ "issue": {
+ "labels": "工单标签"
+ },
+ "landing": {
+ "changelog-for-version": "{{version}} 的更新日志",
+ "last-visit": "上次访问",
+ "quick-link": {
+ "manage": "管理快捷访问",
+ "self": "快捷访问",
+ "visit-issues": "访问工单",
+ "visit-prjects": "访问项目"
+ }
+ },
+ "policy": {
+ "environment-tier": {
+ "description": "使该环境在显示上不同于其他环境。",
+ "mark-env-as-production": "标记为生产环境",
+ "name": "环境级别"
},
- "current": "当前版本",
- "contact-us": "联系我们",
- "update": {
- "success": {
- "title": "证书更新成功",
- "description": "订阅版高级功能已解锁"
+ "rollout": {
+ "auto": "自动发布",
+ "auto-info": "如果预检查都通过的话,会自动发布,执行变更。",
+ "info": "拥有 “{{permission}}” 权限或以下角色的用户可以发布。",
+ "name": "发布策略",
+ "tip": "新策略对旧工单也生效"
+ }
+ },
+ "project": {
+ "batch": {
+ "archive": {
+ "description": "这将归档所选项目。如有需要,您可以稍后恢复它们。",
+ "error": "无法归档项目",
+ "success_one": "成功归档 {{count}} 个项目",
+ "success_other": "成功归档 {{count}} 个项目",
+ "title_one": "归档 {{count}} 个项目?",
+ "title_other": "归档 {{count}} 个项目?"
},
- "failure": {
- "title": "证书更新失败",
- "description": "请检查证书是否有效"
- }
+ "delete": {
+ "description": "这将永久删除所选项目,并将所有数据库移动到默认项目。",
+ "error": "无法删除项目",
+ "success_one": "成功删除 {{count}} 个项目",
+ "success_other": "成功删除 {{count}} 个项目",
+ "title_one": "删除 {{count}} 个项目?",
+ "title_other": "删除 {{count}} 个项目?",
+ "warning": "此操作无法撤消。包括工单、配置和历史记录在内的所有项目数据将被永久删除。"
+ },
+ "selected_one": "已选择 {{count}} 个项目",
+ "selected_other": "已选择 {{count}} 个项目"
},
- "expired": "已过期",
- "trialing": "试用期",
- "expires-at": "过期时间",
- "try-for-free": "免费试用",
- "enterprise-free-trial": "企业版 {{days}} 天免费试用",
- "inquire-enterprise-plan": "企业版询价",
- "upload-license": "上传证书",
- "description": "您可以在这里上传您购买的 Bytebase 证书来解锁专业版/企业版功能。",
- "plan-compare": "比较不同版本的功能,寻找适合您的方案",
- "max-instance-count": "最多实例数",
- "require-subscription": "这个功能需要{{requiredPlan}}订阅,请购买 Bytebase 证书来解锁该功能。"
+ "create-modal": {
+ "project-name": "项目名称",
+ "success-prompt": "成功创建 {{name}}."
+ },
+ "filter-projects": "过滤项目",
+ "table": {
+ "name": "名称"
+ }
+ },
+ "quick-action": {
+ "add-instance": "添加实例",
+ "create-db": "创建数据库",
+ "create-project": "创建项目",
+ "new-db": "创建数据库",
+ "new-project": "创建项目"
+ },
+ "remind": {
+ "release": {
+ "new-version-available-with-tag": "新版本 {{tag}} 已推出"
+ }
+ },
+ "resource": {
+ "delete-warning": "“{{name}}”将被删除。此操作无法撤消。",
+ "delete-warning-retry": "请将其从这些资源中删除,然后重试。",
+ "delete-warning-with-resources": "以下资源使用了“{{name}}”:"
},
"resource-id": {
+ "cannot-be-changed-later": "创建之后无法修改。",
+ "description": "{{resource}} ID 是一个唯一的标识符。创建之后无法修改。",
+ "self": "{{resource}} ID",
"validation": {
+ "duplicated": "{{resource}} ID 已存在。请使用其他 ID。",
"empty": "{{resource}} ID 不能为空",
"overflow": "{{resource}} ID 应该少于 64 个字符。",
- "pattern": "{{resource}} ID 可以具有小写字母,数字或连字符。\n它必须从小写字母开始,并以字母或数字结尾。",
- "duplicated": "{{resource}} ID 已存在。请使用其他 ID。"
+ "pattern": "{{resource}} ID 可以具有小写字母,数字或连字符。\n它必须从小写字母开始,并以字母或数字结尾。"
+ }
+ },
+ "role": {
+ "custom-roles": {
+ "self": "自定义角色"
},
- "self": "{{resource}} ID",
- "cannot-be-changed-later": "创建之后无法修改。",
- "description": "{{resource}} ID 是一个唯一的标识符。创建之后无法修改。"
+ "import-from-role": "从角色导入",
+ "project-roles": {
+ "self": "项目角色"
+ },
+ "select-role": "选择角色",
+ "self": "角色",
+ "setting": {
+ "add": "添加角色",
+ "description": "定义自定义角色,你可以将它们应用到项目成员和自定义审批。",
+ "description-placeholder": "输入角色描述",
+ "edit": "编辑角色",
+ "title-placeholder": "输入角色称谓"
+ },
+ "title": "称谓",
+ "workspace-roles": {
+ "self": "工作空间角色"
+ }
},
"schema-template": {
"classification": {
@@ -238,655 +409,571 @@
}
},
"settings": {
- "sidebar": {
- "general": "通用",
- "members": "成员",
- "users-and-groups": "用户和群组",
- "members-and-groups": "成员和群组",
- "sso": "SSO",
- "subscription": "订阅",
- "audit-log": "审计日志",
- "custom-roles": "自定义角色",
- "global-masking": "全局数据脱敏",
- "data-classification": "数据分类",
- "im-integration": "IM",
- "mcp": "MCP"
- },
- "sensitive-data": {
- "classification": {
- "invalid-json": "JSON 格式无效",
- "missing-classification": "缺少 \"classification\" 字段",
- "empty-classification": "\"classification\" 字段为空",
- "missing-levels": "缺少 \"levels\" 字段",
- "guide-intro": "在下方编辑分类分级的 JSON 配置。未配置时将显示示例模板。",
- "guide-levels": "\"levels\" 定义敏感级别,级别编号从 1 开始连续递增(例如 1 = 公开、2 = 内部、3 = 机密)。",
- "guide-classification": "\"classification\" 以 ID 为键映射各分类。叶子分类必须引用级别编号,父分类省略级别。",
- "guide-hierarchy": "ID 使用短横线分隔的层级结构(例如 \"1\" 为父分类,\"1-1\" 和 \"1-2\" 为其子分类)。"
- },
- "global-rules": {
- "error": {
- "missing-semantic-type": "需要指定语义类型",
- "invalid-condition": "规则的条件无效"
- },
- "condition-order": "条件序列",
- "delete-rule-tip": "删除这条规则?",
- "re-order": "排序",
- "description": "使用全局规则批量脱敏,例如所有名为「电子邮件」的列将被脱敏成特定语义类型,并应用对应的脱敏算法。"
- },
- "semantic-types": {
- "table": {
- "semantic-type": "语义类型",
- "icon": "图标",
- "description": "描述",
- "masking-algorithm": "脱敏算法",
- "delete": "删除这个语义类型?"
- },
- "select": "选择语义类型",
- "template": {
- "duplicate-warning": "语义类型“{{title}}”已存在",
- "description": "您可以从模板中应用内置语义类型。内置模板无法更改。"
+ "general": {
+ "workspace": {
+ "access-token-duration": {
+ "description": "访问令牌在需要刷新前保持有效的时间。较短的有效期可提高安全性。",
+ "hours": "小时",
+ "minutes": "分钟",
+ "self": "访问令牌有效期"
},
- "use-predefined-type": "使用预定义类型",
- "label": "具有相同语义类型的列会使用相同的脱敏算法。",
- "add-from-template": "从模板添加"
- },
- "algorithms": {
- "full-mask": {
- "self": "全遮掩",
- "substitution": "遮掩字符串",
- "substitution-label": "遮掩字符串是用来替换原始值的字符串,最大长度不能超过 16 个字符。"
- },
- "range-mask": {
- "self": "范围遮掩",
- "label": "范围遮掩使用遮掩字符串来替换从起始索引到结束索引(不包含结束索引)的原始值,索引从 0 开始。",
- "slice-start": "起始位置",
- "slice-end": "结束位置",
- "substitution": "遮掩字符串"
- },
- "md5-mask": {
- "self": "MD5 哈希",
- "salt": "盐值 (Salt)",
- "salt-label": "盐值 (Salt) 用于通过原始值生成哈希值。"
- },
- "inner-outer-mask": {
- "self": "内/外遮掩",
- "type": "遮掩类型",
- "inner-label": "内遮掩遮蔽字符串的内部部分。前缀和后缀代表数据的未遮蔽部分。",
- "outer-label": "外遮掩遮蔽字符串的左右两端。前缀和后缀代表数据的遮蔽部分。",
- "inner-mask": "内遮掩",
- "outer-mask": "外遮掩",
- "prefix-length": "前缀长度",
- "suffix-length": "后缀长度"
- },
- "error": {
- "slice-required": "遮掩范围不能为空",
- "slice-invalid-number": "遮掩范围起始值和结束值必须是数字",
- "slice-overlap": "遮掩范围不能有重叠",
- "substitution-required": "请填写遮掩字符串",
- "substitution-length": "遮掩字符串长度不能超过 16 个字符",
- "salt-required": "请填写盐值"
- },
- "edit": "编辑算法",
- "add": "添加算法",
- "table": {
- "masking-type": "算法类型"
- }
- }
- },
- "sso": {
- "delete": "删除该 SSO",
- "form": {
- "auth-url": "授权网址",
- "auth-url-placeholder": "例如 https://github.com/login/oauth/authorize",
- "auth-url-description": "登录页面的链接",
- "token-url": "令牌 URL",
- "token-url-placeholder": "例如 https://github.com/login/oauth/access_token",
- "token-url-description": "用于获取 accessToken 的 API 地址",
- "user-info-url": "用户信息 URL",
- "user-info-url-placeholder": "例如 https://api.github.com/user",
- "user-info-url-description": "用于通过 accessToken 获取用户信息的 API 地址",
- "scopes": "作用域",
- "scopes-placeholder": "例如,user、email、profile",
- "scopes-description": "访问 Auth URL 时携带的范围参数,使用空格分隔多个值",
- "authentication-style": "身份验证方式",
- "in-parameters": "在参数中",
- "in-parameters-description": "在 POST body 中发送凭证(推荐)",
- "in-header": "在头信息中",
- "in-header-description": "使用 HTTP header 中发送凭证",
- "security-options": "安全选项",
- "skip-tls-verification": "跳过 TLS 证书验证",
- "skip-tls-warning": "仅为开发或测试目的启用此功能",
- "issuer-url-placeholder": "例如 https://acme.okta.com",
- "issuer-url-description": "OIDC Issuer URL",
- "scopes-placeholder-oidc": "例如,openid、user、email、profile",
- "openid-scopes-description": "以空格分隔的 OIDC 范围列表(需要 openid)",
- "host-placeholder": "例如 ldap.example.com",
- "bind-dn": "绑定 DN",
- "bind-dn-placeholder": "例如,uid=system、ou=user、dc=example、dc=com",
- "bind-dn-description": "搜索请求时绑定的用户 DN",
- "bind-password": "绑定密码",
- "base-dn": "基本 DN",
- "base-dn-placeholder": "例如,ou=user、dc=example、dc=com",
- "base-dn-description": "搜索用户的基本 DN",
- "user-filter": "用户过滤器",
- "user-filter-placeholder": "例如 (uid=%s)",
- "user-filter-description": "搜索用户的过滤器(%s 将被替换为用户名)",
- "security-protocol": "安全协议",
- "starttls": "启动 TLS",
- "starttls-description": "将连接升级到 TLS(推荐)",
- "ldaps": "LDAPS",
- "ldaps-description": "从一开始就使用 TLS(端口 636)",
- "none": "没有任何",
- "none-description": "无加密(不建议用于生产)",
- "identifier-placeholder": "例如,username、email",
- "identifier": "Bytebase 用户的邮箱",
- "identifier-tips": "邮箱应该具有唯一性。如果实际值不是邮箱格式,将会和 domain 进行拼接。",
- "display-name-placeholder": "例如,title、nickname",
- "display-name": "Bytebase 用户的昵称",
- "phone-placeholder": "例如,phone、mobile",
- "phone": "Bytebase 用户的手机号",
- "groups-placeholder": "例如,groups",
- "groups": "Bytebase 用户的群组",
- "groups-description": "用于基于组的访问控制(仅限 OIDC 提供商)",
- "provider-type-readonly-hint": "提供商类型创建后无法更改",
- "name": "名称",
- "name-description": "显示给登录用户的名称",
- "domain": "域名",
- "domain-description": "OAuth 提供商的域名",
- "domain-optional-hint": "(可选)如果 SSO 所提供的用户唯一标识符不是电子邮件格式,则会用域名进行拼接。",
- "configuration": "配置",
- "configuration-description": "配置身份提供商的连接设置",
- "user-information-mapping": "用户信息映射",
- "user-information-mapping-description": "字段映射保存了来自 API 用户信息的字段名。",
- "identity-provider-needed-information": "用以下信息创建您的 SSO 应用程序。",
- "redirect-url-description": "将会用于填写到身份提供商申请表单中的相应字段。",
- "redirect-url": "回调地址",
- "type": "类型",
- "use-template": "使用模版",
- "oauth2-description": "适用于 OAuth 2.0 提供商,例如 Google、GitHub、GitLab 以及自部署等。",
- "oidc-description": "适用于 OpenID Connect 提供商,例如 Microsoft Entra ID (Azure AD)、Okta、Auth0",
- "ldap-description": "适用于 LDAP 提供商,例如 Microsoft Active Directory、OpenLDAP",
- "google-template-description": "使用 Google 帐户登录",
- "github-template-description": "使用 GitHub 帐户登录",
- "gitlab-template-description": "使用 GitLab 帐户登录",
- "microsoft-entra-template-description": "使用 Microsoft Entra ID 登录",
- "custom-template-description": "配置自定义 OAuth 2.0 提供商",
- "type-description": "选择要配置的身份提供商类型",
- "template-description": "选择预配置的模板或自定义 OAuth 2.0 提供商。",
- "general-setting-description": "提供有关您的身份提供商的基本信息。"
- },
- "description": "单点登录(SSO)是一种认证方法,使用户能够通过其他应用程序和网站来进行登录。",
- "create": "创建 SSO"
- },
- "im": {
- "add-im-integration": "添加即时通讯集成",
- "add-another-im": "添加另一个即时通讯工具"
- },
- "im-integration": {
- "description": "即时通讯集成用于针对特定工单事件向用户推送私信消息。需要与项目 webhook 配合使用。"
- },
- "mcp": {
- "first-prompt": {
- "example": "列出我的 Bytebase 实例中的所有项目",
- "title": "您的第一个提示",
- "description": "连接后,尝试向 AI 助手提问:"
- },
- "title": "MCP 集成",
- "description": "使用模型上下文协议将 AI 助手连接到 Bytebase。",
- "auth": {
- "title": "需要身份验证",
- "description": "首次连接需要 OAuth 身份验证。请确保您拥有相应的 Bytebase 权限。"
- },
- "general-config": {
- "title": "方式一:JSON 配置"
- },
- "setup": {
- "add-to-config": "将此 JSON 添加到您的 MCP 客户端配置文件。"
- },
- "quick-start": {
- "title": "方式二:CLI 命令",
- "description": "或者使用以下 CLI 命令。"
- }
- },
- "general": {
- "workspace": {
- "external-url": {
- "description": "用户或回调能访问到的 Bytebase URL,必须以 http:// 或 https:// 开头。",
- "self": "External URL",
- "cannot-edit-flag": "外部 URL 无法更改,因为它是通过 --external-url 命令行参数设置的"
- },
- "id": "工作空间 ID",
- "id-description": "唯一且只读的工作空间 ID",
+ "account": "帐户",
"ai-assistant": {
- "enabled-in-saas": "Gemini AI 在 SaaS 模式下自动启用。",
- "enable-ai-assistant": "启用 AI 助手",
- "description": "使用 AI 来辅助数据库开发任务。",
- "provider": {
- "self": "AI 提供方",
- "open_ai": "Open AI",
- "azure_open_ai": "Azure Open AI",
- "gemini": "Gemini",
- "claude": "Claude"
- },
"api-key": {
- "self": "API Key",
"description": "提供 API 密钥,只读。{{viewDoc}}",
"find-my-key": "找到我的 Key",
- "placeholder": "API Key 通常以 sk-***** 开头"
+ "placeholder": "API Key 通常以 sk-***** 开头",
+ "self": "API Key"
},
+ "description": "使用 AI 来辅助数据库开发任务。",
+ "enable-ai-assistant": "启用 AI 助手",
+ "enabled-in-saas": "Gemini AI 在 SaaS 模式下自动启用。",
"endpoint": {
- "self": "API Endpoint",
- "description": "提供私有化部署的 API Endpoint。"
+ "description": "提供私有化部署的 API Endpoint。",
+ "self": "API Endpoint"
},
"model": {
- "self": "Model Name",
- "description": "提供私有化部署的模型名称。"
+ "description": "提供私有化部署的模型名称。",
+ "self": "Model Name"
+ },
+ "provider": {
+ "azure_open_ai": "Azure Open AI",
+ "claude": "Claude",
+ "gemini": "Gemini",
+ "open_ai": "Open AI",
+ "self": "AI 提供方"
},
"self": "AI 助手"
},
- "disallow-signup": {
- "enable": "禁用自助注册",
- "description": "禁用之后,新用户将无法自助注册,只能通过管理员邀请来创建账户。"
- },
- "password-restriction": {
- "self": "密码限制",
- "min-length": "密码最小长度不得少于 {{min}} 个字符",
- "require-number": "密码必须至少包含一个数字",
- "require-letter": "密码必须至少包含一个字母(不区分大小写)",
- "require-uppercase-letter": "密码必须至少包含一个大写字母",
- "require-special-character": "密码必须至少包含一个特殊字符",
- "require-reset-password-for-first-login": "要求用户在首次登录后重置密码",
- "password-rotation": "要求用户每 {{day}} 天重置一次密码"
- },
- "require-2fa": {
- "enable": "要求所有用户配置双重认证",
- "description": "启用之后,没有配置双重认证的用户将被强制要求进行配置操作。"
- },
- "disallow-password-signin": {
- "enable": "禁止使用密码登录",
- "require-sso-setup": "开启前必须先要创建 SSO,否则用户将无法正常登录。",
- "description": "用户将无法通过邮箱和密码进行登录,只允许通过所配置的 SSO 进行登录。"
- },
- "access-token-duration": {
- "self": "访问令牌有效期",
- "description": "访问令牌在需要刷新前保持有效的时间。较短的有效期可提高安全性。",
- "minutes": "分钟",
- "hours": "小时"
- },
- "refresh-token-duration": {
- "self": "刷新令牌有效期",
- "description": "用户需要完全重新认证的频率。配置更新后需要用户重新登录才能生效。",
- "hours": "小时",
- "days": "天"
+ "allow-admin-data-source": {
+ "description": "启用时,用户可以在主数据源和只读数据源之间进行选择。禁用时,如果配置了只读数据源,则强制用户使用只读数据源,否则回退到使用主数据源。",
+ "self": "允许查询主数据源"
},
- "inactive-session-timeout": {
- "self": "非活动会话超时",
- "description": "未检测到用户活动时的会话过期时间。用户达到限制时将被强制退出登录。",
- "hours": "小时"
+ "announcement": {
+ "self": "公告"
},
- "no-limit": "当值 <= 0 时无限制",
"announcement-alert-level": {
"description": "等级",
"field": {
+ "critical": "重要",
"info": "普通",
- "warning": "警告",
- "critical": "重要"
+ "warning": "警告"
}
},
"announcement-text": {
- "self": "标题",
"description": "如果要隐藏公告,则置为空。",
- "placeholder": "输入公告标题"
- },
- "extra-link": {
- "self": "链接",
- "placeholder": "输入公告链接"
+ "placeholder": "输入公告标题",
+ "self": "标题"
},
- "log": "日志",
"audit-log-stdout": {
- "enable": "启用审计日志输出到标准输出",
- "description": "将结构化的 JSON 审计日志输出到标准输出,以便日志聚合器(Splunk、ELK、Datadog、Loki)摄取。需要 TEAM 或 ENTERPRISE 许可证。"
+ "description": "将结构化的 JSON 审计日志输出到标准输出,以便日志聚合器(Splunk、ELK、Datadog、Loki)摄取。需要 TEAM 或 ENTERPRISE 许可证。",
+ "enable": "启用审计日志输出到标准输出"
},
- "enable-debug": {
- "enable": "启用后端服务的调试级别日志"
- },
- "title": "工作空间名称",
- "logo": "Logo",
- "logo-aspect": "Logo 建议为 5:2 的宽:高比例(例如 100 x 40 像素)",
- "select-logo": "选择",
- "drag-logo": "或拖拽文件",
- "logo-upload-tip": "支持 {{extension}} 类型文件,不能大于 {{size}} MiB",
"branding": "品牌",
- "account": "帐户",
- "security": "安全",
- "announcement": {
- "self": "公告"
- },
- "product-improvement": {
- "self": "产品改进",
- "participate": "参与改进计划",
- "description": "通过分享匿名使用数据帮助改进 Bytebase"
- },
- "failed-to-update-setting": "无法更新设置“{{title}}”",
- "config-updated": "配置已更新。",
"config-partly-updated": "配置部分更新。",
+ "config-updated": "配置已更新。",
+ "data-copy": "启用复制数据",
+ "data-export": "启用数据导出",
"default-landing-page": {
+ "default-view-changed-to-sql-editor": "工作区的默认视图已更改为 SQL 编辑器。",
+ "go-to-sql-editor": "转到 SQL 编辑器",
"self": "默认首页",
- "workspace": {
- "self": "工作区",
- "description": "使用工单来请求、审查、推出和版本数据库更改,适用于具有访问控制和 CI 与 CD 工作流的团队。"
- },
"sql-editor": {
- "self": "SQL 编辑器",
- "description": "使用 SQL 编辑器直接执行数据库更改,适合单人使用或不需要管控的环境。"
- },
- "default-view-changed-to-sql-editor": "工作区的默认视图已更改为 SQL 编辑器。",
- "go-to-sql-editor": "转到 SQL 编辑器"
- },
- "data-export": "启用数据导出",
- "data-copy": "启用复制数据",
- "allow-admin-data-source": {
- "self": "允许查询主数据源",
- "description": "启用时,用户可以在主数据源和只读数据源之间进行选择。禁用时,如果配置了只读数据源,则强制用户使用只读数据源,否则回退到使用主数据源。"
- },
- "maximum-sql-result": {
- "size": {
- "self": "最大 SQL 结果大小",
- "description": "限制输出 SQL 查询结果的大小。",
- "default": "默认限制 {{limit}} MB"
+ "description": "使用 SQL 编辑器直接执行数据库更改,适合单人使用或不需要管控的环境。",
+ "self": "SQL 编辑器"
},
- "rows": {
- "self": "SQL结果行数上限",
- "description": "限制SQL查询结果的输出行数。",
- "rows": "行"
+ "workspace": {
+ "description": "使用工单来请求、审查、推出和版本数据库更改,适用于具有访问控制和 CI 与 CD 工作流的团队。",
+ "self": "工作区"
}
},
- "query-data-policy": {
- "timeout": {
- "self": "最大查询时间",
- "description": "允许运行查询的最长时间。"
- },
- "seconds": "秒"
- },
- "watermark": {
- "enable": "开启水印",
- "description": "在页面上显示水印,包含用户名、ID 和 Email。"
+ "disallow-password-signin": {
+ "description": "用户将无法通过邮箱和密码进行登录,只允许通过所配置的 SSO 进行登录。",
+ "enable": "禁止使用密码登录",
+ "require-sso-setup": "开启前必须先要创建 SSO,否则用户将无法正常登录。"
},
- "maximum-role-expiration": {
- "self": "角色最大过期时间",
- "description": "角色最大过期时间是可以赋予用户角色时所能设置的最大过期时间,会应用在项目所有者之外的其他项目角色上。",
- "days": "天数",
- "never-expires": "永不过期"
+ "disallow-signup": {
+ "description": "禁用之后,新用户将无法自助注册,只能通过管理员邀请来创建账户。",
+ "enable": "禁用自助注册"
},
"domain-restriction": {
- "self": "工作空间域名",
"description": "用于指定成员电子邮箱的域名。",
"domain-input-placeholder": "请输入域名,例如 example.com",
"members-restriction": {
- "self": "成员邮箱限制",
- "description": "仅允许具有指定域名的电子邮箱的用户进行登录或注册。"
- }
- }
- }
- }
- },
- "database": {
- "classification": {
- "description": "定义分类分级,跨列和数据库统一应用脱敏策略。"
- },
- "edit-environment": "编辑环境",
- "engine": "引擎",
- "edit-labels": "编辑标签",
- "filter-database": "筛选数据库",
- "selected-n-databases": "已选择 {{n}} 个数据库",
- "successfully-transferred-databases": "成功转移数据库",
- "sync-schema-button": "同步 Schema",
- "sync-status": "同步状态",
- "sync-status-failed": "同步失败",
- "transfer-project": "转移项目",
- "unassign": "取消分配"
- },
- "bbkit": {
- "confirm-button": {
- "sure-to-delete": "确定要删除吗?"
- }
- },
- "role": {
- "workspace-roles": {
- "self": "工作空间角色"
- },
- "project-roles": {
- "self": "项目角色"
- },
- "custom-roles": {
- "self": "自定义角色"
+ "description": "仅允许具有指定域名的电子邮箱的用户进行登录或注册。",
+ "self": "成员邮箱限制"
+ },
+ "self": "工作空间域名"
+ },
+ "drag-logo": "或拖拽文件",
+ "enable-debug": {
+ "enable": "启用后端服务的调试级别日志"
+ },
+ "external-url": {
+ "cannot-edit-flag": "外部 URL 无法更改,因为它是通过 --external-url 命令行参数设置的",
+ "description": "用户或回调能访问到的 Bytebase URL,必须以 http:// 或 https:// 开头。",
+ "self": "External URL"
+ },
+ "extra-link": {
+ "placeholder": "输入公告链接",
+ "self": "链接"
+ },
+ "failed-to-update-setting": "无法更新设置“{{title}}”",
+ "id": "工作空间 ID",
+ "id-description": "唯一且只读的工作空间 ID",
+ "inactive-session-timeout": {
+ "description": "未检测到用户活动时的会话过期时间。用户达到限制时将被强制退出登录。",
+ "hours": "小时",
+ "self": "非活动会话超时"
+ },
+ "log": "日志",
+ "logo": "Logo",
+ "logo-aspect": "Logo 建议为 5:2 的宽:高比例(例如 100 x 40 像素)",
+ "logo-upload-tip": "支持 {{extension}} 类型文件,不能大于 {{size}} MiB",
+ "maximum-role-expiration": {
+ "days": "天数",
+ "description": "角色最大过期时间是可以赋予用户角色时所能设置的最大过期时间,会应用在项目所有者之外的其他项目角色上。",
+ "never-expires": "永不过期",
+ "self": "角色最大过期时间"
+ },
+ "maximum-sql-result": {
+ "rows": {
+ "description": "限制SQL查询结果的输出行数。",
+ "rows": "行",
+ "self": "SQL结果行数上限"
+ },
+ "size": {
+ "default": "默认限制 {{limit}} MB",
+ "description": "限制输出 SQL 查询结果的大小。",
+ "self": "最大 SQL 结果大小"
+ }
+ },
+ "no-limit": "当值 <= 0 时无限制",
+ "password-restriction": {
+ "min-length": "密码最小长度不得少于 {{min}} 个字符",
+ "password-rotation": "要求用户每 {{day}} 天重置一次密码",
+ "require-letter": "密码必须至少包含一个字母(不区分大小写)",
+ "require-number": "密码必须至少包含一个数字",
+ "require-reset-password-for-first-login": "要求用户在首次登录后重置密码",
+ "require-special-character": "密码必须至少包含一个特殊字符",
+ "require-uppercase-letter": "密码必须至少包含一个大写字母",
+ "self": "密码限制"
+ },
+ "product-improvement": {
+ "description": "通过分享匿名使用数据帮助改进 Bytebase",
+ "participate": "参与改进计划",
+ "self": "产品改进"
+ },
+ "query-data-policy": {
+ "seconds": "秒",
+ "timeout": {
+ "description": "允许运行查询的最长时间。",
+ "self": "最大查询时间"
+ }
+ },
+ "refresh-token-duration": {
+ "days": "天",
+ "description": "用户需要完全重新认证的频率。配置更新后需要用户重新登录才能生效。",
+ "hours": "小时",
+ "self": "刷新令牌有效期"
+ },
+ "require-2fa": {
+ "description": "启用之后,没有配置双重认证的用户将被强制要求进行配置操作。",
+ "enable": "要求所有用户配置双重认证"
+ },
+ "security": "安全",
+ "select-logo": "选择",
+ "title": "工作空间名称",
+ "watermark": {
+ "description": "在页面上显示水印,包含用户名、ID 和 Email。",
+ "enable": "开启水印"
+ }
+ }
},
- "import-from-role": "从角色导入",
- "select-role": "选择角色",
- "self": "角色",
- "setting": {
- "add": "添加角色",
- "edit": "编辑角色",
- "title-placeholder": "输入角色称谓",
- "description-placeholder": "输入角色描述",
- "description": "定义自定义角色,你可以将它们应用到项目成员和自定义审批。"
+ "im": {
+ "add-another-im": "添加另一个即时通讯工具",
+ "add-im-integration": "添加即时通讯集成"
},
- "title": "称谓"
- },
- "policy": {
- "rollout": {
- "auto": "自动发布",
- "auto-info": "如果预检查都通过的话,会自动发布,执行变更。",
- "name": "发布策略",
- "tip": "新策略对旧工单也生效",
- "info": "拥有 “{{permission}}” 权限或以下角色的用户可以发布。"
+ "im-integration": {
+ "description": "即时通讯集成用于针对特定工单事件向用户推送私信消息。需要与项目 webhook 配合使用。"
},
- "environment-tier": {
- "name": "环境级别",
- "description": "使该环境在显示上不同于其他环境。",
- "mark-env-as-production": "标记为生产环境"
- }
- },
- "sql-review": {
- "title": "SQL 审核策略",
- "configure-policy": "配置审核策略"
- },
- "environment": {
- "successfully-updated-environment": "环境'{{name}}'更新成功",
- "delete": "删除此环境",
- "delete-description": "删除环境也会将其从相关实例和数据库中删除。这个操作无法撤销",
- "create": "创建环境",
- "reorder": "重新排序环境"
- },
- "custom-approval": {
- "rule": {
- "first-match-wins": "规则按顺序评估,第一个匹配的规则将被应用。"
+ "mcp": {
+ "auth": {
+ "description": "首次连接需要 OAuth 身份验证。请确保您拥有相应的 Bytebase 权限。",
+ "title": "需要身份验证"
+ },
+ "description": "使用模型上下文协议将 AI 助手连接到 Bytebase。",
+ "first-prompt": {
+ "description": "连接后,尝试向 AI 助手提问:",
+ "example": "列出我的 Bytebase 实例中的所有项目",
+ "title": "您的第一个提示"
+ },
+ "general-config": {
+ "title": "方式一:JSON 配置"
+ },
+ "quick-start": {
+ "description": "或者使用以下 CLI 命令。",
+ "title": "方式二:CLI 命令"
+ },
+ "setup": {
+ "add-to-config": "将此 JSON 添加到您的 MCP 客户端配置文件。"
+ },
+ "title": "MCP 集成"
},
- "approval-flow": {
- "add-rule": "添加规则",
- "create-approval-flow": "创建审批流",
- "edit-rule": "编辑规则",
- "fallback-rules": "兜底规则",
- "fallback-rules-hint": "兜底规则仅在没有其他规则匹配时才会被评估。",
- "self": "审批流",
- "skip": "无需审批",
- "node": {
- "add": "增加节点",
- "approver": "审批人",
- "delete": "删除审批节点",
- "description": "当一个节点上有多个审批人时,只需要一次审批通过。",
- "nodes": "审批节点",
- "order": "顺序"
+ "members": {
+ "action": {
+ "deactivate-confirm-title": "确定禁用",
+ "reactivate-confirm-title": "确定启用"
},
- "template": {
- "presets-title": "预设模板",
- "preset-descriptions": {
- "drop-or-truncate": "DROP TABLE 或 TRUNCATE 语句需要审批。",
- "fallback": "匹配所有请求的兜底规则,请将其放在规则列表的末尾。",
- "high-affected-rows": "影响行数超过 100 时需要审批。"
+ "add-member": "添加成员",
+ "add-user": "添加用户",
+ "cannot-revoke-self": "You cannot revoke yourself",
+ "entra-sync": {
+ "description": "将 Entra ID(前 Azure AD)或 Okta 中的用户和组同步到您的 Bytebase 实例。",
+ "endpoint": "Endpoint",
+ "endpoint-tip": "用户和组将通过此端点同步到 Bytebase。",
+ "reset-token": "重置密钥",
+ "reset-token-warning": "您需要更新 Entra 应用程序配置。",
+ "secret-token": "Secret Token",
+ "secret-token-tip": "端点的验证令牌,请妥善保管。",
+ "self": "从 SCIM 同步"
+ },
+ "grant-access": "授予访问权限",
+ "groups": {
+ "add-group": "添加组",
+ "external-readonly": "External group is read-only.",
+ "form": {
+ "description": "描述",
+ "email": "邮箱",
+ "email-tips": "邮箱应该是唯一的,并且创建后不能更改。",
+ "role": {
+ "member": "群组成员",
+ "owner": "群组所有者"
+ },
+ "title": "名称"
},
- "presets": {
- "drop-or-truncate": "删除/清空表",
- "fallback": "兜底规则",
- "high-affected-rows": "高影响行数"
- }
- }
+ "n-members": "{{n}} 位成员",
+ "self": "群组",
+ "update-group": "更新组",
+ "workspace-domain-required": "请先设置工作空间的域名。"
+ },
+ "inactive-users": "未激活用户",
+ "revoke-access": "撤销访问权限",
+ "revoke-access-alert": "您确定要撤销访问权限吗?",
+ "revoke-allusers-alert": "撤销“全部用户”将撤销您工作区中所有其他用户的相关角色。您确定要继续吗?",
+ "revoked": "已撤销",
+ "search-member": "搜索成员",
+ "select-account-hint": "您可以搜索用户和组,或输入完整的电子邮件地址来选择服务账号或工作负载身份。",
+ "select-account_one": "选择账户",
+ "select-account_other": "选择账户",
+ "select-role_one": "选择角色",
+ "select-role_other": "选择角色",
+ "service-account": "服务账号",
+ "show-inactive": "显示已停用账户",
+ "table": {
+ "account": "账户",
+ "groups": "群组",
+ "roles": "角色"
+ },
+ "update-user": "更新用户",
+ "view-by-members": "按成员查看",
+ "view-by-roles": "按角色查看",
+ "workload-identity": "工作负载标识"
},
- "risk": {
- "description": "风险评估会自动评估数据库变更,并根据操作类型分配风险等级。",
- "how-it-works": "工作原理",
- "how-it-works-description": "当您创建数据库变更时,Bytebase 会自动分析 SQL 语句,并根据预定义规则分配风险等级(低、中、高)。",
- "risk-levels": "风险等级",
- "risk-level-high": "高风险操作包括破坏性变更,如 DROP TABLE、TRUNCATE 或大规模数据修改。",
- "risk-level-moderate": "中风险操作包括标准 DDL 变更,如添加列或索引。",
- "risk-level-low": "低风险操作包括 SELECT 查询和不太可能造成问题的小型模式变更。",
- "integration": "与审批流集成",
- "integration-description": "风险等级与自定义审批系统集成。您可以配置审批流,根据变更的风险等级要求不同级别的审批。"
+ "profile": {
+ "password": "密码",
+ "password-confirm": "确认密码",
+ "password-confirm-placeholder": "确认新密码",
+ "password-hint": "密码应遵循限制设置",
+ "password-mismatch": "新密码不匹配",
+ "phone": "手机号",
+ "phone-tips": "请包含国家代码前缀 +86xxxxxx"
},
- "risk-rule": {
- "risk": {
- "namespace": {
- "change_database": "变更数据库",
- "create_database": "创建数据库",
- "data_export": "导出数据",
- "request-role": "请求角色",
- "request-access": "请求即时访问"
+ "sensitive-data": {
+ "algorithms": {
+ "add": "添加算法",
+ "edit": "编辑算法",
+ "error": {
+ "salt-required": "请填写盐值",
+ "slice-invalid-number": "遮掩范围起始值和结束值必须是数字",
+ "slice-overlap": "遮掩范围不能有重叠",
+ "slice-required": "遮掩范围不能为空",
+ "substitution-length": "遮掩字符串长度不能超过 16 个字符",
+ "substitution-required": "请填写遮掩字符串"
},
- "risk-level": {
- "default": "默认",
- "high": "高",
- "moderate": "中",
- "low": "低"
- }
- }
- }
- },
- "identity-provider": {
- "test-connection-success": "测试连接成功",
- "userinfo-description": "匹配到的用户信息。",
- "claims-description": "身份提供商返回了以下 claims。此信息可帮助您配置用户信息映射。",
- "no-claims": "身份提供商未返回 claims。",
- "test-connection": "测试连接",
- "delete-warning": "您确定要删除此身份提供者吗?通过此 SSO 注册的用户将无法再使用该身份提供者登录。如果您在工作区设置中禁用了密码登录,这些用户可能会被完全锁定。",
- "identity-provider-update-failed": "无法更新身份提供商",
- "identity-provider-permission-denied": "没有权限",
- "identity-provider-deleted": "身份提供商已成功删除",
- "identity-provider-delete-failed": "无法删除身份提供商",
- "identity-provider-created": "身份提供商创建成功",
- "identity-provider-create-failed": "无法创建身份提供商"
- },
- "error-page": {
- "not-found": "页面未找到"
- },
- "instance": {
- "successfully-archived-instance": "成功归档实例'{{0}}'。",
- "successfully-restored-instance": "已成功恢复实例“{{0}}”。",
- "archive-instance-instance-name": "归档实例'{{0}}'?",
- "archived-instances-will-not-be-displayed": "不再会显示已归档实例。",
- "force-archive-description": "强制归档。所有数据库均将被取消分配。",
- "syncing": "同步中 ...",
- "sync": {
- "self": "同步实例",
- "sync-all-tip": "数据库同步是异步的,可能需要几秒到几分钟",
- "sync-all": "同步所有数据库",
- "sync-new": "仅同步新数据库"
- },
- "selected-n-instances_one": "已选择 {{count}} 个实例",
- "selected-n-instances_other": "已选择 {{count}} 个实例",
- "advanced-search": {
- "scope": {
- "host": {
- "title": "服务器地址",
- "description": "按实例服务器地址过滤。请输入值然后按 Enter。"
+ "full-mask": {
+ "self": "全遮掩",
+ "substitution": "遮掩字符串",
+ "substitution-label": "遮掩字符串是用来替换原始值的字符串,最大长度不能超过 16 个字符。"
},
- "port": {
- "title": "端口",
- "description": "按实例端口过滤。请输入值然后按 Enter。"
+ "inner-outer-mask": {
+ "inner-label": "内遮掩遮蔽字符串的内部部分。前缀和后缀代表数据的未遮蔽部分。",
+ "inner-mask": "内遮掩",
+ "outer-label": "外遮掩遮蔽字符串的左右两端。前缀和后缀代表数据的遮蔽部分。",
+ "outer-mask": "外遮掩",
+ "prefix-length": "前缀长度",
+ "self": "内/外遮掩",
+ "suffix-length": "后缀长度",
+ "type": "遮掩类型"
+ },
+ "md5-mask": {
+ "salt": "盐值 (Salt)",
+ "salt-label": "盐值 (Salt) 用于通过原始值生成哈希值。",
+ "self": "MD5 哈希"
+ },
+ "range-mask": {
+ "label": "范围遮掩使用遮掩字符串来替换从起始索引到结束索引(不包含结束索引)的原始值,索引从 0 开始。",
+ "self": "范围遮掩",
+ "slice-end": "结束位置",
+ "slice-start": "起始位置",
+ "substitution": "遮掩字符串"
+ },
+ "table": {
+ "masking-type": "算法类型"
}
+ },
+ "classification": {
+ "empty-classification": "\"classification\" 字段为空",
+ "guide-classification": "\"classification\" 以 ID 为键映射各分类。叶子分类必须引用级别编号,父分类省略级别。",
+ "guide-hierarchy": "ID 使用短横线分隔的层级结构(例如 \"1\" 为父分类,\"1-1\" 和 \"1-2\" 为其子分类)。",
+ "guide-intro": "在下方编辑分类分级的 JSON 配置。未配置时将显示示例模板。",
+ "guide-levels": "\"levels\" 定义敏感级别,级别编号从 1 开始连续递增(例如 1 = 公开、2 = 内部、3 = 机密)。",
+ "invalid-json": "JSON 格式无效",
+ "missing-classification": "缺少 \"classification\" 字段",
+ "missing-levels": "缺少 \"levels\" 字段"
+ },
+ "global-rules": {
+ "condition-order": "条件序列",
+ "delete-rule-tip": "删除这条规则?",
+ "description": "使用全局规则批量脱敏,例如所有名为「电子邮件」的列将被脱敏成特定语义类型,并应用对应的脱敏算法。",
+ "error": {
+ "invalid-condition": "规则的条件无效",
+ "missing-semantic-type": "需要指定语义类型"
+ },
+ "re-order": "排序"
+ },
+ "semantic-types": {
+ "add-from-template": "从模板添加",
+ "label": "具有相同语义类型的列会使用相同的脱敏算法。",
+ "select": "选择语义类型",
+ "table": {
+ "delete": "删除这个语义类型?",
+ "description": "描述",
+ "icon": "图标",
+ "masking-algorithm": "脱敏算法",
+ "semantic-type": "语义类型"
+ },
+ "template": {
+ "description": "您可以从模板中应用内置语义类型。内置模板无法更改。",
+ "duplicate-warning": "语义类型“{{title}}”已存在"
+ },
+ "use-predefined-type": "使用预定义类型"
}
},
- "filter-instance-name": "过滤实例名称"
- },
- "db": {
- "start-to-sync-schema": "开始同步 schema",
- "character-set": "字符集",
- "collation": "排序规则",
- "encoding": "编码",
- "failed-to-sync-schema": "同步 schema 失败",
- "successfully-synced-schema": "成功同步 schema"
- },
- "quick-action": {
- "add-instance": "添加实例",
- "create-project": "创建项目",
- "new-project": "创建项目",
- "create-db": "创建数据库",
- "new-db": "创建数据库"
- },
- "landing": {
- "quick-link": {
- "visit-prjects": "访问项目",
- "visit-issues": "访问工单",
- "manage": "管理快捷访问",
- "self": "快捷访问"
+ "sidebar": {
+ "audit-log": "审计日志",
+ "custom-roles": "自定义角色",
+ "data-classification": "数据分类",
+ "general": "通用",
+ "global-masking": "全局数据脱敏",
+ "im-integration": "IM",
+ "mcp": "MCP",
+ "members": "成员",
+ "members-and-groups": "成员和群组",
+ "sso": "SSO",
+ "subscription": "订阅",
+ "users-and-groups": "用户和群组"
},
- "last-visit": "上次访问",
- "changelog-for-version": "{{version}} 的更新日志"
- },
- "remind": {
- "release": {
- "new-version-available-with-tag": "新版本 {{tag}} 已推出"
+ "sso": {
+ "create": "创建 SSO",
+ "delete": "删除该 SSO",
+ "description": "单点登录(SSO)是一种认证方法,使用户能够通过其他应用程序和网站来进行登录。",
+ "form": {
+ "auth-url": "授权网址",
+ "auth-url-description": "登录页面的链接",
+ "auth-url-placeholder": "例如 https://github.com/login/oauth/authorize",
+ "authentication-style": "身份验证方式",
+ "base-dn": "基本 DN",
+ "base-dn-description": "搜索用户的基本 DN",
+ "base-dn-placeholder": "例如,ou=user、dc=example、dc=com",
+ "bind-dn": "绑定 DN",
+ "bind-dn-description": "搜索请求时绑定的用户 DN",
+ "bind-dn-placeholder": "例如,uid=system、ou=user、dc=example、dc=com",
+ "bind-password": "绑定密码",
+ "configuration": "配置",
+ "configuration-description": "配置身份提供商的连接设置",
+ "custom-template-description": "配置自定义 OAuth 2.0 提供商",
+ "display-name": "Bytebase 用户的昵称",
+ "display-name-placeholder": "例如,title、nickname",
+ "domain": "域名",
+ "domain-description": "OAuth 提供商的域名",
+ "domain-optional-hint": "(可选)如果 SSO 所提供的用户唯一标识符不是电子邮件格式,则会用域名进行拼接。",
+ "general-setting-description": "提供有关您的身份提供商的基本信息。",
+ "github-template-description": "使用 GitHub 帐户登录",
+ "gitlab-template-description": "使用 GitLab 帐户登录",
+ "google-template-description": "使用 Google 帐户登录",
+ "groups": "Bytebase 用户的群组",
+ "groups-description": "用于基于组的访问控制(仅限 OIDC 提供商)",
+ "groups-placeholder": "例如,groups",
+ "host-placeholder": "例如 ldap.example.com",
+ "identifier": "Bytebase 用户的邮箱",
+ "identifier-placeholder": "例如,username、email",
+ "identifier-tips": "邮箱应该具有唯一性。如果实际值不是邮箱格式,将会和 domain 进行拼接。",
+ "identity-provider-needed-information": "用以下信息创建您的 SSO 应用程序。",
+ "in-header": "在头信息中",
+ "in-header-description": "使用 HTTP header 中发送凭证",
+ "in-parameters": "在参数中",
+ "in-parameters-description": "在 POST body 中发送凭证(推荐)",
+ "issuer-url-description": "OIDC Issuer URL",
+ "issuer-url-placeholder": "例如 https://acme.okta.com",
+ "ldap-description": "适用于 LDAP 提供商,例如 Microsoft Active Directory、OpenLDAP",
+ "ldaps": "LDAPS",
+ "ldaps-description": "从一开始就使用 TLS(端口 636)",
+ "microsoft-entra-template-description": "使用 Microsoft Entra ID 登录",
+ "name": "名称",
+ "name-description": "显示给登录用户的名称",
+ "none": "没有任何",
+ "none-description": "无加密(不建议用于生产)",
+ "oauth2-description": "适用于 OAuth 2.0 提供商,例如 Google、GitHub、GitLab 以及自部署等。",
+ "oidc-description": "适用于 OpenID Connect 提供商,例如 Microsoft Entra ID (Azure AD)、Okta、Auth0",
+ "openid-scopes-description": "以空格分隔的 OIDC 范围列表(需要 openid)",
+ "phone": "Bytebase 用户的手机号",
+ "phone-placeholder": "例如,phone、mobile",
+ "provider-type-readonly-hint": "提供商类型创建后无法更改",
+ "redirect-url": "回调地址",
+ "redirect-url-description": "将会用于填写到身份提供商申请表单中的相应字段。",
+ "scopes": "作用域",
+ "scopes-description": "访问 Auth URL 时携带的范围参数,使用空格分隔多个值",
+ "scopes-placeholder": "例如,user、email、profile",
+ "scopes-placeholder-oidc": "例如,openid、user、email、profile",
+ "security-options": "安全选项",
+ "security-protocol": "安全协议",
+ "skip-tls-verification": "跳过 TLS 证书验证",
+ "skip-tls-warning": "仅为开发或测试目的启用此功能",
+ "starttls": "启动 TLS",
+ "starttls-description": "将连接升级到 TLS(推荐)",
+ "template-description": "选择预配置的模板或自定义 OAuth 2.0 提供商。",
+ "token-url": "令牌 URL",
+ "token-url-description": "用于获取 accessToken 的 API 地址",
+ "token-url-placeholder": "例如 https://github.com/login/oauth/access_token",
+ "type": "类型",
+ "type-description": "选择要配置的身份提供商类型",
+ "use-template": "使用模版",
+ "user-filter": "用户过滤器",
+ "user-filter-description": "搜索用户的过滤器(%s 将被替换为用户名)",
+ "user-filter-placeholder": "例如 (uid=%s)",
+ "user-info-url": "用户信息 URL",
+ "user-info-url-description": "用于通过 accessToken 获取用户信息的 API 地址",
+ "user-info-url-placeholder": "例如 https://api.github.com/user",
+ "user-information-mapping": "用户信息映射",
+ "user-information-mapping-description": "字段映射保存了来自 API 用户信息的字段名。"
+ }
}
},
- "banner": {
- "external-url": "Bytebase 还没有配置 --external-url"
+ "sql-editor": {
+ "self": "SQL 编辑器"
},
- "project": {
- "create-modal": {
- "success-prompt": "成功创建 {{name}}.",
- "project-name": "项目名称"
+ "sql-review": {
+ "configure-policy": "配置审核策略",
+ "title": "SQL 审核策略"
+ },
+ "subscription": {
+ "contact-us": "联系我们",
+ "current": "当前版本",
+ "description": "您可以在这里上传您购买的 Bytebase 证书来解锁专业版/企业版功能。",
+ "enterprise-free-trial": "企业版 {{days}} 天免费试用",
+ "expired": "已过期",
+ "expires-at": "过期时间",
+ "inquire-enterprise-plan": "企业版询价",
+ "instance-assignment": {
+ "assign-license": "分配证书",
+ "license": "证书",
+ "missing-license-attention": "请给实例分配证书以解锁该功能。",
+ "used-and-total-license": "已分配 / 总实例证书",
+ "used-and-total-user": "活跃/总用户限制"
},
- "batch": {
- "archive": {
- "success_one": "成功归档 {{count}} 个项目",
- "success_other": "成功归档 {{count}} 个项目",
- "error": "无法归档项目",
- "title_one": "归档 {{count}} 个项目?",
- "title_other": "归档 {{count}} 个项目?",
- "description": "这将归档所选项目。如有需要,您可以稍后恢复它们。"
+ "max-instance-count": "最多实例数",
+ "plan": {
+ "enterprise": {
+ "desc": "额外的安全,合规,权限功能,SLA 支持。",
+ "label": "",
+ "title": "企业版"
},
- "delete": {
- "success_one": "成功删除 {{count}} 个项目",
- "success_other": "成功删除 {{count}} 个项目",
- "error": "无法删除项目",
- "title_one": "删除 {{count}} 个项目?",
- "title_other": "删除 {{count}} 个项目?",
- "description": "这将永久删除所选项目,并将所有数据库移动到默认项目。",
- "warning": "此操作无法撤消。包括工单、配置和历史记录在内的所有项目数据将被永久删除。"
+ "free": {
+ "desc": "团队中心化管理数据库生命周期的核心能力。",
+ "label": "",
+ "title": "社区版"
},
- "selected_one": "已选择 {{count}} 个项目",
- "selected_other": "已选择 {{count}} 个项目"
+ "team": {
+ "desc": "更多协同和管控能力,进阶的数据库生命周期管理。",
+ "label": "",
+ "title": "专业版"
+ },
+ "title": "版本",
+ "try": "免费试用"
},
- "filter-projects": "过滤项目",
- "table": {
- "name": "名称"
+ "plan-compare": "比较不同版本的功能,寻找适合您的方案",
+ "purchase": {
+ "accept-terms-prefix": "我接受",
+ "and": "和",
+ "billing-period": "账单周期",
+ "cancel": "取消订阅",
+ "cancel-confirm": "确定要取消订阅吗?",
+ "cancel-pending": "您的订阅已取消,将于 {{date}} 到期。",
+ "canceled": "订阅已取消",
+ "custom": "自定义",
+ "discount": {
+ "month-off": "{{value}} 个月免费",
+ "percentage-off": "首月 {{value}}% 优惠",
+ "price-off": "减 ${{value}}"
+ },
+ "enterprise-description": "安全合规地扩展您的业务。",
+ "free-description": "适用于个人开发者、副业项目和实验。",
+ "manage-invoices": "管理发票",
+ "payment-info": "支付信息",
+ "pending-description": "请稍候,我们正在确认您的付款。通常只需几秒钟。",
+ "pending-title": "正在完成购买...",
+ "per-user-per-month": "/ 用户 / 月",
+ "privacy-policy": "隐私政策",
+ "pro-description": "适用于构建生产级应用的团队。",
+ "seats": "用户数",
+ "see-comparison": "查看详细功能对比",
+ "subscribe": "立即订阅",
+ "terms-of-service": "服务条款",
+ "total-price": "总价",
+ "update": "更新订阅"
+ },
+ "request-n-days-trial": "申请 {{days}} 天试用 (无需信用卡)",
+ "require-subscription": "这个功能需要{{requiredPlan}}订阅,请购买 Bytebase 证书来解锁该功能。",
+ "required-plan-with-trial": "这个功能需要{{requiredPlan}}订阅,{{startTrial}}",
+ "trial-for-days": "您可以开启 {{days}} 天的免费试用 - 无需任何信用卡或预付费。",
+ "trialing": "试用期",
+ "try-for-free": "免费试用",
+ "update": {
+ "failure": {
+ "description": "请检查证书是否有效",
+ "title": "证书更新失败"
+ },
+ "success": {
+ "description": "订阅版高级功能已解锁",
+ "title": "证书更新成功"
+ }
+ },
+ "upload-license": "上传证书",
+ "usage": {
+ "instance-count": {
+ "runoutof": "已用尽全部 {{total}} 个实例额度。",
+ "title": "实例数量限制"
+ },
+ "user-count": {
+ "remaining": "当前总用户额度为 {{total}},目前仅剩 {{count}} 个份额可用。",
+ "runoutof": "已用尽全部 {{total}} 个用户额度。",
+ "title": "用户数量限制",
+ "upgrade": "升级来获取更多用户额度。"
+ }
}
},
- "resource": {
- "delete-warning-with-resources": "以下资源使用了“{{name}}”:",
- "delete-warning-retry": "请将其从这些资源中删除,然后重试。",
- "delete-warning": "“{{name}}”将被删除。此操作无法撤消。"
- },
- "sql-editor": {
- "self": "SQL 编辑器"
- },
- "create-db": {
- "cluster": "集群",
- "database-owner-name": "数据库所有者",
- "new-collection-name": "新集合名称",
- "new-database-name": "新数据库名称",
- "reserved-db-error": "{{databaseName}} 是一个预留名称"
- },
- "issue": {
- "labels": "工单标签"
+ "two-factor": {
+ "enabled": "双重认证已开启"
}
}
diff --git a/frontend/src/react/pages/settings/UsersPage.tsx b/frontend/src/react/pages/settings/UsersPage.tsx
new file mode 100644
index 0000000000..40c9fe373e
--- /dev/null
+++ b/frontend/src/react/pages/settings/UsersPage.tsx
@@ -0,0 +1,3489 @@
+import { create } from "@bufbuild/protobuf";
+import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
+import { isEqual } from "lodash-es";
+import {
+ Building2,
+ Check,
+ ChevronDown,
+ ChevronRight,
+ CircleAlert,
+ CircleCheck,
+ Copy,
+ Eye,
+ EyeOff,
+ Pencil,
+ Plus,
+ Search,
+ Settings,
+ Trash2,
+ Undo2,
+ Users,
+ X,
+} from "lucide-react";
+import React, {
+ useCallback,
+ useEffect,
+ useMemo,
+ useRef,
+ useState,
+} from "react";
+import { useTranslation } from "react-i18next";
+import type { MemberBinding } from "@/components/Member/types";
+import { getMemberBindings } from "@/components/Member/utils";
+import { ComponentPermissionGuard } from "@/react/components/ComponentPermissionGuard";
+import { FeatureBadge } from "@/react/components/FeatureBadge";
+import {
+ Alert,
+ AlertDescription,
+ AlertTitle,
+} from "@/react/components/ui/alert";
+import { Badge } from "@/react/components/ui/badge";
+import { Button } from "@/react/components/ui/button";
+import { Input } from "@/react/components/ui/input";
+import {
+ Tabs,
+ TabsList,
+ TabsPanel,
+ TabsTrigger,
+} from "@/react/components/ui/tabs";
+import { Tooltip } from "@/react/components/ui/tooltip";
+import { useClickOutside } from "@/react/hooks/useClickOutside";
+import { useEscapeKey } from "@/react/hooks/useEscapeKey";
+import {
+ getPageSizeOptions,
+ useSessionPageSize,
+} from "@/react/hooks/useSessionPageSize";
+import { useVueState } from "@/react/hooks/useVueState";
+import { cn } from "@/react/lib/utils";
+import { router } from "@/router";
+import { WORKSPACE_ROUTE_USER_PROFILE } from "@/router/dashboard/workspaceRoutes";
+import { SETTING_ROUTE_WORKSPACE_GENERAL } from "@/router/dashboard/workspaceSetting";
+import {
+ pushNotification,
+ useActuatorV1Store,
+ useCurrentUserV1,
+ useGroupStore,
+ useRoleStore,
+ useServiceAccountStore,
+ useSettingV1Store,
+ useSubscriptionV1Store,
+ useUserStore,
+ useWorkloadIdentityStore,
+ useWorkspaceV1Store,
+} from "@/store";
+import {
+ extractUserEmail,
+ getUserFullNameByType,
+ groupNamePrefix,
+} from "@/store/modules/v1/common";
+import {
+ AccountType,
+ ALL_USERS_USER_EMAIL,
+ getAccountTypeByEmail,
+ getUserEmailInBinding,
+ UNKNOWN_USER_NAME,
+ userBindingPrefix,
+} from "@/types";
+import {
+ PRESET_PROJECT_ROLES,
+ PRESET_ROLES,
+ PRESET_WORKSPACE_ROLES,
+ PresetRoleType,
+} from "@/types/iam";
+import { State } from "@/types/proto-es/v1/common_pb";
+import type { Group, GroupMember } from "@/types/proto-es/v1/group_service_pb";
+import {
+ GroupMember_Role,
+ GroupMemberSchema,
+ GroupSchema,
+} from "@/types/proto-es/v1/group_service_pb";
+import { PlanFeature } from "@/types/proto-es/v1/subscription_service_pb";
+import type { User } from "@/types/proto-es/v1/user_service_pb";
+import {
+ UpdateUserRequestSchema,
+ UserSchema,
+} from "@/types/proto-es/v1/user_service_pb";
+import {
+ displayRoleDescription,
+ displayRoleTitle,
+ hasWorkspacePermissionV2,
+ isValidEmail,
+ sortRoles,
+} from "@/utils";
+
+// ============================================================
+// usePagedData hook
+// ============================================================
+
+function usePagedData<T extends { name: string }>({
+ sessionKey,
+ fetchList,
+ enabled = true,
+}: {
+ sessionKey: string;
+ fetchList: (params: {
+ pageSize: number;
+ pageToken: string;
+ }) => Promise<{ list: T[]; nextPageToken?: string }>;
+ enabled?: boolean;
+}) {
+ const [pageSize, setPageSize] = useSessionPageSize(sessionKey);
+ const pageSizeOptions = getPageSizeOptions();
+
+ const [dataList, setDataList] = useState<T[]>([]);
+ const [isLoading, setIsLoading] = useState(true);
+ const [isFetchingMore, setIsFetchingMore] = useState(false);
+ const [hasFetched, setHasFetched] = useState(false);
+ const [hasMore, setHasMore] = useState(false);
+
+ const abortRef = useRef<AbortController | null>(null);
+ const fetchIdRef = useRef(0);
+ const nextPageTokenRef = useRef("");
+
+ const doFetch = useCallback(
+ async (isRefresh: boolean) => {
+ const currentFetchId = ++fetchIdRef.current;
+ abortRef.current?.abort();
+ const controller = new AbortController();
+ abortRef.current = controller;
+
+ if (isRefresh) {
+ setIsLoading(true);
+ } else {
+ setIsFetchingMore(true);
+ }
+
+ try {
+ const token = isRefresh ? "" : nextPageTokenRef.current;
+ const result = await fetchList({ pageSize, pageToken: token });
+ if (controller.signal.aborted || currentFetchId !== fetchIdRef.current)
+ return;
+ setDataList((prev) =>
+ isRefresh ? result.list : [...prev, ...result.list]
+ );
+ nextPageTokenRef.current = result.nextPageToken ?? "";
+ setHasMore(Boolean(result.nextPageToken));
+ } catch (e) {
+ if (e instanceof Error && e.name === "AbortError") return;
+ console.error(e);
+ } finally {
+ if (currentFetchId === fetchIdRef.current) {
+ setIsLoading(false);
+ setIsFetchingMore(false);
+ setHasFetched(true);
+ }
+ }
+ },
+ [fetchList, pageSize]
+ );
+
+ const loadMore = useCallback(() => {
+ if (hasMore && !isFetchingMore) {
+ doFetch(false);
+ }
+ }, [hasMore, isFetchingMore, doFetch]);
+
+ const refresh = useCallback(() => {
+ doFetch(true);
+ }, [doFetch]);
+
+ const updateCache = useCallback((items: T[]) => {
+ setDataList((prev) => {
+ const next = [...prev];
+ for (const item of items) {
+ const idx = next.findIndex((d) => d.name === item.name);
+ if (idx >= 0) {
+ next[idx] = item;
+ } else {
+ next.push(item);
+ }
+ }
+ return next;
+ });
+ }, []);
+
+ const removeCache = useCallback((item: T) => {
+ setDataList((prev) => prev.filter((d) => d.name !== item.name));
+ }, []);
+
+ // Fetch on mount and when fetchList/pageSize changes (handles search text reactivity)
+ const isFirstLoad = useRef(true);
+ useEffect(() => {
+ if (!enabled) return;
+ if (isFirstLoad.current) {
+ isFirstLoad.current = false;
+ doFetch(true);
+ return;
+ }
+ const timer = setTimeout(() => doFetch(true), 300);
+ return () => clearTimeout(timer);
+ }, [doFetch, enabled]);
+
+ useEffect(() => {
+ return () => {
+ abortRef.current?.abort();
+ };
+ }, []);
+
+ return {
+ dataList,
+ isLoading: enabled && (isLoading || !hasFetched),
+ isFetchingMore,
+ hasMore,
+ loadMore,
+ refresh,
+ updateCache,
+ removeCache,
+ pageSize,
+ pageSizeOptions,
+ onPageSizeChange: setPageSize,
+ };
+}
+
+// ============================================================
+// PagedTableFooter
+// ============================================================
+
+function PagedTableFooter({
+ pageSize,
+ pageSizeOptions,
+ onPageSizeChange,
+ hasMore,
+ isFetchingMore,
+ onLoadMore,
+}: {
+ pageSize: number;
+ pageSizeOptions: number[];
+ onPageSizeChange: (size: number) => void;
+ hasMore: boolean;
+ isFetchingMore: boolean;
+ onLoadMore: () => void;
+}) {
+ const { t } = useTranslation();
+
+ return (
+ <div className="flex items-center justify-end gap-x-2">
+ <div className="flex items-center gap-x-2">
+ <span className="text-sm text-control-light">
+ {t("common.rows-per-page")}
+ </span>
+ <select
+ value={pageSize}
+ onChange={(e) => onPageSizeChange(Number(e.target.value))}
+ className="border border-control-border rounded-sm text-sm pl-2 pr-6 py-1 min-w-[5rem]"
+ >
+ {pageSizeOptions.map((opt) => (
+ <option key={opt} value={opt}>
+ {opt}
+ </option>
+ ))}
+ </select>
+ </div>
+ {hasMore && (
+ <Button
+ variant="ghost"
+ size="sm"
+ disabled={isFetchingMore}
+ onClick={onLoadMore}
+ >
+ <span className="text-sm text-control-light">
+ {isFetchingMore ? t("common.loading") : t("common.load-more")}
+ </span>
+ </Button>
+ )}
+ </div>
+ );
+}
+
+// ============================================================
+// UserTable
+// ============================================================
+
+function UserTable({
+ users,
+ onUserUpdated,
+ onUserSelected,
+ onGroupSelected,
+}: {
+ users: User[];
+ onUserUpdated: (user: User) => void;
+ onUserSelected?: (user: User) => void;
+ onGroupSelected?: (group: Group) => void;
+}) {
+ const { t } = useTranslation();
+ const currentUser = useVueState(() => useCurrentUserV1().value);
+ const groupStore = useGroupStore();
+ const userStore = useUserStore();
+ const serviceAccountStore = useServiceAccountStore();
+ const workloadIdentityStore = useWorkloadIdentityStore();
+
+ // Batch fetch groups when user list changes
+ useEffect(() => {
+ const allGroupNames = users.flatMap((u) => u.groups);
+ if (allGroupNames.length > 0) {
+ groupStore.batchGetOrFetchGroups(allGroupNames);
+ }
+ }, [users, groupStore]);
+
+ const handleDeactivate = async (user: User) => {
+ const accountType = getAccountTypeByEmail(user.email);
+ const fullName = getUserFullNameByType(user);
+
+ const confirmed = window.confirm(
+ t("settings.members.action.deactivate-confirm-title")
+ );
+ if (!confirmed) return;
+
+ try {
+ if (accountType === AccountType.SERVICE_ACCOUNT) {
+ await serviceAccountStore.deleteServiceAccount(fullName);
+ } else if (accountType === AccountType.WORKLOAD_IDENTITY) {
+ await workloadIdentityStore.deleteWorkloadIdentity(fullName);
+ } else {
+ await userStore.archiveUser(fullName);
+ }
+
+ const updated = create(UserSchema, { ...user, state: State.DELETED });
+ onUserUpdated(updated);
+
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.updated"),
+ });
+ } catch {
+ // error already shown by store
+ }
+ };
+
+ const handleRestore = async (user: User) => {
+ const accountType = getAccountTypeByEmail(user.email);
+ const fullName = getUserFullNameByType(user);
+
+ try {
+ if (accountType === AccountType.SERVICE_ACCOUNT) {
+ await serviceAccountStore.undeleteServiceAccount(fullName);
+ } else if (accountType === AccountType.WORKLOAD_IDENTITY) {
+ await workloadIdentityStore.undeleteWorkloadIdentity(fullName);
+ } else {
+ await userStore.restoreUser(fullName);
+ }
+
+ const updated = create(UserSchema, { ...user, state: State.ACTIVE });
+ onUserUpdated(updated);
+
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.updated"),
+ });
+ } catch {
+ // error already shown by store
+ }
+ };
+
+ const handleView = (user: User) => {
+ const accountType = getAccountTypeByEmail(user.email);
+ if (accountType === AccountType.USER && onUserSelected) {
+ onUserSelected(user);
+ } else {
+ router.push({
+ name: WORKSPACE_ROUTE_USER_PROFILE,
+ params: { principalEmail: user.email },
+ });
+ }
+ };
+
+ const getDeletePermission = (accountType: AccountType) => {
+ switch (accountType) {
+ case AccountType.SERVICE_ACCOUNT:
+ return "bb.serviceAccounts.delete";
+ case AccountType.WORKLOAD_IDENTITY:
+ return "bb.workloadIdentities.delete";
+ default:
+ return "bb.users.delete";
+ }
+ };
+
+ const getViewPermission = (accountType: AccountType) => {
+ switch (accountType) {
+ case AccountType.SERVICE_ACCOUNT:
+ return "bb.serviceAccounts.get";
+ case AccountType.WORKLOAD_IDENTITY:
+ return "bb.workloadIdentities.get";
+ default:
+ return "bb.users.get";
+ }
+ };
+
+ const getUndeletePermission = (accountType: AccountType) => {
+ switch (accountType) {
+ case AccountType.SERVICE_ACCOUNT:
+ return "bb.serviceAccounts.undelete";
+ case AccountType.WORKLOAD_IDENTITY:
+ return "bb.workloadIdentities.undelete";
+ default:
+ return "bb.users.undelete";
+ }
+ };
+
+ const getAccountTypeLabel = (accountType: AccountType) => {
+ switch (accountType) {
+ case AccountType.SERVICE_ACCOUNT:
+ return t("settings.members.service-account");
+ case AccountType.WORKLOAD_IDENTITY:
+ return t("settings.members.workload-identity");
+ default:
+ return "";
+ }
+ };
+
+ if (users.length === 0) {
+ return (
+ <div className="py-8 text-center text-control-light text-sm">
+ {t("common.no-data")}
+ </div>
+ );
+ }
+
+ return (
+ <div className="border rounded-sm overflow-hidden">
+ <table className="w-full text-sm">
+ <thead>
+ <tr className="border-b bg-control-bg">
+ <th className="px-4 py-2 text-left font-medium whitespace-nowrap">
+ {t("settings.members.table.account")}
+ </th>
+ <th className="px-4 py-2 text-left font-medium whitespace-nowrap">
+ {t("settings.members.table.groups")}
+ </th>
+ <th className="px-4 py-2 text-right font-medium whitespace-nowrap">
+ {t("common.operations")}
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ {users.map((user, i) => {
+ const accountType = getAccountTypeByEmail(user.email);
+ const isDeleted = user.state === State.DELETED;
+ const isSelf = currentUser.name === user.name;
+
+ return (
+ <tr
+ key={user.name}
+ className={`border-b last:border-b-0 ${i % 2 === 1 ? "bg-gray-50" : ""}`}
+ >
+ {/* Account column */}
+ <td className="px-4 py-2">
+ <div className="flex items-center gap-x-2">
+ <div className="flex flex-col">
+ <div className="flex items-center gap-x-1.5">
+ <span
+ className={
+ isDeleted ? "line-through text-control-light" : ""
+ }
+ >
+ {user.title}
+ </span>
+ {isSelf && (
+ <Badge
+ variant="secondary"
+ className="text-xs px-1.5 py-0"
+ >
+ {t("common.you")}
+ </Badge>
+ )}
+ {accountType !== AccountType.USER && (
+ <Badge className="text-xs px-1.5 py-0">
+ {getAccountTypeLabel(accountType)}
+ </Badge>
+ )}
+ {user.mfaEnabled && (
+ <Badge
+ variant="success"
+ className="text-xs px-1.5 py-0"
+ >
+ {t("two-factor.enabled")}
+ </Badge>
+ )}
+ {user.profile?.source && (
+ <Badge className="text-xs px-1.5 py-0">
+ {user.profile.source}
+ </Badge>
+ )}
+ </div>
+ <span className="textinfolabel text-xs">
+ {user.email}
+ </span>
+ </div>
+ </div>
+ </td>
+
+ {/* Groups column */}
+ <td className="px-4 py-2">
+ <UserGroupsCell
+ user={user}
+ onGroupSelected={onGroupSelected}
+ />
+ </td>
+
+ {/* Operations column */}
+ <td className="px-4 py-2">
+ <div className="flex justify-end gap-x-1">
+ {!isDeleted && (
+ <>
+ {hasWorkspacePermissionV2(
+ getDeletePermission(accountType)
+ ) &&
+ !isSelf && (
+ <Tooltip
+ content={t(
+ "settings.members.action.deactivate-confirm-title"
+ )}
+ >
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-7 w-7 text-error hover:text-error"
+ onClick={() => handleDeactivate(user)}
+ >
+ <Trash2 className="h-4 w-4" />
+ </Button>
+ </Tooltip>
+ )}
+ {hasWorkspacePermissionV2(
+ getViewPermission(accountType)
+ ) && (
+ <Tooltip
+ content={
+ accountType === AccountType.USER
+ ? t("common.view")
+ : t("common.edit")
+ }
+ >
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-7 w-7"
+ onClick={() => handleView(user)}
+ >
+ {accountType === AccountType.USER ? (
+ <Eye className="h-4 w-4" />
+ ) : (
+ <Pencil className="h-4 w-4" />
+ )}
+ </Button>
+ </Tooltip>
+ )}
+ </>
+ )}
+ {isDeleted &&
+ hasWorkspacePermissionV2(
+ getUndeletePermission(accountType)
+ ) && (
+ <Tooltip
+ content={t(
+ "settings.members.action.reactivate-confirm-title"
+ )}
+ >
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-7 w-7"
+ onClick={() => handleRestore(user)}
+ >
+ <Undo2 className="h-4 w-4" />
+ </Button>
+ </Tooltip>
+ )}
+ </div>
+ </td>
+ </tr>
+ );
+ })}
+ </tbody>
+ </table>
+ </div>
+ );
+}
+
+// ============================================================
+// UserGroupsCell
+// ============================================================
+
+function UserGroupsCell({
+ user,
+ onGroupSelected,
+}: {
+ user: User;
+ onGroupSelected?: (group: Group) => void;
+}) {
+ const groupStore = useGroupStore();
+
+ if (!user.groups || user.groups.length === 0) {
+ return <span className="text-control-light">-</span>;
+ }
+
+ return (
+ <div className="flex flex-wrap gap-1">
+ {user.groups.map((groupName) => {
+ const group = groupStore.getGroupByIdentifier(groupName);
+ return (
+ <Badge
+ key={groupName}
+ variant="secondary"
+ className="text-xs px-1.5 py-0 cursor-pointer"
+ onClick={() => {
+ if (group && onGroupSelected) {
+ onGroupSelected(group);
+ }
+ }}
+ >
+ {group?.title || groupName}
+ </Badge>
+ );
+ })}
+ </div>
+ );
+}
+
+// ============================================================
+// Highlight helper
+// ============================================================
+
+function HighlightText({ text, keyword }: { text: string; keyword: string }) {
+ if (!keyword.trim()) return <>{text}</>;
+ const idx = text.toLowerCase().indexOf(keyword.toLowerCase());
+ if (idx < 0) return <>{text}</>;
+ return (
+ <>
+ {text.slice(0, idx)}
+ <span className="bg-yellow-100">
+ {text.slice(idx, idx + keyword.length)}
+ </span>
+ {text.slice(idx + keyword.length)}
+ </>
+ );
+}
+
+// ============================================================
+// GroupTable
+// ============================================================
+
+function GroupTable({
+ groups,
+ searchText,
+ onGroupSelected,
+ onGroupDeleted,
+}: {
+ groups: Group[];
+ searchText: string;
+ onGroupSelected: (group: Group) => void;
+ onGroupDeleted: (group: Group) => void;
+}) {
+ const { t } = useTranslation();
+ const currentUser = useVueState(() => useCurrentUserV1().value);
+ const groupStore = useGroupStore();
+ const userStore = useUserStore();
+
+ const [expandedGroups, setExpandedGroups] = useState<Set<string>>(new Set());
+ const [memberCache, setMemberCache] = useState<Map<string, User[]>>(
+ new Map()
+ );
+ const memberCacheRef = useRef(memberCache);
+ memberCacheRef.current = memberCache;
+ const loadingRef = useRef<Set<string>>(new Set());
+
+ const fetchGroupMembers = useCallback(
+ (group: Group) => {
+ if (loadingRef.current.has(group.name)) return;
+ loadingRef.current.add(group.name);
+ const memberNames = group.members.map((m) => m.member);
+ userStore
+ .batchGetOrFetchUsers(memberNames)
+ .then((users) => {
+ setMemberCache((prev) => {
+ const next = new Map(prev);
+ next.set(
+ group.name,
+ users.filter((u): u is User => !!u)
+ );
+ return next;
+ });
+ })
+ .catch(() => {
+ // Allow retry on next expand
+ })
+ .finally(() => {
+ loadingRef.current.delete(group.name);
+ });
+ },
+ [userStore]
+ );
+
+ // Invalidate member cache when groups data changes (e.g. after editing membership)
+ // and refetch members for currently expanded groups
+ const prevGroupsRef = useRef(groups);
+ useEffect(() => {
+ if (prevGroupsRef.current !== groups) {
+ prevGroupsRef.current = groups;
+ setMemberCache(new Map());
+ loadingRef.current = new Set();
+ // Refetch members for currently expanded groups
+ for (const groupName of expandedGroups) {
+ const group = groups.find((g) => g.name === groupName);
+ if (group) {
+ fetchGroupMembers(group);
+ }
+ }
+ }
+ }, [groups, expandedGroups, fetchGroupMembers]);
+
+ const toggleExpand = useCallback(
+ (group: Group) => {
+ setExpandedGroups((prev) => {
+ const next = new Set(prev);
+ if (next.has(group.name)) {
+ next.delete(group.name);
+ } else {
+ next.add(group.name);
+ }
+ return next;
+ });
+
+ // Fetch members if not cached
+ if (!memberCacheRef.current.has(group.name)) {
+ fetchGroupMembers(group);
+ }
+ },
+ [fetchGroupMembers]
+ );
+
+ const isGroupOwner = useCallback(
+ (group: Group) => {
+ return (
+ group.members.find(
+ (m) => extractUserEmail(m.member) === currentUser.email
+ )?.role === GroupMember_Role.OWNER
+ );
+ },
+ [currentUser.email]
+ );
+
+ const handleDelete = useCallback(
+ async (group: Group) => {
+ const confirmed = window.confirm(
+ t("settings.members.action.deactivate-confirm-title")
+ );
+ if (!confirmed) return;
+
+ try {
+ await groupStore.deleteGroup(group.name);
+ onGroupDeleted(group);
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.deleted"),
+ });
+ } catch {
+ // error shown by store
+ }
+ },
+ [groupStore, onGroupDeleted, t]
+ );
+
+ if (groups.length === 0) {
+ return (
+ <div className="py-8 text-center text-control-light text-sm">
+ {t("common.no-data")}
+ </div>
+ );
+ }
+
+ return (
+ <div className="border rounded-sm overflow-hidden">
+ <table className="w-full text-sm">
+ <thead>
+ <tr className="border-b bg-control-bg">
+ <th className="px-4 py-2 text-left font-medium whitespace-nowrap">
+ {t("common.groups")} / {t("common.users")}
+ </th>
+ <th className="px-4 py-2 text-right font-medium whitespace-nowrap w-16" />
+ </tr>
+ </thead>
+ <tbody>
+ {groups.map((group, i) => {
+ const isExpanded = expandedGroups.has(group.name);
+ const members = memberCache.get(group.name);
+ const canEdit =
+ isGroupOwner(group) ||
+ hasWorkspacePermissionV2("bb.groups.update");
+ const canDelete =
+ isGroupOwner(group) ||
+ hasWorkspacePermissionV2("bb.groups.delete");
+
+ return (
+ <GroupRow
+ key={group.name}
+ group={group}
+ index={i}
+ isExpanded={isExpanded}
+ members={members}
+ searchText={searchText}
+ canEdit={canEdit}
+ canDelete={canDelete}
+ onToggle={() => toggleExpand(group)}
+ onEdit={() => onGroupSelected(group)}
+ onDelete={() => handleDelete(group)}
+ />
+ );
+ })}
+ </tbody>
+ </table>
+ </div>
+ );
+}
+
+function GroupRow({
+ group,
+ index,
+ isExpanded,
+ members,
+ searchText,
+ canEdit,
+ canDelete,
+ onToggle,
+ onEdit,
+ onDelete,
+}: {
+ group: Group;
+ index: number;
+ isExpanded: boolean;
+ members: User[] | undefined;
+ searchText: string;
+ canEdit: boolean;
+ canDelete: boolean;
+ onToggle: () => void;
+ onEdit: () => void;
+ onDelete: () => void;
+}) {
+ const { t } = useTranslation();
+ const stripeBg = index % 2 === 1 ? "bg-gray-50" : "";
+
+ return (
+ <>
+ <tr className={`border-b last:border-b-0 ${stripeBg}`}>
+ <td className="px-4 py-2">
+ <div className="flex items-center gap-x-2">
+ <button
+ className="shrink-0 p-0.5 rounded hover:bg-gray-200"
+ onClick={onToggle}
+ >
+ {isExpanded ? (
+ <ChevronDown className="h-4 w-4" />
+ ) : (
+ <ChevronRight className="h-4 w-4" />
+ )}
+ </button>
+ <Users className="h-4 w-4 shrink-0 text-control-light" />
+ <div className="flex flex-col">
+ <div className="flex items-center gap-x-1.5">
+ <span>
+ <HighlightText text={group.title} keyword={searchText} />
+ </span>
+ <span className="text-control-light text-xs">
+ (
+ {t("settings.members.groups.n-members", {
+ n: group.members.length,
+ })}
+ )
+ </span>
+ {group.source && (
+ <Badge className="text-xs px-1.5 py-0">{group.source}</Badge>
+ )}
+ </div>
+ <span className="textinfolabel text-xs">
+ <HighlightText text={group.name} keyword={searchText} />
+ </span>
+ </div>
+ </div>
+ </td>
+ <td className="px-4 py-2">
+ <div className="flex justify-end gap-x-1">
+ {canEdit && (
+ <Tooltip content={t("common.edit")}>
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-7 w-7"
+ onClick={onEdit}
+ >
+ <Pencil className="h-4 w-4" />
+ </Button>
+ </Tooltip>
+ )}
+ {canDelete && (
+ <Tooltip content={t("common.delete")}>
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-7 w-7 text-error hover:text-error"
+ onClick={onDelete}
+ >
+ <Trash2 className="h-4 w-4" />
+ </Button>
+ </Tooltip>
+ )}
+ </div>
+ </td>
+ </tr>
+ {isExpanded &&
+ members &&
+ members.map((user) => {
+ const memberInfo = group.members.find(
+ (m) => extractUserEmail(m.member) === user.email
+ );
+ const isOwner = memberInfo?.role === GroupMember_Role.OWNER;
+
+ return (
+ <tr
+ key={user.name}
+ className={`border-b last:border-b-0 ${stripeBg}`}
+ >
+ <td className="px-4 py-2 pl-14">
+ <div className="flex items-center gap-x-2">
+ <span>{user.title}</span>
+ <span className="textinfolabel text-xs">{user.email}</span>
+ {isOwner ? (
+ <Badge variant="secondary" className="text-xs px-1.5 py-0">
+ {t("settings.members.groups.form.role.owner")}
+ </Badge>
+ ) : (
+ <Badge variant="default" className="text-xs px-1.5 py-0">
+ {t("settings.members.groups.form.role.member")}
+ </Badge>
+ )}
+ </div>
+ </td>
+ <td />
+ </tr>
+ );
+ })}
+ {isExpanded && !members && (
+ <tr className={stripeBg}>
+ <td colSpan={2} className="px-4 py-2 pl-14">
+ <div className="flex items-center gap-x-2 text-control-light text-sm">
+ <div className="animate-spin h-4 w-4 border-2 border-accent border-t-transparent rounded-full" />
+ {t("common.loading")}
+ </div>
+ </td>
+ </tr>
+ )}
+ </>
+ );
+}
+
+// ============================================================
+// RoleMultiSelect
+// ============================================================
+
+function RoleMultiSelect({
+ value,
+ onChange,
+ disabled,
+}: {
+ value: string[];
+ onChange: (roles: string[]) => void;
+ disabled?: boolean;
+}) {
+ const { t } = useTranslation();
+ const roleStore = useRoleStore();
+ const subscriptionStore = useSubscriptionV1Store();
+ const roleList = useVueState(() => [...roleStore.roleList]);
+ const hasCustomRoleFeature = useVueState(() =>
+ subscriptionStore.hasInstanceFeature(PlanFeature.FEATURE_CUSTOM_ROLES)
+ );
+ const [open, setOpen] = useState(false);
+ const [search, setSearch] = useState("");
+ const containerRef = useRef<HTMLDivElement>(null);
+ const inputRef = useRef<HTMLInputElement>(null);
+
+ const handleClickOutside = useCallback(() => {
+ setOpen(false);
+ setSearch("");
+ }, []);
+ useClickOutside(containerRef, open, handleClickOutside);
+
+ const groups = useMemo(() => {
+ const kw = search.toLowerCase();
+ const matchRole = (name: string) =>
+ !kw || displayRoleTitle(name).toLowerCase().includes(kw);
+
+ const workspace = PRESET_WORKSPACE_ROLES.filter(matchRole);
+ const project = PRESET_PROJECT_ROLES.filter(matchRole);
+ const custom = roleList
+ .filter((r) => !PRESET_ROLES.includes(r.name))
+ .map((r) => r.name)
+ .filter(matchRole);
+
+ const result: { label: string; roles: string[] }[] = [];
+ if (workspace.length > 0)
+ result.push({
+ label: t("role.workspace-roles.self"),
+ roles: workspace,
+ });
+ if (project.length > 0)
+ result.push({ label: t("role.project-roles.self"), roles: project });
+ if (custom.length > 0)
+ result.push({ label: t("role.custom-roles.self"), roles: custom });
+ return result;
+ }, [roleList, search, t]);
+
+ const isCustomRole = (name: string) => !PRESET_ROLES.includes(name);
+
+ const toggle = (roleName: string) => {
+ if (disabled) return;
+ // Block selecting custom roles without the plan feature
+ if (isCustomRole(roleName) && !hasCustomRoleFeature) return;
+ if (value.includes(roleName)) {
+ onChange(value.filter((r) => r !== roleName));
+ } else {
+ onChange([...value, roleName]);
+ }
+ };
+
+ const remove = (roleName: string) => {
+ if (disabled) return;
+ onChange(value.filter((r) => r !== roleName));
+ };
+
+ return (
+ <div ref={containerRef} className="relative">
+ {/* Trigger */}
+ <div
+ className={cn(
+ "flex flex-wrap items-center gap-1 min-h-[2.25rem] w-full rounded-xs border border-control-border bg-transparent px-2 py-1 text-sm cursor-pointer",
+ disabled && "opacity-50 cursor-not-allowed",
+ open && "ring-2 ring-accent border-accent"
+ )}
+ onClick={() => {
+ if (!disabled) {
+ setOpen(!open);
+ requestAnimationFrame(() => inputRef.current?.focus());
+ }
+ }}
+ >
+ {value.map((roleName) => (
+ <span
+ key={roleName}
+ className="inline-flex items-center gap-x-1 rounded-xs bg-gray-100 px-1.5 py-0.5 text-xs"
+ >
+ {displayRoleTitle(roleName)}
+ {!disabled && (
+ <button
+ type="button"
+ className="hover:text-error"
+ onClick={(e) => {
+ e.stopPropagation();
+ remove(roleName);
+ }}
+ >
+ <X className="h-3 w-3" />
+ </button>
+ )}
+ </span>
+ ))}
+ {open && (
+ <input
+ ref={inputRef}
+ className="flex-1 min-w-[4rem] outline-hidden text-sm bg-transparent"
+ value={search}
+ onChange={(e) => setSearch(e.target.value)}
+ placeholder={
+ value.length === 0
+ ? t("settings.members.select-role", { count: 2 })
+ : ""
+ }
+ />
+ )}
+ {!open && value.length === 0 && (
+ <span className="text-control-placeholder">
+ {t("settings.members.select-role", { count: 2 })}
+ </span>
+ )}
+ <ChevronDown className="ml-auto h-4 w-4 shrink-0 text-control-light" />
+ </div>
+
+ {/* Dropdown */}
+ {open && (
+ <div className="absolute z-50 mt-1 w-full bg-white border border-control-border rounded-sm shadow-lg max-h-60 overflow-auto">
+ {groups.length === 0 && (
+ <div className="px-3 py-2 text-sm text-control-light">
+ {t("common.no-data")}
+ </div>
+ )}
+ {groups.map((group) => (
+ <div key={group.label}>
+ <div className="px-3 py-1.5 text-xs font-medium text-control-light uppercase tracking-wide bg-gray-50">
+ {group.label}
+ </div>
+ {group.roles.map((roleName) => {
+ const selected = value.includes(roleName);
+ const isCustom = isCustomRole(roleName);
+ const blocked = isCustom && !hasCustomRoleFeature;
+ return (
+ <div
+ key={roleName}
+ className={cn(
+ "flex items-center gap-x-2 px-3 py-1.5 text-sm hover:bg-gray-50",
+ selected && "bg-accent/5",
+ blocked
+ ? "opacity-50 cursor-not-allowed"
+ : "cursor-pointer"
+ )}
+ onClick={() => toggle(roleName)}
+ >
+ <div
+ className={cn(
+ "h-4 w-4 rounded-xs border flex items-center justify-center shrink-0",
+ selected
+ ? "bg-accent border-accent text-white"
+ : "border-control-border"
+ )}
+ >
+ {selected && <Check className="h-3 w-3" />}
+ </div>
+ <div className="flex flex-col">
+ <div className="flex items-center gap-x-1">
+ <span>{displayRoleTitle(roleName)}</span>
+ {blocked && (
+ <FeatureBadge
+ feature={PlanFeature.FEATURE_CUSTOM_ROLES}
+ clickable={false}
+ />
+ )}
+ </div>
+ {displayRoleDescription(roleName) && (
+ <span className="text-xs text-control-light">
+ {displayRoleDescription(roleName)}
+ </span>
+ )}
+ </div>
+ </div>
+ );
+ })}
+ </div>
+ ))}
+ </div>
+ )}
+ </div>
+ );
+}
+
+// ============================================================
+// CreateUserDrawer
+// ============================================================
+
+function extractUserTitle(email: string): string {
+ const atIndex = email.indexOf("@");
+ return atIndex !== -1 ? email.substring(0, atIndex) : email;
+}
+
+function CreateUserDrawer({
+ user,
+ onClose,
+ onCreated,
+ onUpdated,
+}: {
+ user: User | undefined;
+ onClose: () => void;
+ onCreated: (user: User) => void;
+ onUpdated: (user: User) => void;
+}) {
+ const { t } = useTranslation();
+ const userStore = useUserStore();
+ const workspaceStore = useWorkspaceV1Store();
+ const settingV1Store = useSettingV1Store();
+
+ const userMapToRoles = useVueState(() => workspaceStore.userMapToRoles);
+ const passwordRestriction = useVueState(
+ () => settingV1Store.workspaceProfile.passwordRestriction
+ );
+ const enforceIdentityDomain = useVueState(
+ () => settingV1Store.workspaceProfile.enforceIdentityDomain
+ );
+ const workspaceDomains = useVueState(
+ () => settingV1Store.workspaceProfile.domains
+ );
+
+ const isEditMode =
+ !!user && user.name !== "" && !user.name.endsWith("/unknown");
+
+ const allowUpdate =
+ !isEditMode || hasWorkspacePermissionV2("bb.users.update");
+
+ const initialRoles = useMemo(() => {
+ if (!user || !isEditMode) {
+ return [PresetRoleType.WORKSPACE_MEMBER];
+ }
+ const roles = userMapToRoles.get(getUserFullNameByType(user));
+ return roles ? [...roles] : [];
+ }, [user, isEditMode, userMapToRoles]);
+
+ const [title, setTitle] = useState(user?.title ?? "");
+ const [email, setEmail] = useState(user?.email ?? "");
+ const [phone, setPhone] = useState(user?.phone ?? "");
+ const [password, setPassword] = useState("");
+ const [passwordConfirm, setPasswordConfirm] = useState("");
+ const [roles, setRoles] = useState<string[]>(initialRoles);
+ const [isRequesting, setIsRequesting] = useState(false);
+ const [showPassword, setShowPassword] = useState(false);
+
+ useEscapeKey(true, onClose);
+
+ // Password validation
+ const passwordChecks = useMemo(() => {
+ const minLength = passwordRestriction?.minLength ?? 8;
+ const checks: { text: string; matched: boolean }[] = [
+ {
+ text: t("settings.general.workspace.password-restriction.min-length", {
+ min: minLength,
+ }),
+ matched: password.length >= minLength,
+ },
+ ];
+ if (passwordRestriction?.requireNumber) {
+ checks.push({
+ text: t(
+ "settings.general.workspace.password-restriction.require-number"
+ ),
+ matched: /[0-9]+/.test(password),
+ });
+ }
+ if (passwordRestriction?.requireUppercaseLetter) {
+ checks.push({
+ text: t(
+ "settings.general.workspace.password-restriction.require-uppercase-letter"
+ ),
+ matched: /[A-Z]+/.test(password),
+ });
+ } else if (passwordRestriction?.requireLetter) {
+ checks.push({
+ text: t(
+ "settings.general.workspace.password-restriction.require-letter"
+ ),
+ matched: /[a-zA-Z]+/.test(password),
+ });
+ }
+ if (passwordRestriction?.requireSpecialCharacter) {
+ checks.push({
+ text: t(
+ "settings.general.workspace.password-restriction.require-special-character"
+ ),
+ matched: /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]+/.test(password),
+ });
+ }
+ return checks;
+ }, [password, passwordRestriction, t]);
+
+ const passwordHint =
+ password.length > 0 && passwordChecks.some((c) => !c.matched);
+ const passwordMismatch = password.length > 0 && password !== passwordConfirm;
+
+ const emailDomainValid = useMemo(() => {
+ if (isEditMode) return true;
+ if (!enforceIdentityDomain || workspaceDomains.length === 0) return true;
+ const atIdx = email.indexOf("@");
+ if (atIdx < 0) return false;
+ const domain = email.slice(atIdx + 1);
+ return workspaceDomains.includes(domain);
+ }, [email, isEditMode, enforceIdentityDomain, workspaceDomains]);
+
+ const allowConfirm =
+ email.length > 0 &&
+ emailDomainValid &&
+ !passwordHint &&
+ !passwordMismatch &&
+ (isEditMode || password.length > 0);
+
+ const hasPermission = hasWorkspacePermissionV2(
+ isEditMode ? "bb.users.update" : "bb.users.create"
+ );
+
+ const handleSubmit = async () => {
+ if (!allowConfirm || !hasPermission) return;
+ setIsRequesting(true);
+ try {
+ if (isEditMode) {
+ await handleUpdate();
+ } else {
+ await handleCreate();
+ }
+ } catch {
+ // error shown by store
+ } finally {
+ setIsRequesting(false);
+ }
+ };
+
+ const handleCreate = async () => {
+ const createdUser = await userStore.createUser({
+ ...create(UserSchema, {}),
+ title: title || extractUserTitle(email),
+ email,
+ phone,
+ password,
+ });
+ if (roles.length > 0) {
+ await workspaceStore.patchIamPolicy([
+ {
+ member: getUserEmailInBinding(createdUser.email),
+ roles,
+ },
+ ]);
+ }
+ onCreated(createdUser);
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.created"),
+ });
+ onClose();
+ };
+
+ const handleUpdate = async () => {
+ if (!user) return;
+
+ const updateMask: string[] = [];
+ const payload = create(UserSchema, {
+ ...user,
+ title,
+ phone,
+ password,
+ });
+ if (title !== user.title) updateMask.push("title");
+ if (phone !== user.phone) updateMask.push("phone");
+ if (password) updateMask.push("password");
+
+ let updatedUser: User = user;
+
+ if (updateMask.length > 0) {
+ updatedUser = await userStore.updateUser(
+ create(UpdateUserRequestSchema, {
+ user: payload,
+ updateMask: create(FieldMaskSchema, { paths: updateMask }),
+ })
+ );
+ }
+
+ if (!isEqual([...initialRoles].sort(), [...roles].sort())) {
+ await workspaceStore.patchIamPolicy([
+ {
+ member: getUserEmailInBinding(updatedUser.email),
+ roles,
+ },
+ ]);
+ }
+
+ onUpdated(updatedUser);
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.updated"),
+ });
+ onClose();
+ };
+
+ return (
+ <>
+ {/* Backdrop */}
+ <div className="fixed inset-0 z-40 bg-black/30" onClick={onClose} />
+
+ {/* Drawer */}
+ <div
+ role="dialog"
+ aria-modal="true"
+ className="fixed inset-y-0 right-0 z-50 w-[40rem] max-w-[100vw] bg-white shadow-xl flex flex-col"
+ >
+ {/* Header */}
+ <div className="flex items-center justify-between px-6 py-4 border-b">
+ <h2 className="text-lg font-medium">
+ {isEditMode
+ ? t("settings.members.update-user")
+ : t("settings.members.add-user")}
+ </h2>
+ <Button variant="ghost" size="icon" onClick={onClose}>
+ <X className="h-5 w-5" />
+ </Button>
+ </div>
+
+ {/* Content */}
+ <div className="flex-1 overflow-auto px-6 py-6">
+ <div className="flex flex-col gap-y-6">
+ {/* Name */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("common.name")}
+ </label>
+ <Input
+ value={title}
+ onChange={(e) => setTitle(e.target.value)}
+ placeholder={t("common.name")}
+ maxLength={200}
+ disabled={!allowUpdate}
+ />
+ </div>
+
+ {/* Email */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("common.email")}
+ <span className="ml-0.5 text-error">*</span>
+ </label>
+ <Input
+ type="email"
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ disabled={isEditMode}
+ />
+ </div>
+
+ {/* Roles */}
+ {hasWorkspacePermissionV2("bb.workspaces.setIamPolicy") && (
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.table.roles")}
+ </label>
+ <RoleMultiSelect
+ value={roles}
+ onChange={setRoles}
+ disabled={false}
+ />
+ </div>
+ )}
+
+ {/* Phone */}
+ <div className="flex flex-col gap-y-2">
+ <div>
+ <label className="block text-sm font-medium text-control">
+ {t("settings.profile.phone")}
+ </label>
+ <span className="textinfolabel text-sm">
+ {t("settings.profile.phone-tips")}
+ </span>
+ </div>
+ <Input
+ type="tel"
+ value={phone}
+ onChange={(e) => setPhone(e.target.value)}
+ autoComplete="new-password"
+ disabled={!allowUpdate}
+ />
+ </div>
+
+ {/* Password */}
+ <div className="flex flex-col gap-y-6">
+ <div>
+ <label className="block text-sm font-medium text-control">
+ {t("settings.profile.password")}
+ <span className="ml-0.5 text-error">*</span>
+ </label>
+ <span
+ className={`flex items-center gap-x-1 textinfolabel text-sm ${passwordHint ? "text-error" : ""}`}
+ >
+ {t("settings.profile.password-hint")}
+ <Tooltip
+ content={
+ <ul className="list-none text-sm">
+ {passwordChecks.map((check, i) => (
+ <li key={i} className="flex gap-x-1 items-center">
+ {check.matched ? (
+ <CircleCheck className="w-4 text-green-400" />
+ ) : (
+ <CircleAlert className="w-4 text-red-400" />
+ )}
+ {check.text}
+ </li>
+ ))}
+ </ul>
+ }
+ >
+ <CircleAlert className="w-4 cursor-help" />
+ </Tooltip>
+ </span>
+ <div className="mt-1 relative flex items-center">
+ <Input
+ type={showPassword ? "text" : "password"}
+ value={password}
+ onChange={(e) => setPassword(e.target.value)}
+ autoComplete="new-password"
+ placeholder={t("common.sensitive-placeholder")}
+ disabled={!allowUpdate}
+ className={passwordHint ? "border-error" : ""}
+ />
+ <button
+ type="button"
+ className="absolute right-3 cursor-pointer"
+ onClick={() => setShowPassword(!showPassword)}
+ >
+ {showPassword ? (
+ <Eye className="w-4 h-4" />
+ ) : (
+ <EyeOff className="w-4 h-4" />
+ )}
+ </button>
+ </div>
+ </div>
+
+ <div>
+ <label className="block text-sm font-medium text-control">
+ {t("settings.profile.password-confirm")}
+ <span className="ml-0.5 text-error">*</span>
+ </label>
+ <div className="mt-1 relative flex items-center">
+ <Input
+ type={showPassword ? "text" : "password"}
+ value={passwordConfirm}
+ onChange={(e) => setPasswordConfirm(e.target.value)}
+ autoComplete="new-password"
+ placeholder={t(
+ "settings.profile.password-confirm-placeholder"
+ )}
+ disabled={!allowUpdate}
+ className={passwordMismatch ? "border-error" : ""}
+ />
+ <button
+ type="button"
+ className="absolute right-3 cursor-pointer"
+ onClick={() => setShowPassword(!showPassword)}
+ >
+ {showPassword ? (
+ <Eye className="w-4 h-4" />
+ ) : (
+ <EyeOff className="w-4 h-4" />
+ )}
+ </button>
+ </div>
+ {passwordMismatch && (
+ <span className="text-error text-sm mt-1 pl-1">
+ {t("settings.profile.password-mismatch")}
+ </span>
+ )}
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Footer */}
+ <div className="flex items-center justify-end gap-x-2 px-6 py-4 border-t">
+ <Button variant="outline" onClick={onClose}>
+ {t("common.cancel")}
+ </Button>
+ <Button
+ disabled={!allowConfirm || !hasPermission || isRequesting}
+ onClick={handleSubmit}
+ >
+ {isEditMode ? t("common.update") : t("common.confirm")}
+ </Button>
+ </div>
+ </div>
+ </>
+ );
+}
+
+// ============================================================
+// CreateGroupDrawer
+// ============================================================
+
+// Normalize member identifier to users/{email} format.
+// Accepts: "users/[email protected]", "[email protected]" → "users/[email protected]"
+function normalizeMemberIdentifier(member: string): string {
+ const trimmed = member.trim();
+ if (!trimmed) return trimmed;
+ if (trimmed.startsWith("users/")) return trimmed;
+ return `users/${trimmed}`;
+}
+
+function deduplicateMembers(members: GroupMember[]): GroupMember[] {
+ const map = new Map<string, GroupMember>();
+ for (const m of members) {
+ const key = m.member;
+ const existing = map.get(key);
+ if (existing) {
+ // Keep the one with OWNER role
+ if (m.role === GroupMember_Role.OWNER) {
+ map.set(key, m);
+ }
+ } else {
+ map.set(key, m);
+ }
+ }
+ return Array.from(map.values());
+}
+
+function CreateGroupDrawer({
+ group,
+ onClose,
+ onUpdated,
+ onRemoved,
+}: {
+ group: Group | undefined;
+ onClose: () => void;
+ onUpdated: (group: Group) => void;
+ onRemoved: (group: Group) => void;
+}) {
+ const { t } = useTranslation();
+ const groupStore = useGroupStore();
+ const settingV1Store = useSettingV1Store();
+ const actuatorStore = useActuatorV1Store();
+ const currentUser = useVueState(() => useCurrentUserV1().value);
+ const isSaaSMode = useVueState(() => actuatorStore.isSaaSMode);
+ const userStore = useUserStore();
+
+ const isEditMode = !!group;
+ const workspaceDomains = useVueState(
+ () => settingV1Store.workspaceProfile.domains
+ );
+ const domainOptions = workspaceDomains.filter((d) => d.trim());
+
+ const [email, setEmail] = useState(() => {
+ if (!group) return "";
+ // For editing, extract local part if domain is in workspace domains
+ return group.email ?? "";
+ });
+ const [selectedDomain, setSelectedDomain] = useState(() => {
+ if (group?.email) {
+ const atIdx = group.email.indexOf("@");
+ if (atIdx >= 0) {
+ const domain = group.email.slice(atIdx + 1);
+ if (domainOptions.includes(domain)) return domain;
+ }
+ }
+ return domainOptions[0] ?? "";
+ });
+ const [title, setTitle] = useState(group?.title ?? "");
+ const [description, setDescription] = useState(group?.description ?? "");
+ const [members, setMembers] = useState<GroupMember[]>(() => {
+ if (group) {
+ return group.members.map((m) =>
+ create(GroupMemberSchema, { member: m.member, role: m.role })
+ );
+ }
+ return [
+ create(GroupMemberSchema, {
+ role: GroupMember_Role.OWNER,
+ member: currentUser.name,
+ }),
+ ];
+ });
+ const [isRequesting, setIsRequesting] = useState(false);
+ const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);
+
+ useEscapeKey(true, onClose);
+
+ const isExternalGroup = !!group?.source;
+
+ const allowEdit = isExternalGroup
+ ? false
+ : isEditMode
+ ? group.members.some(
+ (m) =>
+ extractUserEmail(m.member) === currentUser.email &&
+ m.role === GroupMember_Role.OWNER
+ ) || hasWorkspacePermissionV2("bb.groups.update")
+ : hasWorkspacePermissionV2("bb.groups.create");
+
+ const fullEmail = useMemo(() => {
+ if (isEditMode) return email;
+ if (!email) return "";
+ // When workspace domains are configured, enforce by using selected domain
+ if (domainOptions.length > 0 && selectedDomain) {
+ const localPart = email.split("@")[0];
+ return `${localPart}@${selectedDomain}`;
+ }
+ return email;
+ }, [email, isEditMode, domainOptions, selectedDomain]);
+
+ const errorMessage = useMemo(() => {
+ if (!title.trim())
+ return (
+ t("settings.members.groups.form.title") + " " + t("common.is-required")
+ );
+ if (!fullEmail || !isValidEmail(fullEmail))
+ return t("settings.members.groups.form.email-tips");
+ // Validate member identifiers — extract email part and check format
+ for (const m of members) {
+ const raw = m.member.trim();
+ if (!raw) continue;
+ const memberEmail = raw.startsWith("users/") ? raw.slice(6) : raw;
+ if (!isValidEmail(memberEmail)) {
+ return `Invalid member: ${raw}`;
+ }
+ }
+ return "";
+ }, [title, fullEmail, members, t]);
+
+ const hasChanged = useMemo(() => {
+ if (!isEditMode) return true;
+ if (!group) return true;
+ if (title !== group.title) return true;
+ if (description !== group.description) return true;
+ if (!isEqual(members, group.members)) return true;
+ return false;
+ }, [isEditMode, group, title, description, members]);
+
+ const allowConfirm = !errorMessage && hasChanged;
+
+ const handleAddMember = () => {
+ setMembers((prev) => [
+ ...prev,
+ create(GroupMemberSchema, { role: GroupMember_Role.MEMBER, member: "" }),
+ ]);
+ };
+
+ const handleRemoveMember = (index: number) => {
+ setMembers((prev) => prev.filter((_, i) => i !== index));
+ };
+
+ const handleMemberChange = (
+ index: number,
+ field: "member" | "role",
+ value: string | GroupMember_Role
+ ) => {
+ setMembers((prev) =>
+ prev.map((m, i) => {
+ if (i !== index) return m;
+ return create(GroupMemberSchema, {
+ ...m,
+ [field]: value,
+ });
+ })
+ );
+ };
+
+ const handleSubmit = async () => {
+ if (!allowConfirm || !allowEdit) return;
+ setIsRequesting(true);
+ try {
+ const normalizedMembers = members
+ .filter((m) => m.member.trim())
+ .map((m) =>
+ create(GroupMemberSchema, {
+ ...m,
+ member: normalizeMemberIdentifier(m.member),
+ })
+ );
+
+ // In self-hosted mode, verify all members exist via backend lookup
+ if (!isSaaSMode) {
+ const notFound: string[] = [];
+ for (const m of normalizedMembers) {
+ const user = await userStore.getOrFetchUserByIdentifier({
+ identifier: m.member,
+ silent: true,
+ fallback: false,
+ });
+ if (!user || user.name === UNKNOWN_USER_NAME) {
+ notFound.push(m.member.replace("users/", ""));
+ }
+ }
+ if (notFound.length > 0) {
+ pushNotification({
+ module: "bytebase",
+ style: "WARN",
+ title: `User not found: ${notFound.join(", ")}`,
+ });
+ setIsRequesting(false);
+ return;
+ }
+ }
+
+ const dedupedMembers = deduplicateMembers(normalizedMembers);
+ if (isEditMode && group) {
+ const validGroup = create(GroupSchema, {
+ name: group.name,
+ title,
+ description,
+ members: dedupedMembers,
+ });
+ const updated = await groupStore.updateGroup(validGroup);
+ onUpdated(updated);
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.updated"),
+ });
+ } else {
+ const validGroup = create(GroupSchema, {
+ name: `${groupNamePrefix}${fullEmail}`,
+ title,
+ description,
+ members: dedupedMembers,
+ });
+ const created = await groupStore.createGroup(validGroup);
+ onUpdated(created);
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.created"),
+ });
+ }
+ onClose();
+ } catch {
+ // error shown by store
+ } finally {
+ setIsRequesting(false);
+ }
+ };
+
+ const handleDelete = async () => {
+ if (!group) return;
+ setIsRequesting(true);
+ try {
+ await groupStore.deleteGroup(group.name);
+ onRemoved(group);
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.deleted"),
+ });
+ onClose();
+ } catch {
+ // error shown by store
+ } finally {
+ setIsRequesting(false);
+ setShowDeleteConfirm(false);
+ }
+ };
+
+ const canDelete =
+ isEditMode &&
+ !isExternalGroup &&
+ (group.members.some(
+ (m) =>
+ extractUserEmail(m.member) === currentUser.email &&
+ m.role === GroupMember_Role.OWNER
+ ) ||
+ hasWorkspacePermissionV2("bb.groups.delete"));
+
+ return (
+ <>
+ {/* Backdrop */}
+ <div className="fixed inset-0 z-40 bg-black/30" onClick={onClose} />
+
+ {/* Drawer */}
+ <div
+ role="dialog"
+ aria-modal="true"
+ className="fixed inset-y-0 right-0 z-50 w-[40rem] max-w-[100vw] bg-white shadow-xl flex flex-col"
+ >
+ {/* Header */}
+ <div className="flex items-center justify-between px-6 py-4 border-b">
+ <h2 className="text-lg font-medium">
+ {isEditMode
+ ? t("settings.members.groups.update-group")
+ : t("settings.members.groups.add-group")}
+ </h2>
+ <Button variant="ghost" size="icon" onClick={onClose}>
+ <X className="h-5 w-5" />
+ </Button>
+ </div>
+
+ {/* Content */}
+ <div className="flex-1 overflow-auto px-6 py-6">
+ <div className="flex flex-col gap-y-6">
+ {isExternalGroup && (
+ <Alert variant="info">
+ <AlertDescription>
+ {t("settings.members.groups.external-readonly")}
+ </AlertDescription>
+ </Alert>
+ )}
+
+ {/* Email */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.groups.form.email")}
+ <span className="ml-0.5 text-error">*</span>
+ </label>
+ <span className="textinfolabel text-sm">
+ {t("settings.members.groups.form.email-tips")}
+ </span>
+ <div className="flex items-center gap-x-1">
+ <Input
+ value={isEditMode ? email : email.split("@")[0]}
+ onChange={(e) => setEmail(e.target.value)}
+ disabled={isEditMode || !allowEdit}
+ />
+ {!isEditMode && domainOptions.length > 0 && (
+ <>
+ <span className="text-sm text-control-light">@</span>
+ {domainOptions.length === 1 ? (
+ <span className="text-sm text-control-light whitespace-nowrap">
+ {domainOptions[0]}
+ </span>
+ ) : (
+ <select
+ value={selectedDomain}
+ onChange={(e) => setSelectedDomain(e.target.value)}
+ className="border border-control-border rounded-sm text-sm pl-2 pr-6 py-1"
+ disabled={!allowEdit}
+ >
+ {domainOptions.map((d) => (
+ <option key={d} value={d}>
+ {d}
+ </option>
+ ))}
+ </select>
+ )}
+ </>
+ )}
+ </div>
+ </div>
+
+ {/* Title */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.groups.form.title")}
+ <span className="ml-0.5 text-error">*</span>
+ </label>
+ <Input
+ value={title}
+ onChange={(e) => setTitle(e.target.value)}
+ maxLength={200}
+ disabled={!allowEdit}
+ />
+ </div>
+
+ {/* Description */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.groups.form.description")}
+ </label>
+ <Input
+ value={description}
+ onChange={(e) => setDescription(e.target.value)}
+ maxLength={1000}
+ disabled={!allowEdit}
+ />
+ </div>
+
+ {/* Members */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("common.members", { count: 2 })}
+ </label>
+ <div className="flex flex-col gap-y-2">
+ {members.map((member, index) => (
+ <div key={index} className="flex items-center gap-x-2">
+ <Input
+ className="flex-1"
+ value={member.member}
+ onChange={(e) =>
+ handleMemberChange(index, "member", e.target.value)
+ }
+ placeholder="users/[email protected]"
+ disabled={!allowEdit}
+ />
+ <select
+ value={member.role}
+ onChange={(e) =>
+ handleMemberChange(
+ index,
+ "role",
+ Number(e.target.value) as GroupMember_Role
+ )
+ }
+ className="h-9 rounded-xs border border-control-border bg-transparent px-2 py-1 text-sm"
+ disabled={!allowEdit}
+ >
+ <option value={GroupMember_Role.OWNER}>
+ {t("settings.members.groups.form.role.owner")}
+ </option>
+ <option value={GroupMember_Role.MEMBER}>
+ {t("settings.members.groups.form.role.member")}
+ </option>
+ </select>
+ <Button
+ variant="ghost"
+ size="icon"
+ className="h-7 w-7 shrink-0 text-error hover:text-error"
+ onClick={() => handleRemoveMember(index)}
+ disabled={!allowEdit}
+ >
+ <Trash2 className="h-4 w-4" />
+ </Button>
+ </div>
+ ))}
+ {allowEdit && (
+ <Button
+ variant="outline"
+ size="sm"
+ className="self-start"
+ onClick={handleAddMember}
+ >
+ <Plus className="h-4 w-4 mr-1" />
+ {t("settings.members.add-member")}
+ </Button>
+ )}
+ </div>
+ </div>
+
+ {errorMessage && (
+ <p className="text-error text-sm">{errorMessage}</p>
+ )}
+ </div>
+ </div>
+
+ {/* Footer */}
+ <div className="flex items-center justify-between px-6 py-4 border-t">
+ <div>
+ {canDelete && (
+ <>
+ {showDeleteConfirm ? (
+ <div className="flex items-center gap-x-2">
+ <span className="text-sm text-error">
+ {t("settings.members.action.deactivate-confirm-title")}
+ </span>
+ <Button
+ variant="destructive"
+ size="sm"
+ onClick={handleDelete}
+ disabled={isRequesting}
+ >
+ {t("common.confirm")}
+ </Button>
+ <Button
+ variant="outline"
+ size="sm"
+ onClick={() => setShowDeleteConfirm(false)}
+ >
+ {t("common.cancel")}
+ </Button>
+ </div>
+ ) : (
+ <Button
+ variant="ghost"
+ className="text-error hover:text-error"
+ onClick={() => setShowDeleteConfirm(true)}
+ >
+ <Trash2 className="h-4 w-4 mr-1" />
+ {t("common.delete")}
+ </Button>
+ )}
+ </>
+ )}
+ </div>
+ <div className="flex items-center gap-x-2">
+ <Button variant="outline" onClick={onClose}>
+ {t("common.cancel")}
+ </Button>
+ <Button
+ disabled={!allowEdit || !allowConfirm || isRequesting}
+ onClick={handleSubmit}
+ >
+ {isEditMode ? t("common.update") : t("common.confirm")}
+ </Button>
+ </div>
+ </div>
+ </div>
+ </>
+ );
+}
+
+// ============================================================
+// AADSyncDrawer
+// ============================================================
+
+function AADSyncDrawer({ onClose }: { onClose: () => void }) {
+ const { t } = useTranslation();
+ const actuatorStore = useActuatorV1Store();
+ const settingV1Store = useSettingV1Store();
+
+ const externalUrl = useVueState(
+ () => actuatorStore.serverInfo?.externalUrl ?? ""
+ );
+ const workspaceResourceName = useVueState(
+ () => actuatorStore.workspaceResourceName
+ );
+ const directorySyncToken = useVueState(
+ () => settingV1Store.workspaceProfile.directorySyncToken
+ );
+
+ useEscapeKey(true, onClose);
+
+ const scimUrl =
+ externalUrl && workspaceResourceName
+ ? `${externalUrl}/hook/scim/${workspaceResourceName}`
+ : "";
+
+ const copyToClipboard = async (value: string) => {
+ try {
+ if (navigator.clipboard) {
+ await navigator.clipboard.writeText(value);
+ } else {
+ // Fallback for non-secure contexts (e.g. self-hosted HTTP)
+ const textarea = document.createElement("textarea");
+ textarea.value = value;
+ textarea.style.position = "fixed";
+ textarea.style.opacity = "0";
+ document.body.appendChild(textarea);
+ textarea.select();
+ document.execCommand("copy");
+ document.body.removeChild(textarea);
+ }
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.copied"),
+ });
+ } catch {
+ pushNotification({
+ module: "bytebase",
+ style: "WARN",
+ title: t("common.copy-failed"),
+ });
+ }
+ };
+
+ const handleResetToken = async () => {
+ const confirmed = window.confirm(
+ t("settings.members.entra-sync.reset-token-warning")
+ );
+ if (!confirmed) return;
+
+ try {
+ await settingV1Store.updateWorkspaceProfile({
+ payload: { directorySyncToken: "" },
+ updateMask: create(FieldMaskSchema, {
+ paths: ["value.workspace_profile.directory_sync_token"],
+ }),
+ });
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: t("common.updated"),
+ });
+ } catch {
+ // error already shown by store
+ }
+ };
+
+ return (
+ <>
+ {/* Backdrop */}
+ <div className="fixed inset-0 z-40 bg-black/30" onClick={onClose} />
+
+ {/* Drawer */}
+ <div
+ role="dialog"
+ aria-modal="true"
+ className="fixed inset-y-0 right-0 z-50 w-[40rem] max-w-[100vw] bg-white shadow-xl flex flex-col"
+ >
+ {/* Header */}
+ <div className="flex items-center justify-between px-6 py-4 border-b">
+ <h2 className="text-lg font-medium">
+ {t("settings.members.entra-sync.self")}
+ </h2>
+ <Button variant="ghost" size="icon" onClick={onClose}>
+ <X className="h-5 w-5" />
+ </Button>
+ </div>
+
+ {/* Content */}
+ <div className="flex-1 overflow-auto px-6 py-6">
+ <div className="flex flex-col gap-y-6">
+ {/* Description */}
+ <p className="text-sm text-control-light">
+ {t("settings.members.entra-sync.description")}{" "}
+ <a
+ href="https://docs.bytebase.com/administration/scim/overview?source=console"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-accent hover:underline"
+ >
+ {t("common.learn-more")}
+ </a>
+ </p>
+
+ {/* Missing external URL warning */}
+ {!externalUrl && (
+ <Alert variant="warning">
+ <AlertDescription>{t("banner.external-url")}</AlertDescription>
+ </Alert>
+ )}
+
+ {/* SCIM Endpoint URL */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.entra-sync.endpoint")}
+ </label>
+ <span className="textinfolabel text-sm">
+ {t("settings.members.entra-sync.endpoint-tip")}
+ </span>
+ <div className="flex items-center gap-x-2">
+ <Input readOnly value={scimUrl} className="flex-1 text-sm" />
+ <Button
+ variant="outline"
+ size="sm"
+ disabled={!scimUrl}
+ onClick={() => copyToClipboard(scimUrl)}
+ >
+ <Copy className="h-4 w-4" />
+ </Button>
+ </div>
+ </div>
+
+ {/* Secret Token */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.entra-sync.secret-token")}
+ </label>
+ <span className="textinfolabel text-sm">
+ {t("settings.members.entra-sync.secret-token-tip")}
+ </span>
+ <div className="flex items-center gap-x-2">
+ <Input
+ readOnly
+ type="password"
+ value={directorySyncToken}
+ className="flex-1 text-sm"
+ />
+ <Button
+ variant="outline"
+ size="sm"
+ disabled={!directorySyncToken}
+ onClick={() => copyToClipboard(directorySyncToken)}
+ >
+ <Copy className="h-4 w-4" />
+ </Button>
+ </div>
+ {hasWorkspacePermissionV2("bb.settings.setWorkspaceProfile") && (
+ <Button
+ variant="outline"
+ size="sm"
+ className="self-start text-error border-error hover:bg-error/10"
+ onClick={handleResetToken}
+ >
+ {t("settings.members.entra-sync.reset-token")}
+ </Button>
+ )}
+ </div>
+ </div>
+ </div>
+
+ {/* Footer */}
+ <div className="flex items-center justify-end gap-x-2 px-6 py-4 border-t">
+ <Button variant="outline" onClick={onClose}>
+ {t("common.cancel")}
+ </Button>
+ </div>
+ </div>
+ </>
+ );
+}
+
+// ============================================================
+// UsersPage (main)
+// ============================================================
+
+type TabValue = "USERS" | "MEMBERS" | "GROUPS";
+
+function getInitialTab(isSaaSMode: boolean): TabValue {
+ const hash = window.location.hash.replace("#", "").toUpperCase();
+ if (hash === "USERS" && !isSaaSMode) return "USERS";
+ if (hash === "MEMBERS" && isSaaSMode) return "MEMBERS";
+ if (hash === "GROUPS") return "GROUPS";
+ return isSaaSMode ? "MEMBERS" : "USERS";
+}
+
+// ============================================================
+// MemberTable (view by members)
+// ============================================================
+
+function MemberTable({
+ bindings,
+ allowEdit,
+ selectedBindings,
+ onSelectionChange,
+ onUpdateBinding,
+ onRevokeBinding,
+}: {
+ bindings: MemberBinding[];
+ allowEdit: boolean;
+ selectedBindings: string[];
+ onSelectionChange: (selected: string[]) => void;
+ onUpdateBinding: (binding: MemberBinding) => void;
+ onRevokeBinding: (binding: MemberBinding) => void;
+}) {
+ const { t } = useTranslation();
+
+ const allSelected =
+ bindings.length > 0 &&
+ bindings.every((b) => selectedBindings.includes(b.binding));
+
+ const toggleAll = () => {
+ if (allSelected) {
+ onSelectionChange([]);
+ } else {
+ onSelectionChange(bindings.map((b) => b.binding));
+ }
+ };
+
+ const toggleOne = (binding: string) => {
+ onSelectionChange(
+ selectedBindings.includes(binding)
+ ? selectedBindings.filter((b) => b !== binding)
+ : [...selectedBindings, binding]
+ );
+ };
+
+ const canEdit = (mb: MemberBinding) => {
+ if (mb.type === "users") return mb.user?.state !== State.DELETED;
+ if (mb.type === "groups") return !mb.group?.deleted;
+ return true;
+ };
+
+ return (
+ <div className="border rounded-sm overflow-hidden">
+ <table className="w-full text-sm">
+ <thead>
+ <tr className="bg-gray-50 border-b">
+ {allowEdit && (
+ <th className="w-10 px-3 py-2">
+ <input
+ type="checkbox"
+ checked={allSelected}
+ onChange={toggleAll}
+ />
+ </th>
+ )}
+ <th className="px-4 py-2 text-left font-medium text-control-light">
+ {t("settings.members.table.account")}
+ </th>
+ <th className="px-4 py-2 text-left font-medium text-control-light">
+ {t("settings.members.table.roles")}
+ </th>
+ <th className="w-24 px-4 py-2 text-left font-medium text-control-light">
+ {t("common.operations")}
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ {bindings.map((mb) => (
+ <tr
+ key={mb.binding}
+ className="border-b last:border-b-0 hover:bg-gray-50"
+ >
+ {allowEdit && (
+ <td className="px-3 py-2">
+ <input
+ type="checkbox"
+ checked={selectedBindings.includes(mb.binding)}
+ onChange={() => toggleOne(mb.binding)}
+ />
+ </td>
+ )}
+ <td className="px-4 py-2">
+ {mb.type === "users" ? (
+ <div className="flex flex-col">
+ <span className="font-medium">{mb.title}</span>
+ <span className="text-control-light text-xs">
+ {mb.user?.email}
+ </span>
+ </div>
+ ) : (
+ <div className="flex items-center gap-x-2">
+ <Users className="h-4 w-4 text-control-light" />
+ <span className="font-medium">{mb.title}</span>
+ {mb.group && (
+ <span className="text-control-light text-xs">
+ ({mb.group.members.length}{" "}
+ {t("common.members", {
+ count: mb.group.members.length,
+ })}
+ )
+ </span>
+ )}
+ {mb.group?.deleted && (
+ <Badge variant="destructive" className="text-xs">
+ {t("common.deleted")}
+ </Badge>
+ )}
+ </div>
+ )}
+ </td>
+ <td className="px-4 py-2">
+ <div className="flex flex-wrap gap-1">
+ {sortRoles([...mb.workspaceLevelRoles]).map((role) => (
+ <Badge key={role} className="text-xs gap-x-1">
+ <Building2 className="h-3 w-3" />
+ {displayRoleTitle(role)}
+ </Badge>
+ ))}
+ </div>
+ </td>
+ <td className="px-4 py-2">
+ <div className="flex items-center gap-x-1">
+ {allowEdit && canEdit(mb) && (
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={() => onUpdateBinding(mb)}
+ >
+ <Pencil className="h-4 w-4" />
+ </Button>
+ )}
+ {allowEdit && (
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={() => {
+ if (
+ window.confirm(
+ t("settings.members.revoke-access-alert")
+ )
+ ) {
+ onRevokeBinding(mb);
+ }
+ }}
+ >
+ <Trash2 className="h-4 w-4" />
+ </Button>
+ )}
+ </div>
+ </td>
+ </tr>
+ ))}
+ {bindings.length === 0 && (
+ <tr>
+ <td
+ colSpan={allowEdit ? 4 : 3}
+ className="px-4 py-8 text-center text-control-light"
+ >
+ {t("common.no-data")}
+ </td>
+ </tr>
+ )}
+ </tbody>
+ </table>
+ </div>
+ );
+}
+
+// ============================================================
+// MemberTableByRole (view by roles)
+// ============================================================
+
+function MemberTableByRole({
+ bindings,
+ allowEdit,
+ onUpdateBinding,
+ onRevokeBinding,
+}: {
+ bindings: MemberBinding[];
+ allowEdit: boolean;
+ onUpdateBinding: (binding: MemberBinding) => void;
+ onRevokeBinding: (binding: MemberBinding) => void;
+}) {
+ const { t } = useTranslation();
+ const [expandedRoles, setExpandedRoles] = useState<Set<string>>(new Set());
+
+ const roleToBindings = useMemo(() => {
+ const map = new Map<string, MemberBinding[]>();
+ for (const mb of bindings) {
+ for (const role of mb.workspaceLevelRoles) {
+ if (!map.has(role)) map.set(role, []);
+ map.get(role)!.push(mb);
+ }
+ }
+ const sortedRoles = sortRoles([...map.keys()]);
+ return sortedRoles.map((role) => ({
+ role,
+ members: map.get(role) ?? [],
+ }));
+ }, [bindings]);
+
+ const toggleRole = (role: string) => {
+ setExpandedRoles((prev) => {
+ const next = new Set(prev);
+ if (next.has(role)) next.delete(role);
+ else next.add(role);
+ return next;
+ });
+ };
+
+ const canEdit = (mb: MemberBinding) => {
+ if (mb.type === "users") return mb.user?.state !== State.DELETED;
+ if (mb.type === "groups") return !mb.group?.deleted;
+ return true;
+ };
+
+ return (
+ <div className="border rounded-sm overflow-hidden">
+ <table className="w-full text-sm">
+ <tbody>
+ {roleToBindings.map(({ role, members }) => {
+ const expanded = expandedRoles.has(role);
+ return (
+ <React.Fragment key={role}>
+ <tr
+ className="bg-gray-50 border-b cursor-pointer hover:bg-gray-100"
+ onClick={() => toggleRole(role)}
+ >
+ <td colSpan={3} className="px-4 py-2">
+ <div className="flex items-center gap-x-2">
+ {expanded ? (
+ <ChevronDown className="h-4 w-4" />
+ ) : (
+ <ChevronRight className="h-4 w-4" />
+ )}
+ <Building2 className="h-4 w-4 text-control-light" />
+ <span className="font-medium">
+ {displayRoleTitle(role)}
+ </span>
+ <span className="text-control-light text-xs">
+ ({members.length})
+ </span>
+ </div>
+ </td>
+ </tr>
+ {expanded &&
+ members.map((mb) => (
+ <tr
+ key={`${role}-${mb.binding}`}
+ className="border-b last:border-b-0 hover:bg-gray-50"
+ >
+ <td className="px-4 py-2 pl-10">
+ {mb.type === "users" ? (
+ <div className="flex flex-col">
+ <span className="font-medium">{mb.title}</span>
+ <span className="text-control-light text-xs">
+ {mb.user?.email}
+ </span>
+ </div>
+ ) : (
+ <div className="flex items-center gap-x-2">
+ <Users className="h-4 w-4 text-control-light" />
+ <span className="font-medium">{mb.title}</span>
+ {mb.group?.deleted && (
+ <Badge variant="destructive" className="text-xs">
+ {t("common.deleted")}
+ </Badge>
+ )}
+ </div>
+ )}
+ </td>
+ <td className="px-4 py-2" />
+ <td className="w-24 px-4 py-2">
+ <div className="flex items-center gap-x-1">
+ {allowEdit && canEdit(mb) && (
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={() => onUpdateBinding(mb)}
+ >
+ <Pencil className="h-4 w-4" />
+ </Button>
+ )}
+ {allowEdit && (
+ <Button
+ variant="ghost"
+ size="icon"
+ onClick={() => {
+ if (
+ window.confirm(
+ t("settings.members.revoke-access-alert")
+ )
+ ) {
+ onRevokeBinding(mb);
+ }
+ }}
+ >
+ <Trash2 className="h-4 w-4" />
+ </Button>
+ )}
+ </div>
+ </td>
+ </tr>
+ ))}
+ </React.Fragment>
+ );
+ })}
+ {roleToBindings.length === 0 && (
+ <tr>
+ <td
+ colSpan={3}
+ className="px-4 py-8 text-center text-control-light"
+ >
+ {t("common.no-data")}
+ </td>
+ </tr>
+ )}
+ </tbody>
+ </table>
+ </div>
+ );
+}
+
+// ============================================================
+// EditMemberRoleDrawer
+// ============================================================
+
+function EditMemberRoleDrawer({
+ member,
+ onClose,
+}: {
+ member?: MemberBinding;
+ onClose: () => void;
+}) {
+ const { t } = useTranslation();
+ const workspaceStore = useWorkspaceV1Store();
+ const isSaaSMode = useVueState(() => useActuatorV1Store().isSaaSMode);
+
+ const isEditMode = !!member;
+
+ const [memberInput, setMemberInput] = useState("");
+ const [selectedRoles, setSelectedRoles] = useState<string[]>(() =>
+ member ? [...member.workspaceLevelRoles] : [PresetRoleType.WORKSPACE_MEMBER]
+ );
+ const [isRequesting, setIsRequesting] = useState(false);
+
+ useEscapeKey(true, onClose);
+
+ const handleSubmit = async () => {
+ setIsRequesting(true);
+ try {
+ if (isEditMode) {
+ await workspaceStore.patchIamPolicy([
+ { member: member.binding, roles: selectedRoles },
+ ]);
+ } else {
+ const emails = memberInput
+ .split(",")
+ .map((s) => s.trim())
+ .filter(Boolean);
+ const KNOWN_PREFIXES = [
+ "user:",
+ "group:",
+ "serviceAccount:",
+ "workloadIdentity:",
+ ];
+ const memberList = emails.map((input) => {
+ // Preserve the special allUsers principal (self-hosted only)
+ if (input === ALL_USERS_USER_EMAIL && !isSaaSMode) {
+ return input;
+ }
+ if (KNOWN_PREFIXES.some((p) => input.startsWith(p))) {
+ return input;
+ }
+ return `${userBindingPrefix}${input}`;
+ });
+ const batchPatch = memberList.map((m) => {
+ const existedRoles = workspaceStore.findRolesByMember(m);
+ return {
+ member: m,
+ roles: [...new Set([...selectedRoles, ...existedRoles])],
+ };
+ });
+ await workspaceStore.patchIamPolicy(batchPatch);
+ }
+ pushNotification({
+ module: "bytebase",
+ style: "SUCCESS",
+ title: isEditMode ? t("common.updated") : t("common.created"),
+ });
+ onClose();
+ } catch {
+ // error shown by store
+ } finally {
+ setIsRequesting(false);
+ }
+ };
+
+ const handleRevoke = async () => {
+ if (!member) return;
+ const isAllUsers =
+ member.binding === `${userBindingPrefix}${ALL_USERS_USER_EMAIL}`;
+ const message = isAllUsers
+ ? t("settings.members.revoke-allusers-alert")
+ : t("settings.members.revoke-access-alert");
+ if (!window.confirm(message)) return;
+
+ setIsRequesting(true);
+ try {
+ await workspaceStore.patchIamPolicy([
+ { member: member.binding, roles: [] },
+ ]);
+ pushNotification({
+ module: "bytebase",
+ style: "INFO",
+ title: t("settings.members.revoked"),
+ });
+ onClose();
+ } catch {
+ // error shown by store
+ } finally {
+ setIsRequesting(false);
+ }
+ };
+
+ const allowConfirm = isEditMode
+ ? selectedRoles.length > 0
+ : memberInput.trim().length > 0 && selectedRoles.length > 0;
+
+ return (
+ <>
+ <div className="fixed inset-0 z-40 bg-black/30" onClick={onClose} />
+ <div
+ role="dialog"
+ aria-modal="true"
+ className="fixed inset-y-0 right-0 z-50 w-[40rem] max-w-[100vw] bg-white shadow-xl flex flex-col"
+ >
+ <div className="flex items-center justify-between px-6 py-4 border-b">
+ <h2 className="text-lg font-medium">
+ {t("settings.members.grant-access")}
+ </h2>
+ <Button variant="ghost" size="icon" onClick={onClose}>
+ <X className="h-5 w-5" />
+ </Button>
+ </div>
+
+ <div className="flex-1 overflow-auto px-6 py-6">
+ <div className="flex flex-col gap-y-6">
+ {/* Member input */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.select-account", { count: 1 })}
+ </label>
+ {isEditMode ? (
+ <Input value={member.binding} disabled />
+ ) : (
+ <>
+ <Input
+ value={memberInput}
+ onChange={(e) => setMemberInput(e.target.value)}
+ placeholder="user:[email protected], group:[email protected]"
+ />
+ <span className="text-xs text-control-light">
+ {t("settings.members.select-account-hint")}
+ </span>
+ </>
+ )}
+ </div>
+
+ {/* Roles */}
+ <div className="flex flex-col gap-y-2">
+ <label className="block text-sm font-medium text-control">
+ {t("settings.members.select-role", { count: 2 })}
+ </label>
+ <RoleMultiSelect
+ value={selectedRoles}
+ onChange={setSelectedRoles}
+ />
+ </div>
+ </div>
+ </div>
+
+ <div className="flex items-center justify-between px-6 py-4 border-t">
+ <div>
+ {isEditMode && (
+ <Button
+ variant="destructive"
+ disabled={isRequesting}
+ onClick={handleRevoke}
+ >
+ {t("settings.members.revoke-access")}
+ </Button>
+ )}
+ </div>
+ <div className="flex items-center gap-x-2">
+ <Button variant="outline" onClick={onClose}>
+ {t("common.cancel")}
+ </Button>
+ <Button
+ disabled={!allowConfirm || isRequesting}
+ onClick={handleSubmit}
+ >
+ {t("common.confirm")}
+ </Button>
+ </div>
+ </div>
+ </div>
+ </>
+ );
+}
+
+export function UsersPage() {
+ const { t } = useTranslation();
+ const actuatorStore = useActuatorV1Store();
+ const subscriptionStore = useSubscriptionV1Store();
+ const settingV1Store = useSettingV1Store();
+ const userStore = useUserStore();
+ const groupStore = useGroupStore();
+
+ const isSaaSMode = useVueState(() => actuatorStore.isSaaSMode);
+ const activeUserCount = useVueState(() => actuatorStore.activeUserCount);
+ const userCountLimit = useVueState(() => subscriptionStore.userCountLimit);
+
+ const [tab, setTab] = useState<TabValue>(() => getInitialTab(isSaaSMode));
+ const [userSearchText, setUserSearchText] = useState("");
+ const [groupSearchText, setGroupSearchText] = useState("");
+ const [showInactiveUsers, setShowInactiveUsers] = useState(false);
+ const [inactiveUserSearchText, setInactiveUserSearchText] = useState("");
+
+ const hasUserGroupFeature = useVueState(() =>
+ subscriptionStore.hasInstanceFeature(PlanFeature.FEATURE_USER_GROUPS)
+ );
+ const workspaceDomains = useVueState(
+ () => settingV1Store.workspaceProfile.domains
+ );
+ const hasDirectorySyncFeature = useVueState(() =>
+ subscriptionStore.hasInstanceFeature(PlanFeature.FEATURE_DIRECTORY_SYNC)
+ );
+ const canAccessSettings = hasWorkspacePermissionV2("bb.settings.get");
+
+ // Drawer visibility
+ const [showCreateUserDrawer, setShowCreateUserDrawer] = useState(false);
+ const [showCreateGroupDrawer, setShowCreateGroupDrawer] = useState(false);
+ const [showAadSyncDrawer, setShowAadSyncDrawer] = useState(false);
+ const [editingGroup, setEditingGroup] = useState<Group | undefined>(
+ undefined
+ );
+ const [editingUser, setEditingUser] = useState<User | undefined>(undefined);
+
+ // Members tab (SaaS mode)
+ const workspaceStore = useWorkspaceV1Store();
+ const currentUser = useVueState(() => useCurrentUserV1().value);
+ const [memberSearchText, setMemberSearchText] = useState("");
+ const [memberViewTab, setMemberViewTab] = useState<"MEMBERS" | "ROLES">(
+ "MEMBERS"
+ );
+ const [selectedMembers, setSelectedMembers] = useState<string[]>([]);
+ const [showEditMemberDrawer, setShowEditMemberDrawer] = useState(false);
+ const [editingMember, setEditingMember] = useState<
+ MemberBinding | undefined
+ >();
+
+ const memberBindings = useVueState(() =>
+ getMemberBindings({
+ policies: [
+ {
+ level: "WORKSPACE" as const,
+ policy: workspaceStore.workspaceIamPolicy,
+ },
+ ],
+ searchText: memberSearchText,
+ ignoreRoles: new Set([]),
+ })
+ );
+
+ const canSetIamPolicy = hasWorkspacePermissionV2(
+ "bb.workspaces.setIamPolicy"
+ );
+
+ const handleRevokeSelected = async () => {
+ if (
+ selectedMembers.some(
+ (m) => m === `${userBindingPrefix}${currentUser.email}`
+ )
+ ) {
+ pushNotification({
+ module: "bytebase",
+ style: "WARN",
+ title: t("settings.members.cannot-revoke-self"),
+ });
+ return;
+ }
+ if (window.confirm(t("settings.members.revoke-access-alert"))) {
+ try {
+ await workspaceStore.patchIamPolicy(
+ selectedMembers.map((m) => ({ member: m, roles: [] }))
+ );
+ pushNotification({
+ module: "bytebase",
+ style: "INFO",
+ title: t("settings.members.revoked"),
+ });
+ setSelectedMembers([]);
+ } catch {
+ // error already shown by store
+ }
+ }
+ };
+
+ const handleMemberUpdateBinding = (binding: MemberBinding) => {
+ setEditingMember(binding);
+ setShowEditMemberDrawer(true);
+ };
+
+ const handleMemberRevokeBinding = async (binding: MemberBinding) => {
+ try {
+ await workspaceStore.patchIamPolicy([
+ { member: binding.binding, roles: [] },
+ ]);
+ pushNotification({
+ module: "bytebase",
+ style: "INFO",
+ title: t("settings.members.revoked"),
+ });
+ } catch {
+ // error already shown by store
+ }
+ };
+
+ const remainingUserCount = useMemo(
+ () => Math.max(0, userCountLimit - activeUserCount),
+ [userCountLimit, activeUserCount]
+ );
+
+ // Active users paged data
+ const fetchActiveUsers = useCallback(
+ async (params: { pageSize: number; pageToken: string }) => {
+ const result = await userStore.fetchUserList({
+ pageSize: params.pageSize,
+ pageToken: params.pageToken,
+ filter: { query: userSearchText },
+ });
+ return { list: result.users, nextPageToken: result.nextPageToken };
+ },
+ [userStore, userSearchText]
+ );
+
+ const hasUserListPermission = hasWorkspacePermissionV2("bb.users.list");
+ const activeUsers = usePagedData<User>({
+ sessionKey: "bb.users.active.page-size",
+ fetchList: fetchActiveUsers,
+ enabled: !isSaaSMode && hasUserListPermission,
+ });
+
+ // Inactive users paged data
+ const fetchInactiveUsers = useCallback(
+ async (params: { pageSize: number; pageToken: string }) => {
+ const result = await userStore.fetchUserList({
+ pageSize: params.pageSize,
+ pageToken: params.pageToken,
+ filter: { query: inactiveUserSearchText, state: State.DELETED },
+ showDeleted: true,
+ });
+ return { list: result.users, nextPageToken: result.nextPageToken };
+ },
+ [userStore, inactiveUserSearchText]
+ );
+
+ const inactiveUsers = usePagedData<User>({
+ sessionKey: "bb.users.inactive.page-size",
+ enabled: !isSaaSMode && hasUserListPermission && showInactiveUsers,
+ fetchList: fetchInactiveUsers,
+ });
+
+ // Groups paged data
+ const fetchGroups = useCallback(
+ async (params: { pageSize: number; pageToken: string }) => {
+ const { groups, nextPageToken } = await groupStore.fetchGroupList({
+ pageSize: params.pageSize,
+ pageToken: params.pageToken,
+ filter: { query: groupSearchText },
+ });
+ return { list: groups, nextPageToken };
+ },
+ [groupStore, groupSearchText]
+ );
+
+ const hasGroupListPermission = hasWorkspacePermissionV2("bb.groups.list");
+ const groupPaged = usePagedData<Group>({
+ sessionKey: "bb.paged-group-table",
+ fetchList: fetchGroups,
+ enabled: hasGroupListPermission,
+ });
+
+ // Handle query param for group opening
+ // Watch for ?name=groups/... query param (reactive to route changes)
+ useEffect(() => {
+ const handleRouteChange = () => {
+ const params = new URLSearchParams(window.location.search);
+ const name = params.get("name");
+ if (name && name.startsWith("groups/")) {
+ setTab("GROUPS");
+ groupStore
+ .getOrFetchGroupByIdentifier(name)
+ .then((group) => {
+ if (group) {
+ setEditingGroup(group);
+ setShowCreateGroupDrawer(true);
+ }
+ })
+ .catch(() => {
+ // Group not found or fetch failed — silently ignore
+ });
+ }
+ };
+ // Run on mount
+ handleRouteChange();
+ // Listen for in-app navigation via Vue router (pushState/replaceState)
+ const unregister = router.afterEach(() => {
+ handleRouteChange();
+ });
+ return () => unregister();
+ }, []); // mount-only setup, router.afterEach handles subsequent changes
+ // Sync tab ↔ URL hash (bidirectional)
+ useEffect(() => {
+ window.location.hash = tab;
+ }, [tab]);
+
+ useEffect(() => {
+ const onHashChange = () => {
+ const hash = window.location.hash.replace("#", "").toUpperCase();
+ if (hash === "USERS" && !isSaaSMode) setTab("USERS");
+ else if (hash === "MEMBERS" && isSaaSMode) setTab("MEMBERS");
+ else if (hash === "GROUPS") setTab("GROUPS");
+ };
+ window.addEventListener("hashchange", onHashChange);
+ return () => window.removeEventListener("hashchange", onHashChange);
+ }, [isSaaSMode]);
+
+ const handleTabChange = (value: TabValue) => {
+ if (value) setTab(value);
+ };
+
+ const handleActiveUserUpdated = (user: User) => {
+ if (user.state === State.DELETED) {
+ // Deactivated: remove from active list, add to inactive list
+ activeUsers.removeCache(user);
+ inactiveUsers.updateCache([user]);
+ } else {
+ activeUsers.updateCache([user]);
+ }
+ };
+
+ const handleInactiveUserUpdated = (user: User) => {
+ if (user.state === State.ACTIVE) {
+ // Restored: remove from inactive list, add to active list
+ inactiveUsers.removeCache(user);
+ activeUsers.updateCache([user]);
+ } else {
+ inactiveUsers.updateCache([user]);
+ }
+ };
+
+ const handleGroupSelected = (group: Group) => {
+ setEditingGroup(group);
+ setShowCreateGroupDrawer(true);
+ };
+
+ const handleGroupDeleted = (group: Group) => {
+ groupPaged.removeCache(group);
+ };
+
+ return (
+ <div className="w-full px-4 overflow-x-hidden flex flex-col pt-2 pb-4">
+ {!isSaaSMode && remainingUserCount <= 3 && (
+ <Alert variant="warning" className="mb-2">
+ <AlertTitle>{t("subscription.usage.user-count.title")}</AlertTitle>
+ <AlertDescription>
+ {remainingUserCount > 0
+ ? t("subscription.usage.user-count.remaining", {
+ total: userCountLimit,
+ count: remainingUserCount,
+ })
+ : t("subscription.usage.user-count.runoutof", {
+ total: userCountLimit,
+ })}{" "}
+ {t("subscription.usage.user-count.upgrade")}
+ </AlertDescription>
+ </Alert>
+ )}
+
+ <Tabs
+ value={tab}
+ onValueChange={(val) => handleTabChange(val as TabValue)}
+ >
+ <div className="flex items-center justify-between">
+ <TabsList>
+ {!isSaaSMode && (
+ <TabsTrigger value="USERS">
+ {t("common.users")}
+ <span className="ml-1 font-normal text-control-light">
+ ({activeUserCount})
+ </span>
+ </TabsTrigger>
+ )}
+ {isSaaSMode && (
+ <TabsTrigger value="MEMBERS">
+ {t("common.members", { count: 2 })}
+ </TabsTrigger>
+ )}
+ <TabsTrigger value="GROUPS">
+ {t("settings.members.groups.self")}
+ </TabsTrigger>
+ </TabsList>
+
+ <div className="flex items-center gap-x-2">
+ {tab === "USERS" && (
+ <>
+ <div className="relative">
+ <Input
+ placeholder={t("common.filter-by-name")}
+ value={userSearchText}
+ onChange={(e) => setUserSearchText(e.target.value)}
+ className="h-8 text-sm pr-8"
+ />
+ <Search className="absolute right-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-control-placeholder pointer-events-none" />
+ </div>
+ <Button
+ variant="outline"
+ disabled={!hasDirectorySyncFeature || !canAccessSettings}
+ onClick={() => setShowAadSyncDrawer(true)}
+ >
+ <Settings className="h-4 w-4 mr-1" />
+ <FeatureBadge
+ feature={PlanFeature.FEATURE_DIRECTORY_SYNC}
+ clickable={false}
+ />
+ {t("settings.members.entra-sync.self")}
+ </Button>
+ <Button
+ disabled={!hasWorkspacePermissionV2("bb.users.create")}
+ onClick={() => {
+ setEditingUser(create(UserSchema, { title: "" }));
+ setShowCreateUserDrawer(true);
+ }}
+ >
+ <Plus className="h-4 w-4 mr-1" />
+ {t("settings.members.add-user")}
+ </Button>
+ </>
+ )}
+ {tab === "GROUPS" && (
+ <>
+ <div className="relative">
+ <Input
+ placeholder={t("common.filter-by-name")}
+ value={groupSearchText}
+ onChange={(e) => setGroupSearchText(e.target.value)}
+ className="h-8 text-sm pr-8"
+ />
+ <Search className="absolute right-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-control-placeholder pointer-events-none" />
+ </div>
+ <Button
+ variant="outline"
+ disabled={!hasDirectorySyncFeature || !canAccessSettings}
+ onClick={() => setShowAadSyncDrawer(true)}
+ >
+ <Settings className="h-4 w-4 mr-1" />
+ <FeatureBadge
+ feature={PlanFeature.FEATURE_DIRECTORY_SYNC}
+ clickable={false}
+ />
+ {t("settings.members.entra-sync.self")}
+ </Button>
+ {workspaceDomains.length === 0 ? (
+ <Tooltip
+ content={
+ <span>
+ {t("settings.members.groups.workspace-domain-required")}{" "}
+ <a
+ href={
+ router.resolve({
+ name: SETTING_ROUTE_WORKSPACE_GENERAL,
+ hash: "#domain-restriction",
+ }).href
+ }
+ className="underline text-accent"
+ >
+ {t("common.configure")}
+ </a>
+ </span>
+ }
+ >
+ <Button disabled>
+ <Plus className="h-4 w-4 mr-1" />
+ <FeatureBadge
+ feature={PlanFeature.FEATURE_USER_GROUPS}
+ clickable={false}
+ />
+ {t("settings.members.groups.add-group")}
+ </Button>
+ </Tooltip>
+ ) : (
+ <Button
+ disabled={
+ !hasUserGroupFeature ||
+ !hasWorkspacePermissionV2("bb.groups.create")
+ }
+ onClick={() => {
+ setEditingGroup(undefined);
+ setShowCreateGroupDrawer(true);
+ }}
+ >
+ <Plus className="h-4 w-4 mr-1" />
+ <FeatureBadge
+ feature={PlanFeature.FEATURE_USER_GROUPS}
+ clickable={false}
+ />
+ {t("settings.members.groups.add-group")}
+ </Button>
+ )}
+ </>
+ )}
+ {tab === "MEMBERS" && (
+ <>
+ <div className="relative">
+ <Input
+ placeholder={t("settings.members.search-member")}
+ value={memberSearchText}
+ onChange={(e) => setMemberSearchText(e.target.value)}
+ className="h-8 text-sm pr-8"
+ />
+ <Search className="absolute right-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-control-placeholder pointer-events-none" />
+ </div>
+ {memberViewTab === "MEMBERS" && (
+ <Button
+ variant="outline"
+ disabled={!canSetIamPolicy || selectedMembers.length === 0}
+ onClick={handleRevokeSelected}
+ >
+ {t("settings.members.revoke-access")}
+ </Button>
+ )}
+ <Button
+ disabled={!canSetIamPolicy}
+ onClick={() => {
+ setEditingMember(undefined);
+ setShowEditMemberDrawer(true);
+ }}
+ >
+ <Plus className="h-4 w-4 mr-1" />
+ {t("settings.members.grant-access")}
+ </Button>
+ </>
+ )}
+ </div>
+ </div>
+
+ {!isSaaSMode && (
+ <TabsPanel value="USERS">
+ <div className="py-4 flex flex-col gap-y-4">
+ <ComponentPermissionGuard permissions={["bb.users.list"]}>
+ {activeUsers.isLoading && activeUsers.dataList.length === 0 ? (
+ <div className="flex items-center justify-center h-32">
+ <div className="animate-spin h-6 w-6 border-2 border-accent border-t-transparent rounded-full" />
+ </div>
+ ) : (
+ <>
+ <UserTable
+ users={activeUsers.dataList}
+ onUserUpdated={handleActiveUserUpdated}
+ onUserSelected={(user) => {
+ setEditingUser(user);
+ setShowCreateUserDrawer(true);
+ }}
+ onGroupSelected={(group) => {
+ setTab("GROUPS");
+ handleGroupSelected(group);
+ }}
+ />
+ <PagedTableFooter
+ pageSize={activeUsers.pageSize}
+ pageSizeOptions={activeUsers.pageSizeOptions}
+ onPageSizeChange={activeUsers.onPageSizeChange}
+ hasMore={activeUsers.hasMore}
+ isFetchingMore={activeUsers.isFetchingMore}
+ onLoadMore={activeUsers.loadMore}
+ />
+ </>
+ )}
+ </ComponentPermissionGuard>
+
+ {/* Inactive users toggle (only shown with list permission) */}
+ {hasUserListPermission && (
+ <label className="flex items-center gap-x-2 text-sm cursor-pointer">
+ <input
+ type="checkbox"
+ checked={showInactiveUsers}
+ onChange={(e) => setShowInactiveUsers(e.target.checked)}
+ />
+ {t("settings.members.show-inactive")}
+ </label>
+ )}
+
+ {showInactiveUsers && (
+ <div className="flex flex-col gap-y-3">
+ <div className="flex items-center justify-between">
+ <h3 className="text-base font-medium">
+ {t("settings.members.inactive-users")}
+ </h3>
+ <div className="relative">
+ <Input
+ placeholder={t("common.filter-by-name")}
+ value={inactiveUserSearchText}
+ onChange={(e) =>
+ setInactiveUserSearchText(e.target.value)
+ }
+ className="h-8 text-sm pr-8"
+ />
+ <Search className="absolute right-2.5 top-1/2 -translate-y-1/2 h-4 w-4 text-control-placeholder pointer-events-none" />
+ </div>
+ </div>
+
+ {inactiveUsers.isLoading &&
+ inactiveUsers.dataList.length === 0 ? (
+ <div className="flex items-center justify-center h-32">
+ <div className="animate-spin h-6 w-6 border-2 border-accent border-t-transparent rounded-full" />
+ </div>
+ ) : (
+ <>
+ <UserTable
+ users={inactiveUsers.dataList}
+ onUserUpdated={handleInactiveUserUpdated}
+ onUserSelected={(user) => {
+ setEditingUser(user);
+ setShowCreateUserDrawer(true);
+ }}
+ onGroupSelected={(group) => {
+ setTab("GROUPS");
+ handleGroupSelected(group);
+ }}
+ />
+ <PagedTableFooter
+ pageSize={inactiveUsers.pageSize}
+ pageSizeOptions={inactiveUsers.pageSizeOptions}
+ onPageSizeChange={inactiveUsers.onPageSizeChange}
+ hasMore={inactiveUsers.hasMore}
+ isFetchingMore={inactiveUsers.isFetchingMore}
+ onLoadMore={inactiveUsers.loadMore}
+ />
+ </>
+ )}
+ </div>
+ )}
+ </div>
+ </TabsPanel>
+ )}
+ {isSaaSMode && (
+ <TabsPanel value="MEMBERS">
+ <div className="py-4">
+ <Tabs
+ value={memberViewTab}
+ onValueChange={(v) =>
+ setMemberViewTab(v as "MEMBERS" | "ROLES")
+ }
+ >
+ <TabsList>
+ <TabsTrigger value="MEMBERS">
+ {t("settings.members.view-by-members")}
+ </TabsTrigger>
+ <TabsTrigger value="ROLES">
+ {t("settings.members.view-by-roles")}
+ </TabsTrigger>
+ </TabsList>
+ <TabsPanel value="MEMBERS">
+ <div className="py-4">
+ <MemberTable
+ bindings={memberBindings}
+ allowEdit={canSetIamPolicy}
+ selectedBindings={selectedMembers}
+ onSelectionChange={setSelectedMembers}
+ onUpdateBinding={handleMemberUpdateBinding}
+ onRevokeBinding={handleMemberRevokeBinding}
+ />
+ </div>
+ </TabsPanel>
+ <TabsPanel value="ROLES">
+ <div className="py-4">
+ <MemberTableByRole
+ bindings={memberBindings}
+ allowEdit={canSetIamPolicy}
+ onUpdateBinding={handleMemberUpdateBinding}
+ onRevokeBinding={handleMemberRevokeBinding}
+ />
+ </div>
+ </TabsPanel>
+ </Tabs>
+ </div>
+ </TabsPanel>
+ )}
+ <TabsPanel value="GROUPS">
+ <div className="py-4 flex flex-col gap-y-4">
+ <ComponentPermissionGuard permissions={["bb.groups.list"]}>
+ {groupPaged.isLoading && groupPaged.dataList.length === 0 ? (
+ <div className="flex items-center justify-center h-32">
+ <div className="animate-spin h-6 w-6 border-2 border-accent border-t-transparent rounded-full" />
+ </div>
+ ) : (
+ <>
+ <GroupTable
+ groups={groupPaged.dataList}
+ searchText={groupSearchText}
+ onGroupSelected={handleGroupSelected}
+ onGroupDeleted={handleGroupDeleted}
+ />
+ <PagedTableFooter
+ pageSize={groupPaged.pageSize}
+ pageSizeOptions={groupPaged.pageSizeOptions}
+ onPageSizeChange={groupPaged.onPageSizeChange}
+ hasMore={groupPaged.hasMore}
+ isFetchingMore={groupPaged.isFetchingMore}
+ onLoadMore={groupPaged.loadMore}
+ />
+ </>
+ )}
+ </ComponentPermissionGuard>
+ </div>
+ </TabsPanel>
+ </Tabs>
+
+ {showCreateUserDrawer && (
+ <CreateUserDrawer
+ user={editingUser}
+ onClose={() => {
+ setShowCreateUserDrawer(false);
+ setEditingUser(undefined);
+ }}
+ onCreated={(user) => {
+ activeUsers.updateCache([user]);
+ }}
+ onUpdated={(user) => {
+ activeUsers.updateCache([user]);
+ if (user.state === State.DELETED) {
+ activeUsers.removeCache(user);
+ inactiveUsers.updateCache([user]);
+ }
+ }}
+ />
+ )}
+
+ {showCreateGroupDrawer && (
+ <CreateGroupDrawer
+ group={editingGroup}
+ onClose={() => {
+ setShowCreateGroupDrawer(false);
+ setEditingGroup(undefined);
+ }}
+ onUpdated={(group) => {
+ groupPaged.updateCache([group]);
+ }}
+ onRemoved={(group) => {
+ groupPaged.removeCache(group);
+ setShowCreateGroupDrawer(false);
+ setEditingGroup(undefined);
+ }}
+ />
+ )}
+
+ {showAadSyncDrawer && (
+ <AADSyncDrawer onClose={() => setShowAadSyncDrawer(false)} />
+ )}
+
+ {showEditMemberDrawer && (
+ <EditMemberRoleDrawer
+ member={editingMember}
+ onClose={() => {
+ setShowEditMemberDrawer(false);
+ setEditingMember(undefined);
+ }}
+ />
+ )}
+ </div>
+ );
+}
diff --git a/frontend/src/router/dashboard/workspace.ts b/frontend/src/router/dashboard/workspace.ts
index 2b72d97418..00d7ac9159 100644
--- a/frontend/src/router/dashboard/workspace.ts
+++ b/frontend/src/router/dashboard/workspace.ts
@@ -313,8 +313,8 @@ const workspaceRoutes: RouteRecordRaw[] = [
meta: {
title: () => t("settings.sidebar.users-and-groups"),
},
- component: () => import("@/views/SettingWorkspaceUsers.vue"),
- props: true,
+ component: () => import("@/react/ReactPageMount.vue"),
+ props: () => ({ page: "UsersPage" }),
},
{
path: "service-accounts",
diff --git a/frontend/src/views/SettingWorkspaceUsers.vue b/frontend/src/views/SettingWorkspaceUsers.vue
deleted file mode 100644
index 493359df1a..0000000000
--- a/frontend/src/views/SettingWorkspaceUsers.vue
+++ /dev/null
@@ -1,550 +0,0 @@
-<template>
- <div class="w-full px-4 overflow-x-hidden flex flex-col pt-2 pb-4">
- <BBAttention
- v-if="!isSaaSMode && remainingUserCount <= 3"
- class="mb-2"
- :type="'warning'"
- :title="$t('subscription.usage.user-count.title')"
- :description="userCountAttention"
- />
- <NTabs v-model:value="state.typeTab" type="line" animated>
- <NTabPane v-if="!isSaaSMode" name="USERS">
- <template #tab>
- <div class="flex-1 flex gap-x-2">
- <p class="text-base font-medium leading-7 text-main">
- <span>{{ $t("common.users") }}</span>
- <span class="ml-1 font-normal text-control-light">
- ({{ activeUserCount }})
- </span>
- </p>
- </div>
- </template>
-
- <ComponentPermissionGuard
- :permissions="['bb.users.list']"
- >
- <PagedTable
- ref="userPagedTable"
- session-key="bb.paged-user-table.active"
- :fetch-list="fetchUserList"
- >
- <template #table="{ list, loading }">
- <UserDataTable
- :show-roles="false"
- :user-list="list"
- :loading="loading"
- :keyword="state.activeUserFilterText"
- @group-selected="handleGroupSelected"
- @user-selected="handleUserSelected"
- @user-updated="handleUserUpdated"
- />
- </template>
- </PagedTable>
- </ComponentPermissionGuard>
- </NTabPane>
-
- <NTabPane v-if="isSaaSMode" name="MEMBERS">
- <template #tab>
- <div class="flex-1 flex gap-x-2">
- <p class="text-base font-medium leading-7 text-main">
- <span>{{ $t("common.members", 2) }}</span>
- </p>
- </div>
- </template>
- <WorkspaceMembers :tab-type="'bar'" />
- </NTabPane>
-
- <NTabPane name="GROUPS">
- <template #tab>
- <div>
- <p class="text-base font-medium leading-7 text-main">
- <span>{{ $t("settings.members.groups.self") }}</span>
- </p>
- </div>
- </template>
-
- <ComponentPermissionGuard
- :permissions="['bb.groups.list']"
- >
- <PagedTable
- ref="groupPagedTable"
- session-key="bb.paged-group-table"
- :fetch-list="fetchGroupList"
- >
- <template #table="{ list, loading }">
- <UserDataTableByGroup
- :groups="list"
- :loading="loading"
- :keyword="state.activeGroupFilterText"
- v-model:expanded-keys="expandedKeys"
- @group-selected="handleGroupSelected"
- @group-removed="handleGroupRemoved"
- />
- </template>
- </PagedTable>
- </ComponentPermissionGuard>
- </NTabPane>
-
- <template #suffix>
- <div class="flex items-center gap-x-2">
- <!-- USERS tab actions -->
- <template v-if="state.typeTab === 'USERS'">
- <SearchBox
- v-model:value="state.activeUserFilterText"
- />
- <PermissionGuardWrapper
- v-slot="slotProps"
- :permissions="['bb.settings.get']"
- >
- <NButton
- class="capitalize"
- :disabled="!hasDirectorySyncFeature || slotProps.disabled"
- @click="
- () => {
- state.showAadSyncDrawer = true;
- }
- "
- >
- <template #icon>
- <SettingsIcon class="h-5 w-5" />
- <FeatureBadge :feature="PlanFeature.FEATURE_DIRECTORY_SYNC" />
- </template>
- {{ $t(`settings.members.entra-sync.self`) }}
- </NButton>
- </PermissionGuardWrapper>
-
- <PermissionGuardWrapper
- v-slot="slotProps"
- :permissions="['bb.users.create']"
- >
- <NButton
- type="primary"
- class="capitalize"
- :disabled="slotProps.disabled"
- @click="handleCreateUser"
- >
- <template #icon>
- <PlusIcon class="h-5 w-5" />
- </template>
- {{ $t(`settings.members.add-user`) }}
- </NButton>
- </PermissionGuardWrapper>
- </template>
-
- <!-- GROUPS tab actions -->
- <template v-if="state.typeTab === 'GROUPS'">
- <SearchBox
- v-model:value="state.activeGroupFilterText"
- />
- <PermissionGuardWrapper
- v-slot="slotProps"
- :permissions="['bb.settings.get']"
- >
- <NButton
- class="capitalize"
- :disabled="!hasDirectorySyncFeature || slotProps.disabled"
- @click="
- () => {
- state.showAadSyncDrawer = true;
- }
- "
- >
- <template #icon>
- <SettingsIcon class="h-5 w-5" />
- <FeatureBadge :feature="PlanFeature.FEATURE_DIRECTORY_SYNC" />
- </template>
- {{ $t(`settings.members.entra-sync.self`) }}
- </NButton>
- </PermissionGuardWrapper>
-
- <PermissionGuardWrapper
- v-slot="slotProps"
- :permissions="['bb.groups.create']"
- >
- <NPopover
- :disabled="slotProps.disabled || settingV1Store.workspaceProfile.domains.length > 0"
- >
- <template #trigger>
- <NButton
- type="primary"
- :disabled="
- slotProps.disabled ||
- settingV1Store.workspaceProfile.domains.length === 0 ||
- !hasUserGroupFeature
- "
- @click="handleCreateGroup"
- >
- <template #icon>
- <PlusIcon class="h-5 w-5" />
- <FeatureBadge :feature="PlanFeature.FEATURE_USER_GROUPS" />
- </template>
- {{ $t(`settings.members.groups.add-group`) }}
- </NButton>
- </template>
- <p>
- {{ $t("settings.members.groups.workspace-domain-required") }}
- <router-link
- :to="{
- name: SETTING_ROUTE_WORKSPACE_GENERAL,
- hash: '#domain-restriction',
- }"
- class="normal-link"
- >
- {{ $t("common.configure") }}
- </router-link>
- </p>
- </NPopover>
- </PermissionGuardWrapper>
- </template>
- </div>
- </template>
- </NTabs>
-
- <!-- Inactive users section for USERS tab (self-hosted only) -->
- <div v-if="!isSaaSMode && state.typeTab === 'USERS' && hasListPermission">
- <NCheckbox v-model:checked="state.showInactiveUserList">
- <span class="textinfolabel">
- {{ $t("settings.members.show-inactive") }}
- </span>
- </NCheckbox>
-
- <template v-if="state.showInactiveUserList">
- <div class="flex justify-between items-center mt-2 mb-4">
- <p class="text-lg font-medium leading-7">
- <span>{{ $t("settings.members.inactive-users") }}</span>
- </p>
-
- <div>
- <SearchBox v-model:value="state.inactiveUserFilterText" />
- </div>
- </div>
-
- <PagedTable
- ref="deletedUserPagedTable"
- session-key="bb.paged-user-table.deleted"
- :fetch-list="fetchInactiveUserList"
- >
- <template #table="{ list, loading }">
- <UserDataTable
- :loading="loading"
- :show-roles="false"
- :user-list="list"
- :keyword="state.inactiveUserFilterText"
- @user-updated="handleUserRestore"
- />
- </template>
- </PagedTable>
- </template>
- </div>
-
- </div>
-
- <CreateUserDrawer
- v-if="state.showCreateUserDrawer"
- :user="state.editingUser"
- @close="() => {
- state.showCreateUserDrawer = false
- state.editingUser = undefined
- }"
- @created="handleUserUpdated"
- @updated="handleUserUpdated"
- />
- <CreateGroupDrawer
- v-if="state.showCreateGroupDrawer"
- :group="state.editingGroup"
- @close="() => {
- state.showCreateGroupDrawer = false
- state.editingGroup = undefined
- }"
- @removed="(group) => {
- handleGroupRemoved(group)
- state.showCreateGroupDrawer = false
- }"
- @updated="handleGroupUpdated"
- />
-
- <AADSyncDrawer
- :show="state.showAadSyncDrawer"
- @close="state.showAadSyncDrawer = false"
- />
-</template>
-
-<script setup lang="ts">
-import { PlusIcon, SettingsIcon } from "lucide-vue-next";
-import { NButton, NCheckbox, NPopover, NTabPane, NTabs } from "naive-ui";
-import { computed, onMounted, reactive, ref, watch, watchEffect } from "vue";
-import type { ComponentExposed } from "vue-component-type-helpers";
-import { useI18n } from "vue-i18n";
-import { RouterLink, useRoute, useRouter } from "vue-router";
-import { BBAttention } from "@/bbkit";
-import { FeatureBadge } from "@/components/FeatureGuard";
-import WorkspaceMembers from "@/components/Member/Views/WorkspaceMembers.vue";
-import ComponentPermissionGuard from "@/components/Permission/ComponentPermissionGuard.vue";
-import PermissionGuardWrapper from "@/components/Permission/PermissionGuardWrapper.vue";
-import AADSyncDrawer from "@/components/User/Settings/AADSyncDrawer.vue";
-import CreateGroupDrawer from "@/components/User/Settings/CreateGroupDrawer.vue";
-import CreateUserDrawer from "@/components/User/Settings/CreateUserDrawer.vue";
-import UserDataTable from "@/components/User/Settings/UserDataTable/index.vue";
-import UserDataTableByGroup from "@/components/User/Settings/UserDataTableByGroup/index.vue";
-import { SearchBox } from "@/components/v2";
-import PagedTable from "@/components/v2/Model/PagedTable.vue";
-import { WORKSPACE_ROUTE_USER_PROFILE } from "@/router/dashboard/workspaceRoutes";
-import { SETTING_ROUTE_WORKSPACE_GENERAL } from "@/router/dashboard/workspaceSetting";
-import {
- featureToRef,
- useActuatorV1Store,
- useGroupStore,
- useSettingV1Store,
- useSubscriptionV1Store,
- useUIStateStore,
- useUserStore,
-} from "@/store";
-import { groupNamePrefix } from "@/store/modules/v1/common";
-import { unknownUser } from "@/types";
-import { State } from "@/types/proto-es/v1/common_pb";
-import type { Group } from "@/types/proto-es/v1/group_service_pb";
-import { PlanFeature } from "@/types/proto-es/v1/subscription_service_pb";
-import { type User } from "@/types/proto-es/v1/user_service_pb";
-import { hasWorkspacePermissionV2 } from "@/utils";
-
-const tabList = ["USERS", "MEMBERS", "GROUPS"] as const;
-type MemberTab = (typeof tabList)[number];
-const isMemberTab = (tab: unknown): tab is MemberTab =>
- tabList.includes(tab as MemberTab);
-const isSaaSMode = useActuatorV1Store().isSaaSMode;
-const defaultTab: MemberTab = isSaaSMode ? "MEMBERS" : "USERS";
-
-type LocalState = {
- typeTab: MemberTab;
- activeUserFilterText: string;
- activeGroupFilterText: string;
- inactiveUserFilterText: string;
- showInactiveUserList: boolean;
- showCreateUserDrawer: boolean;
- showCreateGroupDrawer: boolean;
- showAadSyncDrawer: boolean;
- editingGroup?: Group;
- editingUser?: User;
-};
-
-const state = reactive<LocalState>({
- typeTab: defaultTab,
- activeUserFilterText: "",
- activeGroupFilterText: "",
- inactiveUserFilterText: "",
- showInactiveUserList: false,
- showCreateUserDrawer: false,
- showCreateGroupDrawer: false,
- showAadSyncDrawer: false,
-});
-
-const { t } = useI18n();
-const route = useRoute();
-const router = useRouter();
-const userStore = useUserStore();
-const groupStore = useGroupStore();
-const uiStateStore = useUIStateStore();
-const actuatorStore = useActuatorV1Store();
-const settingV1Store = useSettingV1Store();
-const subscriptionV1Store = useSubscriptionV1Store();
-const userPagedTable = ref<ComponentExposed<typeof PagedTable<User>>>();
-const groupPagedTable = ref<ComponentExposed<typeof PagedTable<Group>>>();
-const deletedUserPagedTable = ref<ComponentExposed<typeof PagedTable<User>>>();
-const expandedKeys = ref<string[]>([]);
-
-watch(
- () => route.hash,
- (hash) => {
- const tab = hash.slice(1);
- if (isMemberTab(tab)) {
- state.typeTab = tab;
- } else {
- state.typeTab = defaultTab;
- }
- },
- {
- immediate: true,
- }
-);
-
-watch(
- () => state.typeTab,
- (tab) => {
- router.push({ hash: `#${tab}` });
- }
-);
-
-const hasListPermission = computed(() => {
- if (state.typeTab === "USERS") {
- return hasWorkspacePermissionV2("bb.users.list");
- }
- return false;
-});
-
-const fetchGroupList = async ({
- pageToken,
- pageSize,
-}: {
- pageToken: string;
- pageSize: number;
-}) => {
- const { groups, nextPageToken } = await groupStore.fetchGroupList({
- pageToken,
- pageSize,
- filter: {
- query: state.activeGroupFilterText,
- },
- });
- return { list: groups, nextPageToken };
-};
-
-const fetchUserList = async ({
- pageToken,
- pageSize,
-}: {
- pageToken: string;
- pageSize: number;
-}) => {
- const { users, nextPageToken } = await userStore.fetchUserList({
- pageToken,
- pageSize,
- filter: {
- query: state.activeUserFilterText,
- },
- });
- return { list: users, nextPageToken };
-};
-
-const fetchInactiveUserList = async ({
- pageToken,
- pageSize,
-}: {
- pageToken: string;
- pageSize: number;
-}) => {
- const { users, nextPageToken } = await userStore.fetchUserList({
- pageToken,
- pageSize,
- filter: {
- query: state.inactiveUserFilterText,
- state: State.DELETED,
- },
- });
- return { list: users, nextPageToken };
-};
-
-const hasDirectorySyncFeature = featureToRef(
- PlanFeature.FEATURE_DIRECTORY_SYNC
-);
-
-const hasUserGroupFeature = featureToRef(PlanFeature.FEATURE_USER_GROUPS);
-
-onMounted(async () => {
- if (!uiStateStore.getIntroStateByKey("member.visit")) {
- uiStateStore.saveIntroStateByKey({
- key: "member.visit",
- newState: true,
- });
- }
-});
-
-watchEffect(async () => {
- const name = route.query.name as string;
- if (name?.startsWith(groupNamePrefix)) {
- state.typeTab = "GROUPS";
- state.editingGroup = await groupStore.getOrFetchGroupByIdentifier(name);
- state.showCreateGroupDrawer = !!state.editingGroup;
- }
-});
-
-const activeUserCount = computed(() => {
- return actuatorStore.activeUserCount;
-});
-
-const remainingUserCount = computed((): number => {
- return Math.max(
- 0,
- subscriptionV1Store.userCountLimit - actuatorStore.activeUserCount
- );
-});
-
-const userCountAttention = computed((): string => {
- const upgrade = t("subscription.usage.user-count.upgrade");
- let status = "";
-
- if (remainingUserCount.value > 0) {
- status = t("subscription.usage.user-count.remaining", {
- total: subscriptionV1Store.userCountLimit,
- count: remainingUserCount.value,
- });
- } else {
- status = t("subscription.usage.user-count.runoutof", {
- total: subscriptionV1Store.userCountLimit,
- });
- }
-
- return `${status} ${upgrade}`;
-});
-
-const handleCreateGroup = () => {
- state.editingGroup = undefined;
- state.showCreateGroupDrawer = true;
-};
-
-const handleUserSelected = (user: User) => {
- router.push({
- name: WORKSPACE_ROUTE_USER_PROFILE,
- params: {
- principalEmail: user.email,
- },
- });
-};
-
-const handleGroupSelected = (group: Group) => {
- state.editingGroup = group;
- state.showCreateGroupDrawer = true;
-};
-
-const handleGroupRemoved = (group: Group) => {
- groupPagedTable.value?.removeCache(group);
-};
-
-const handleCreateUser = () => {
- state.editingUser = {
- ...unknownUser(),
- title: "",
- };
- state.showCreateUserDrawer = true;
-};
-
-const handleUserUpdated = (user: User) => {
- if (user.state === State.DELETED) {
- return handleUserArchived(user);
- }
- return userPagedTable.value?.updateCache([user]);
-};
-
-const handleUserRestore = (user: User) => {
- if (user.state !== State.ACTIVE) {
- return;
- }
- deletedUserPagedTable.value?.removeCache(user);
- userPagedTable.value?.updateCache([user]);
-};
-
-const handleUserArchived = (user: User) => {
- if (user.state !== State.DELETED) {
- return;
- }
- userPagedTable.value?.removeCache(user);
- deletedUserPagedTable.value?.updateCache([user]);
-};
-
-const handleGroupUpdated = (group: Group) => {
- const expanded = [...expandedKeys.value];
- groupPagedTable.value?.updateCache([group]);
- requestAnimationFrame(() => {
- expandedKeys.value = [...expanded];
- });
-};
-</script>