mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-06 08:36:08 +08:00
fix: update i18n
This commit is contained in:
parent
b50823dbab
commit
23e472d507
@ -80,7 +80,6 @@ export default function AccessControl(props: AccessControlProps) {
|
||||
<RiBuildingLine className='h-4 w-4 text-text-primary' />
|
||||
<p className='system-sm-medium text-text-primary'>{t('app.accessControlDialog.accessItems.organization')}</p>
|
||||
</div>
|
||||
{!hideTip && <WebAppSSONotEnabledTip />}
|
||||
</div>
|
||||
</AccessControlItem>
|
||||
<AccessControlItem type={AccessMode.SPECIFIC_GROUPS_MEMBERS}>
|
||||
|
@ -3,12 +3,10 @@ import { RiAlertFill, RiCloseCircleFill, RiLockLine, RiOrganizationChart } from
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import { useCallback, useEffect } from 'react'
|
||||
import Avatar from '../../base/avatar'
|
||||
import Divider from '../../base/divider'
|
||||
import Tooltip from '../../base/tooltip'
|
||||
import Loading from '../../base/loading'
|
||||
import useAccessControlStore from '../../../../context/access-control-store'
|
||||
import AddMemberOrGroupDialog from './add-member-or-group-pop'
|
||||
import { useGlobalPublicStore } from '@/context/global-public-context'
|
||||
import type { AccessControlAccount, AccessControlGroup } from '@/models/access-control'
|
||||
import { AccessMode } from '@/models/access-control'
|
||||
import { useAppWhiteListSubjects } from '@/service/access-control'
|
||||
@ -19,11 +17,6 @@ export default function SpecificGroupsOrMembers() {
|
||||
const setSpecificGroups = useAccessControlStore(s => s.setSpecificGroups)
|
||||
const setSpecificMembers = useAccessControlStore(s => s.setSpecificMembers)
|
||||
const { t } = useTranslation()
|
||||
const systemFeatures = useGlobalPublicStore(s => s.systemFeatures)
|
||||
const hideTip = systemFeatures.webapp_auth.enabled
|
||||
&& (systemFeatures.webapp_auth.allow_sso
|
||||
|| systemFeatures.webapp_auth.allow_email_password_login
|
||||
|| systemFeatures.webapp_auth.allow_email_code_login)
|
||||
|
||||
const { isPending, data } = useAppWhiteListSubjects(appId, Boolean(appId) && currentMenu === AccessMode.SPECIFIC_GROUPS_MEMBERS)
|
||||
useEffect(() => {
|
||||
@ -37,7 +30,6 @@ export default function SpecificGroupsOrMembers() {
|
||||
<RiLockLine className='h-4 w-4 text-text-primary' />
|
||||
<p className='system-sm-medium text-text-primary'>{t('app.accessControlDialog.accessItems.specific')}</p>
|
||||
</div>
|
||||
{!hideTip && <WebAppSSONotEnabledTip />}
|
||||
</div>
|
||||
}
|
||||
|
||||
@ -48,10 +40,6 @@ export default function SpecificGroupsOrMembers() {
|
||||
<p className='system-sm-medium text-text-primary'>{t('app.accessControlDialog.accessItems.specific')}</p>
|
||||
</div>
|
||||
<div className='flex items-center gap-x-1'>
|
||||
{!hideTip && <>
|
||||
<WebAppSSONotEnabledTip />
|
||||
<Divider className='ml-2 mr-0 h-[14px]' type="vertical" />
|
||||
</>}
|
||||
<AddMemberOrGroupDialog />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -198,9 +198,9 @@ const translation = {
|
||||
accessControl: 'Web App Access Control',
|
||||
accessItemsDescription: {
|
||||
anyone: 'Anyone can access the web app (no login required)',
|
||||
specific: 'Only specific internal members can access the web app',
|
||||
organization: 'All internal members can access the web app',
|
||||
external: 'Authenticated external users can access the web app',
|
||||
specific: 'Only specific members within the platform can access the Web application',
|
||||
organization: 'All members within the platform can access the Web application',
|
||||
external: 'Only authenticated external users can access the Web application',
|
||||
},
|
||||
accessControlDialog: {
|
||||
title: 'Web App Access Control',
|
||||
@ -208,8 +208,8 @@ const translation = {
|
||||
accessLabel: 'Who has access',
|
||||
accessItems: {
|
||||
anyone: 'Anyone with the link',
|
||||
specific: 'Specific internal members',
|
||||
organization: 'All internal members',
|
||||
specific: 'Specific members within the platform',
|
||||
organization: 'All members within the platform',
|
||||
external: 'Authenticated external users',
|
||||
},
|
||||
groups_one: '{{count}} GROUP',
|
||||
@ -217,7 +217,7 @@ const translation = {
|
||||
members_one: '{{count}} MEMBER',
|
||||
members_other: '{{count}} MEMBERS',
|
||||
noGroupsOrMembers: 'No groups or members selected',
|
||||
webAppSSONotEnabledTip: 'Please contact enterprise administrator to configure the web app authentication method.',
|
||||
webAppSSONotEnabledTip: 'Please contact your organization administrator to configure external authentication for the Web application.',
|
||||
operateGroupAndMember: {
|
||||
searchPlaceholder: 'Search groups and members',
|
||||
allMembers: 'All members',
|
||||
|
@ -210,32 +210,27 @@ const translation = {
|
||||
},
|
||||
accessControl: 'Webアプリアクセス制御',
|
||||
accessItemsDescription: {
|
||||
anyone: '誰でも Web アプリにアクセス可能',
|
||||
specific: '特定のグループまたはメンバーのみが Web アプリにアクセス可能',
|
||||
organization: '組織内の誰でも Web アプリにアクセス可能',
|
||||
anyone: '誰でもこの web アプリにアクセスできます(ログイン不要)',
|
||||
specific: '特定のプラットフォーム内メンバーのみがこの Web アプリにアクセスできます',
|
||||
organization: 'プラットフォーム内の全メンバーがこの Web アプリにアクセスできます',
|
||||
external: '認証済みの外部ユーザーのみがこの Web アプリにアクセスできます',
|
||||
},
|
||||
accessControlDialog: {
|
||||
title: 'アクセス権限',
|
||||
description: 'Webアプリのアクセス権限を設定します',
|
||||
accessLabel: '誰がアクセスできますか',
|
||||
accessItemsDescription: {
|
||||
anyone: '誰でもこの web アプリにアクセスできます(ログイン不要)',
|
||||
specific: '特定の内部メンバーのみがこの web アプリにアクセスできます',
|
||||
organization: 'すべての内部メンバーがこの web アプリにアクセスできます',
|
||||
external: '認証された外部ユーザーがこの web アプリにアクセスできます',
|
||||
},
|
||||
accessItems: {
|
||||
anyone: 'リンクを知っているすべての人',
|
||||
specific: '特定の内部メンバー',
|
||||
organization: 'すべての内部メンバー',
|
||||
external: '認証された外部ユーザー',
|
||||
anyone: 'リンクを知っているすべてのユーザー',
|
||||
specific: '特定のプラットフォーム内メンバー',
|
||||
organization: 'プラットフォーム内の全メンバー',
|
||||
external: '認証済みの外部ユーザー',
|
||||
},
|
||||
groups_one: '{{count}} グループ',
|
||||
groups_other: '{{count}} グループ',
|
||||
members_one: '{{count}} メンバー',
|
||||
members_other: '{{count}} メンバー',
|
||||
noGroupsOrMembers: 'グループまたはメンバーが選択されていません',
|
||||
webAppSSONotEnabledTip: 'Webアプリの認証方式設定については、企業管理者へご連絡ください。',
|
||||
webAppSSONotEnabledTip: 'Web アプリの外部認証方式を設定するには、組織の管理者にお問い合わせください。',
|
||||
operateGroupAndMember: {
|
||||
searchPlaceholder: 'グループやメンバーを検索',
|
||||
allMembers: 'すべてのメンバー',
|
||||
|
@ -199,9 +199,9 @@ const translation = {
|
||||
accessControl: 'Web 应用访问控制',
|
||||
accessItemsDescription: {
|
||||
anyone: '任何人都可以访问该 web 应用(无需登录)',
|
||||
specific: '仅特定的内部成员可以访问该 web 应用',
|
||||
organization: '所有内部成员可以访问该 web 应用',
|
||||
external: '经过认证的外部用户可以访问该 web 应用',
|
||||
specific: '仅指定的平台内成员可访问该 Web 应用',
|
||||
organization: '平台内所有成员均可访问该 Web 应用',
|
||||
external: '仅经认证的外部用户可访问该 Web 应用',
|
||||
},
|
||||
accessControlDialog: {
|
||||
title: 'Web 应用访问权限',
|
||||
@ -209,8 +209,8 @@ const translation = {
|
||||
accessLabel: '谁可以访问',
|
||||
accessItems: {
|
||||
anyone: '任何人',
|
||||
specific: '指定内部成员',
|
||||
organization: '所有内部成员',
|
||||
specific: '平台内指定成员',
|
||||
organization: '平台内所有成员',
|
||||
external: '经认证的外部用户',
|
||||
},
|
||||
groups_one: '{{count}} 个组',
|
||||
@ -218,7 +218,7 @@ const translation = {
|
||||
members_one: '{{count}} 个成员',
|
||||
members_other: '{{count}} 个成员',
|
||||
noGroupsOrMembers: '未选择分组或成员',
|
||||
webAppSSONotEnabledTip: '请联系企业管理员配置 web 应用的身份认证方式。',
|
||||
webAppSSONotEnabledTip: '请联系企业管理员配置 Web 应用外部认证方式。',
|
||||
operateGroupAndMember: {
|
||||
searchPlaceholder: '搜索组或成员',
|
||||
allMembers: '所有成员',
|
||||
|
Loading…
x
Reference in New Issue
Block a user