- {t('core.dataset.search.search mode')} |
- {t('core.dataset.search.Max Tokens')} |
- {t('core.dataset.search.Min Similarity')} |
- {hasReRankModel && {t('core.dataset.search.ReRank')} | }
- {t('core.module.template.Query extension')} |
+ {t('common:core.dataset.search.search mode')} |
+ {t('common:core.dataset.search.Max Tokens')} |
+ {t('common:core.dataset.search.Min Similarity')} |
+ {hasReRankModel && {t('common:core.dataset.search.ReRank')} | }
+ {t('common:core.module.template.Query extension')} |
{hasEmptyResponseMode && (
- {t('core.dataset.search.Empty result response')} |
+ {t('common:core.dataset.search.Empty result response')} |
)}
@@ -75,7 +75,7 @@ const SearchParamsTip = ({
{limit}
- {hasSimilarityMode ? similarity : t('core.dataset.search.Nonsupport')}
+ {hasSimilarityMode ? similarity : t('common:core.dataset.search.Nonsupport')}
|
{hasReRankModel && (
diff --git a/projects/app/src/components/core/dataset/SelectModal.tsx b/projects/app/src/components/core/dataset/SelectModal.tsx
index d1ea2f44a9d..d899f73d6cb 100644
--- a/projects/app/src/components/core/dataset/SelectModal.tsx
+++ b/projects/app/src/components/core/dataset/SelectModal.tsx
@@ -41,7 +41,7 @@ const DatasetSelectContainer = ({
parentId: path.parentId,
parentName: path.parentName
}))}
- FirstPathDom={t('core.chat.Select dataset')}
+ FirstPathDom={t('common:core.chat.Select dataset')}
onClick={(e) => {
setParentId(e);
}}
diff --git a/projects/app/src/components/support/apikey/Table.tsx b/projects/app/src/components/support/apikey/Table.tsx
index 305887967d2..6bf77a508be 100644
--- a/projects/app/src/components/support/apikey/Table.tsx
+++ b/projects/app/src/components/support/apikey/Table.tsx
@@ -96,7 +96,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
- {t('support.openapi.Api manager')}
+ {t('common:support.openapi.Api manager')}
{feConfigs?.docUrl && (
{
color={'primary.500'}
fontSize={'sm'}
>
- {t('common.Read document')}
+ {t('common:common.Read document')}
)}
@@ -122,10 +122,10 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
borderRadius={'md'}
cursor={'pointer'}
userSelect={'none'}
- onClick={() => copyData(baseUrl, t('support.openapi.Copy success'))}
+ onClick={() => copyData(baseUrl, t('common:support.openapi.Copy success'))}
>
- {t('support.openapi.Api baseurl')}
+ {t('common:support.openapi.Api baseurl')}
{baseUrl}
@@ -143,7 +143,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
})
}
>
- {t('New Create')}
+ {t('common:New Create')}
@@ -151,17 +151,17 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
- {t('Name')} |
+ {t('common:Name')} |
Api Key |
- {t('support.outlink.Usage points')} |
+ {t('common:support.outlink.Usage points')} |
{feConfigs?.isPlus && (
<>
- {t('common.Expired Time')} |
+ {t('common:common.Expired Time')} |
>
)}
- {t('common.Create Time')} |
- {t('common.Last use time')} |
+ {t('common:common.Create Time')} |
+ {t('common:common.Last use time')} |
|
@@ -174,7 +174,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
{Math.round(usagePoints)}/
{feConfigs?.isPlus && limit?.maxUsagePoints && limit?.maxUsagePoints > -1
? `${limit?.maxUsagePoints}`
- : t('common.Unlimited')}
+ : t('common:common.Unlimited')}
{feConfigs?.isPlus && (
<>
@@ -189,7 +189,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
{lastUsedTime
? dayjs(lastUsedTime).format('YYYY/MM/DD\nHH:mm:ss')
- : t('common.Un used')}
+ : t('common:common.Un used')}
|
{
{
children: [
{
- label: t('common.Edit'),
+ label: t('common:common.Edit'),
icon: 'edit',
onClick: () =>
setEditData({
@@ -218,7 +218,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
})
},
{
- label: t('common.Delete'),
+ label: t('common:common.Delete'),
icon: 'delete',
type: 'danger',
onClick: () => openConfirm(() => onclickRemove(_id))()
@@ -256,9 +256,9 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
iconSrc="/imgs/modal/key.svg"
title={
- {t('support.openapi.New api key')}
+ {t('common:support.openapi.New api key')}
- {t('support.openapi.New api key tip')}
+ {t('common:support.openapi.New api key tip')}
}
@@ -281,7 +281,7 @@ const ApiKeyTable = ({ tips, appId }: { tips: string; appId?: string }) => {
@@ -338,12 +338,12 @@ function EditKeyModal({
>
- {t('Name')}
+ {t('common:Name')}
@@ -351,8 +351,11 @@ function EditKeyModal({
<>
- {t('support.outlink.Max usage points')}
-
+ {t('common:support.outlink.Max usage points')}
+
- {t('common.Expired Time')}
+ {t('common:common.Expired Time')}
diff --git a/projects/app/src/components/support/laf/LafAccountModal.tsx b/projects/app/src/components/support/laf/LafAccountModal.tsx
index 239d36f76ec..8725aff2e96 100644
--- a/projects/app/src/components/support/laf/LafAccountModal.tsx
+++ b/projects/app/src/components/support/laf/LafAccountModal.tsx
@@ -55,7 +55,7 @@ const LafAccountModal = ({
const token = await postLafPat2Token(pat);
setValue('token', token);
},
- errorToast: t('plugin.Invalid Env')
+ errorToast: t('common:plugin.Invalid Env')
});
const { data: appListData = [] } = useQuery(
@@ -91,18 +91,18 @@ const LafAccountModal = ({
initUserInfo();
onClose();
},
- successToast: t('common.Update Success'),
- errorToast: t('common.Update Failed')
+ successToast: t('common:common.Update Success'),
+ errorToast: t('common:common.Update Failed')
});
return (
-
+
- {t('support.user.Laf account intro')}
+ {t('common:support.user.Laf account intro')}
- {t('support.user.Laf account course')}
+ {t('common:support.user.Laf account course')}
@@ -121,7 +121,7 @@ const LafAccountModal = ({
flex={'1 0 0'}
size={'sm'}
{...register('pat')}
- placeholder={t('plugin.Enter PAT')}
+ placeholder={t('common:plugin.Enter PAT')}
/>
{appid && (
)}
diff --git a/projects/app/src/components/support/permission/ConfigPerModal/index.tsx b/projects/app/src/components/support/permission/ConfigPerModal/index.tsx
index ee904fb735f..b4cf7066905 100644
--- a/projects/app/src/components/support/permission/ConfigPerModal/index.tsx
+++ b/projects/app/src/components/support/permission/ConfigPerModal/index.tsx
@@ -48,7 +48,7 @@ const ConfigPerModal = ({
isOpen
iconSrc="/imgs/modal/key.svg"
onClose={onClose}
- title={t('permission.Permission config')}
+ title={t('common:permission.Permission config')}
>
@@ -61,7 +61,7 @@ const ConfigPerModal = ({
)}
- {t('permission.Default permission')}
+ {t('common:permission.Default permission')}
- {t('permission.Collaborator')}
+ {t('common:permission.Collaborator')}
}
onClick={onOpenManageModal}
>
- {t('permission.Manage')}
+ {t('common:permission.Manage')}
}
onClick={onOpenAddMember}
>
- {t('common.Add')}
+ {t('common:common.Add')}
diff --git a/projects/app/src/components/support/permission/MemberManager/AddMemberModal.tsx b/projects/app/src/components/support/permission/MemberManager/AddMemberModal.tsx
index a2c77ed4e48..1f93951ed05 100644
--- a/projects/app/src/components/support/permission/MemberManager/AddMemberModal.tsx
+++ b/projects/app/src/components/support/permission/MemberManager/AddMemberModal.tsx
@@ -71,7 +71,7 @@ function AddMemberModal({ onClose }: AddModalPropsType) {
permission: selectedPermission
});
},
- successToast: t('common.Add Success'),
+ successToast: t('common:common.Add Success'),
errorToast: 'Error',
onSuccess() {
onClose();
diff --git a/projects/app/src/components/support/permission/MemberManager/MemberListCard.tsx b/projects/app/src/components/support/permission/MemberManager/MemberListCard.tsx
index 642431569ab..09aa927090c 100644
--- a/projects/app/src/components/support/permission/MemberManager/MemberListCard.tsx
+++ b/projects/app/src/components/support/permission/MemberManager/MemberListCard.tsx
@@ -21,7 +21,7 @@ const MemberListCard = ({ tagStyle, ...props }: MemberListCardProps) => {
{collaboratorList?.length === 0 ? (
- {t('permission.Not collaborator')}
+ {t('common:permission.Not collaborator')}
) : (
diff --git a/projects/app/src/components/support/permission/MemberManager/PermissionSelect.tsx b/projects/app/src/components/support/permission/MemberManager/PermissionSelect.tsx
index 1739da0374f..3fe95e39947 100644
--- a/projects/app/src/components/support/permission/MemberManager/PermissionSelect.tsx
+++ b/projects/app/src/components/support/permission/MemberManager/PermissionSelect.tsx
@@ -251,7 +251,7 @@ function PermissionSelect({
}}
>
- {t('common.Remove')}
+ {t('common:common.Remove')}
>
)}
diff --git a/projects/app/src/components/support/permission/PermissionTags/index.tsx b/projects/app/src/components/support/permission/PermissionTags/index.tsx
index 99582d5b65b..acb56b446dc 100644
--- a/projects/app/src/components/support/permission/PermissionTags/index.tsx
+++ b/projects/app/src/components/support/permission/PermissionTags/index.tsx
@@ -19,7 +19,7 @@ const PermissionTag = ({
const Per = new Permission({ per: permission.value });
const commonLabel = (() => {
- if (permission.isOwner) return t('permission.Owner');
+ if (permission.isOwner) return t('common:permission.Owner');
if (permission.hasManagePer) return PermissionList['manage'].name;
if (permission.hasWritePer) return PermissionList['write'].name;
if (permission.hasReadPer) return PermissionList['read'].name;
diff --git a/projects/app/src/components/support/permission/Radio/index.tsx b/projects/app/src/components/support/permission/Radio/index.tsx
index da5bae434f1..8db324655ba 100644
--- a/projects/app/src/components/support/permission/Radio/index.tsx
+++ b/projects/app/src/components/support/permission/Radio/index.tsx
@@ -18,14 +18,14 @@ const PermissionRadio = ({
list={[
{
icon: 'support/permission/privateLight',
- title: t('permission.Private'),
- desc: t('permission.Private Tip'),
+ title: t('common:permission.Private'),
+ desc: t('common:permission.Private Tip'),
value: PermissionTypeEnum.private
},
{
icon: 'support/permission/publicLight',
- title: t('permission.Public'),
- desc: t('permission.Public Tip'),
+ title: t('common:permission.Public'),
+ desc: t('common:permission.Public Tip'),
value: PermissionTypeEnum.public
}
]}
diff --git a/projects/app/src/components/support/user/inform/SystemMsgModal.tsx b/projects/app/src/components/support/user/inform/SystemMsgModal.tsx
index 6d6cad3711e..cf880b4ca8e 100644
--- a/projects/app/src/components/support/user/inform/SystemMsgModal.tsx
+++ b/projects/app/src/components/support/user/inform/SystemMsgModal.tsx
@@ -30,12 +30,16 @@ const SystemMsgModal = ({}: {}) => {
}, [data, onClose, setSysMsgReadId]);
return (
-
+
-
+
);
diff --git a/projects/app/src/components/support/user/team/TeamManageModal/TeamCard.tsx b/projects/app/src/components/support/user/team/TeamManageModal/TeamCard.tsx
index 1426ea1ccd9..a679484545f 100644
--- a/projects/app/src/components/support/user/team/TeamManageModal/TeamCard.tsx
+++ b/projects/app/src/components/support/user/team/TeamManageModal/TeamCard.tsx
@@ -35,7 +35,7 @@ function TeamCard() {
const { feConfigs } = useSystemStore();
const { ConfirmModal: ConfirmLeaveTeamModal, openConfirm: openLeaveConfirm } = useConfirm({
- content: t('user.team.member.Confirm Leave')
+ content: t('common:user.team.member.Confirm Leave')
});
const { mutate: onLeaveTeam, isLoading: isLoadingLeaveTeam } = useRequest({
mutationFn: async (teamId?: string) => {
@@ -49,7 +49,7 @@ function TeamCard() {
onSuccess() {
refetchTeams();
},
- errorToast: t('user.team.Leave Team Failed')
+ errorToast: t('common:user.team.Leave Team Failed')
});
const {
@@ -65,7 +65,7 @@ function TeamCard() {
icon: 'support/team/memberLight',
label: (
- {t('user.team.Member')}
+ {t('common:user.team.Member')}
{members.length}
@@ -75,7 +75,7 @@ function TeamCard() {
},
{
icon: 'support/team/key',
- label: t('common.Role'),
+ label: t('common:common.Role'),
value: TabListEnum.permission
}
],
@@ -155,7 +155,7 @@ function TeamCard() {
}
}}
>
- {t('user.team.Invite Member')}
+ {t('common:user.team.Invite Member')}
)}
{userInfo?.team.permission.hasManagePer && feConfigs?.show_team_chat && (
@@ -169,7 +169,7 @@ function TeamCard() {
onOpenTeamTagsAsync();
}}
>
- {t('user.team.Team Tags Async')}
+ {t('common:user.team.Team Tags Async')}
)}
{!userInfo?.team.permission.isOwner && (
@@ -184,7 +184,7 @@ function TeamCard() {
openLeaveConfirm(() => onLeaveTeam(userInfo?.team?.teamId))();
}}
>
- {t('user.team.Leave Team')}
+ {t('common:user.team.Leave Team')}
)}
diff --git a/projects/app/src/components/support/user/team/TeamManageModal/TeamList.tsx b/projects/app/src/components/support/user/team/TeamManageModal/TeamList.tsx
index 3a73c2e2ef8..a6eedc7052a 100644
--- a/projects/app/src/components/support/user/team/TeamManageModal/TeamList.tsx
+++ b/projects/app/src/components/support/user/team/TeamManageModal/TeamList.tsx
@@ -29,7 +29,7 @@ function TeamList() {
borderBottom={'1.5px solid rgba(0, 0, 0, 0.05)'}
>
- {t('common.Team')}
+ {t('common:common.Team')}
{/* if there is no team */}
{myTeams.length < 1 && (
@@ -90,7 +90,7 @@ function TeamList() {
variant={'whitePrimary'}
onClick={() => onSwitchTeam(team.teamId)}
>
- {t('user.team.Check Team')}
+ {t('common:user.team.Check Team')}
)}
diff --git a/projects/app/src/components/support/user/team/TeamManageModal/components/EditInfoModal.tsx b/projects/app/src/components/support/user/team/TeamManageModal/components/EditInfoModal.tsx
index 63f84e7f722..0b5ba657c25 100644
--- a/projects/app/src/components/support/user/team/TeamManageModal/components/EditInfoModal.tsx
+++ b/projects/app/src/components/support/user/team/TeamManageModal/components/EditInfoModal.tsx
@@ -59,7 +59,7 @@ function EditModal({
setValue('avatar', src);
} catch (err: any) {
toast({
- title: getErrText(err, t('common.Select File Failed')),
+ title: getErrText(err, t('common:common.Select File Failed')),
status: 'warning'
});
}
@@ -75,8 +75,8 @@ function EditModal({
onSuccess();
onClose();
},
- successToast: t('common.Create Success'),
- errorToast: t('common.Create Failed')
+ successToast: t('common:common.Create Success'),
+ errorToast: t('common:common.Create Failed')
});
const { mutate: onclickUpdate, isLoading: updating } = useRequest({
mutationFn: async (data: EditTeamFormDataType) => {
@@ -90,8 +90,8 @@ function EditModal({
onSuccess();
onClose();
},
- successToast: t('common.Update Success'),
- errorToast: t('common.Update Failed')
+ successToast: t('common:common.Update Success'),
+ errorToast: t('common:common.Update Failed')
});
return (
@@ -99,14 +99,14 @@ function EditModal({
isOpen
onClose={onClose}
iconSrc="/imgs/modal/team.svg"
- title={defaultData.id ? t('user.team.Update Team') : t('user.team.Create Team')}
+ title={defaultData.id ? t('common:user.team.Update Team') : t('common:user.team.Create Team')}
>
- {t('user.team.Set Name')}
+ {t('common:user.team.Set Name')}
-
+
@@ -136,10 +136,10 @@ function EditModal({
<>
>
) : (
@@ -148,7 +148,7 @@ function EditModal({
isLoading={creating}
onClick={handleSubmit((data) => onclickCreate(data))}
>
- {t('common.Confirm Create')}
+ {t('common:common.Confirm Create')}
)}
diff --git a/projects/app/src/components/support/user/team/TeamManageModal/components/InviteModal.tsx b/projects/app/src/components/support/user/team/TeamManageModal/components/InviteModal.tsx
index ffdc77fd8dc..366d00fc024 100644
--- a/projects/app/src/components/support/user/team/TeamManageModal/components/InviteModal.tsx
+++ b/projects/app/src/components/support/user/team/TeamManageModal/components/InviteModal.tsx
@@ -28,7 +28,7 @@ const InviteModal = ({
const { t } = useTranslation();
const { userT } = useI18n();
const { ConfirmModal, openConfirm } = useConfirm({
- title: t('user.team.Invite Member Result Tip'),
+ title: t('common:user.team.Invite Member Result Tip'),
showCancel: false
});
const { userInfo } = useUserStore();
@@ -82,7 +82,7 @@ const InviteModal = ({
)();
},
- errorToast: t('user.team.Invite Member Failed Tip')
+ errorToast: t('common:user.team.Invite Member Failed Tip')
});
return (
@@ -91,9 +91,9 @@ const InviteModal = ({
iconSrc="/imgs/modal/team.svg"
title={
- {t('user.team.Invite Member')}
+ {t('common:user.team.Invite Member')}
- {t('user.team.Invite Member Tips')}
+ {t('common:user.team.Invite Member Tips')}
}
@@ -102,7 +102,7 @@ const InviteModal = ({
>
- {t('user.Account')}
+ {t('common:user.Account')}
@@ -116,7 +116,7 @@ const InviteModal = ({
isLoading={isLoading}
onClick={onInvite}
>
- {t('user.team.Confirm Invite')}
+ {t('common:user.team.Confirm Invite')}
diff --git a/projects/app/src/components/support/user/team/TeamManageModal/components/MemberTable.tsx b/projects/app/src/components/support/user/team/TeamManageModal/components/MemberTable.tsx
index 2c54b9ddb36..71d18400c1e 100644
--- a/projects/app/src/components/support/user/team/TeamManageModal/components/MemberTable.tsx
+++ b/projects/app/src/components/support/user/team/TeamManageModal/components/MemberTable.tsx
@@ -44,10 +44,10 @@ function MemberTable() {
- {t('common.Username')} |
- {t('common.Permission')} |
- {t('common.Status')} |
- {t('common.Action')} |
+ {t('common:common.Username')} |
+ {t('common:common.Permission')} |
+ {t('common:common.Status')} |
+ {t('common:common.Action')} |
diff --git a/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/AddManager.tsx b/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/AddManager.tsx
index 072aeb6ff37..48405a25b64 100644
--- a/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/AddManager.tsx
+++ b/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/AddManager.tsx
@@ -154,7 +154,7 @@ function AddManagerModal({ onClose, onSuccess }: { onClose: () => void; onSucces
diff --git a/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/index.tsx b/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/index.tsx
index bd74b02feac..9acfb911faa 100644
--- a/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/index.tsx
+++ b/projects/app/src/components/support/user/team/TeamManageModal/components/PermissionManage/index.tsx
@@ -49,7 +49,7 @@ function PermissionManage() {
>
- {t('user.team.role.Admin')}
+ {t('common:user.team.role.Admin')}
{
} else {
toast({
status: 'warning',
- title: t('common.system.Commercial version function')
+ title: t('common:common.system.Commercial version function')
});
}
}}
>
-
+
{userInfo?.team ? (
<>
@@ -53,7 +53,7 @@ const TeamMenu = () => {
) : (
<>
- {t('user.team.Personal Team')}
+ {t('common:user.team.Personal Team')}
>
)}
diff --git a/projects/app/src/components/support/user/team/TeamTagModal/index.tsx b/projects/app/src/components/support/user/team/TeamTagModal/index.tsx
index e10877f519e..7c8c462748c 100644
--- a/projects/app/src/components/support/user/team/TeamTagModal/index.tsx
+++ b/projects/app/src/components/support/user/team/TeamTagModal/index.tsx
@@ -63,14 +63,14 @@ const TeamTagsAsync = ({ onClose }: { onClose: () => void }) => {
initUserInfo();
onClose();
},
- errorToast: t('common.Create Failed')
+ errorToast: t('common:common.Create Failed')
});
const { mutate: onclickTagAsync, isLoading: isSyncing } = useRequest({
mutationFn: (data: FormType) => loadTeamTagsByDomain(data.teamDomain),
onSuccess(res) {
replaceTeamTags(res);
},
- successToast: t('support.user.team.Team Tags Async Success')
+ successToast: t('common:support.user.team.Team Tags Async Success')
});
useQuery(['getTeamsTags'], getTeamsTags, {
@@ -103,7 +103,7 @@ const TeamTagsAsync = ({ onClose }: { onClose: () => void }) => {
- {t('同步链接')}
+ {t('common:同步链接')}
void }) => {
- {t('分享链接')}
+ {t('common:分享链接')}
{/* code */}
@@ -143,7 +143,7 @@ const TeamTagsAsync = ({ onClose }: { onClose: () => void }) => {
- {t('标签列表')}
+ {t('common:标签列表')}
void }) => {
diff --git a/projects/app/src/components/support/user/team/UpdateInviteModal/index.tsx b/projects/app/src/components/support/user/team/UpdateInviteModal/index.tsx
index 96b2d421361..49e75f4faea 100644
--- a/projects/app/src/components/support/user/team/UpdateInviteModal/index.tsx
+++ b/projects/app/src/components/support/user/team/UpdateInviteModal/index.tsx
@@ -35,7 +35,7 @@ const UpdateInviteModal = () => {
onSuccess() {
toast({
status: 'success',
- title: t('user.team.invite.Accepted')
+ title: t('common:user.team.invite.Accepted')
});
refetch();
}
@@ -45,7 +45,7 @@ const UpdateInviteModal = () => {
onSuccess() {
toast({
status: 'success',
- title: t('user.team.invite.Reject')
+ title: t('common:user.team.invite.Reject')
});
refetch();
}
@@ -57,7 +57,7 @@ const UpdateInviteModal = () => {
iconSrc="/imgs/modal/team.svg"
title={
- {t('user.team.Processing invitations')}
+ {t('common:user.team.Processing invitations')}
{t('user.team.Processing invitations Tips', { amount: inviteList?.length })}
@@ -94,11 +94,11 @@ const UpdateInviteModal = () => {
status: TeamMemberStatusEnum.active
}),
undefined,
- t('user.team.invite.Accept Confirm')
+ t('common:user.team.invite.Accept Confirm')
)();
}}
>
- {t('user.team.invite.accept')}
+ {t('common:user.team.invite.accept')}
))}
- {t('user.team.invite.Deal Width Footer Tip')}
+ {t('common:user.team.invite.Deal Width Footer Tip')}
diff --git a/projects/app/src/components/support/wallet/NotSufficientModal/index.tsx b/projects/app/src/components/support/wallet/NotSufficientModal/index.tsx
index 6673ebb5d88..98f5b0dcfbc 100644
--- a/projects/app/src/components/support/wallet/NotSufficientModal/index.tsx
+++ b/projects/app/src/components/support/wallet/NotSufficientModal/index.tsx
@@ -13,11 +13,11 @@ const NotSufficientModal = () => {
const onClose = () => setIsNotSufficientModal(false);
return (
-
- {t('support.wallet.Not sufficient')}
+
+ {t('common:support.wallet.Not sufficient')}
diff --git a/projects/app/src/components/support/wallet/QRCodePayModal.tsx b/projects/app/src/components/support/wallet/QRCodePayModal.tsx
index 8aaa777ff1e..9683d688d5c 100644
--- a/projects/app/src/components/support/wallet/QRCodePayModal.tsx
+++ b/projects/app/src/components/support/wallet/QRCodePayModal.tsx
@@ -71,7 +71,7 @@ const QRCodePayModal = ({
);
return (
-
+
请微信扫码支付: {readPrice}元,请勿关闭页面
diff --git a/projects/app/src/components/support/wallet/StandardPlanContentList.tsx b/projects/app/src/components/support/wallet/StandardPlanContentList.tsx
index 8ff82915762..ed34dd32c04 100644
--- a/projects/app/src/components/support/wallet/StandardPlanContentList.tsx
+++ b/projects/app/src/components/support/wallet/StandardPlanContentList.tsx
@@ -94,7 +94,7 @@ const StandardPlanContentList = ({
{
router.push(AI_POINT_USAGE_CARD_ROUTE);
}}
diff --git a/projects/app/src/pages/account/components/BillTable.tsx b/projects/app/src/pages/account/components/BillTable.tsx
index 0298208ca6d..12d0cc06532 100644
--- a/projects/app/src/pages/account/components/BillTable.tsx
+++ b/projects/app/src/pages/account/components/BillTable.tsx
@@ -43,7 +43,7 @@ const BillTable = () => {
const billTypeList = useMemo(
() =>
[
- { label: t('common.All'), value: '' },
+ { label: t('common:common.All'), value: '' },
...Object.entries(billTypeMap).map(([key, value]) => ({
label: t(value.label),
value: key
@@ -120,9 +120,9 @@ const BillTable = () => {
w={'130px'}
>
- {t('user.Time')} |
- {t('support.wallet.Amount')} |
- {t('support.wallet.bill.Status')} |
+ {t('common:user.Time')} |
+ {t('common:support.wallet.Amount')} |
+ {t('common:support.wallet.bill.Status')} |
|
@@ -139,11 +139,11 @@ const BillTable = () => {
{item.status === 'NOTPAY' && (
)}
|
@@ -164,7 +164,7 @@ const BillTable = () => {
>
- {t('support.wallet.noBill')}
+ {t('common:support.wallet.noBill')}
)}
@@ -187,40 +187,40 @@ function BillDetailModal({ bill, onClose }: { bill: BillSchemaType; onClose: ()
isOpen={true}
onClose={onClose}
iconSrc="/imgs/modal/bill.svg"
- title={t('support.wallet.usage.Usage Detail')}
+ title={t('common:support.wallet.usage.Usage Detail')}
maxW={['90vw', '700px']}
>
- {t('support.wallet.bill.Number')}:
+ {t('common:support.wallet.bill.Number')}:
{bill.orderId}
- {t('support.wallet.usage.Time')}:
+ {t('common:support.wallet.usage.Time')}:
{dayjs(bill.createTime).format('YYYY/MM/DD HH:mm:ss')}
- {t('support.wallet.bill.Status')}:
+ {t('common:support.wallet.bill.Status')}:
{t(billStatusMap[bill.status]?.label)}
{!!bill.metadata?.payWay && (
- {t('support.wallet.bill.payWay.Way')}:
+ {t('common:support.wallet.bill.payWay.Way')}:
{t(billPayWayMap[bill.metadata.payWay]?.label)}
)}
- {t('support.wallet.Amount')}:
+ {t('common:support.wallet.Amount')}:
{formatStorePrice2Read(bill.price)}元
- {t('support.wallet.bill.Type')}:
+ {t('common:support.wallet.bill.Type')}:
{t(billTypeMap[bill.type]?.label)}
{!!bill.metadata?.subMode && (
- {t('support.wallet.subscription.mode.Period')}:
+ {t('common:support.wallet.subscription.mode.Period')}:
{t(subModeMap[bill.metadata.subMode]?.label)}
@@ -228,7 +228,7 @@ function BillDetailModal({ bill, onClose }: { bill: BillSchemaType; onClose: ()
{!!bill.metadata?.standSubLevel && (
- {t('support.wallet.subscription.Stand plan level')}:
+ {t('common:support.wallet.subscription.Stand plan level')}:
{t(standardSubLevelMap[bill.metadata.standSubLevel]?.label)}
@@ -236,7 +236,7 @@ function BillDetailModal({ bill, onClose }: { bill: BillSchemaType; onClose: ()
{bill.metadata?.month !== undefined && (
- {t('support.wallet.subscription.Month amount')}:
+ {t('common:support.wallet.subscription.Month amount')}:
{bill.metadata?.month}
@@ -244,7 +244,7 @@ function BillDetailModal({ bill, onClose }: { bill: BillSchemaType; onClose: ()
{bill.metadata?.datasetSize !== undefined && (
- {t('support.wallet.subscription.Extra dataset size')}:
+ {t('common:support.wallet.subscription.Extra dataset size')}:
{bill.metadata?.datasetSize}
@@ -252,7 +252,7 @@ function BillDetailModal({ bill, onClose }: { bill: BillSchemaType; onClose: ()
{bill.metadata?.extraPoints !== undefined && (
- {t('support.wallet.subscription.Extra ai points')}:
+ {t('common:support.wallet.subscription.Extra ai points')}:
{bill.metadata.extraPoints}
diff --git a/projects/app/src/pages/account/components/Individuation.tsx b/projects/app/src/pages/account/components/Individuation.tsx
index 090d133f7f9..29eed44c280 100644
--- a/projects/app/src/pages/account/components/Individuation.tsx
+++ b/projects/app/src/pages/account/components/Individuation.tsx
@@ -29,7 +29,7 @@ const Individuation = () => {
});
reset(data);
toast({
- title: t('dataset.data.Update Success Tip'),
+ title: t('common:dataset.data.Update Success Tip'),
status: 'success'
});
},
@@ -40,12 +40,12 @@ const Individuation = () => {
- {t('support.account.Individuation')}
+ {t('common:support.account.Individuation')}
- {t('user.Language')}:
+ {t('common:user.Language')}:
{
- {t('user.Timezone')}:
+ {t('common:user.Timezone')}:
{
diff --git a/projects/app/src/pages/account/components/Info.tsx b/projects/app/src/pages/account/components/Info.tsx
index 6665c299a98..ad9e51c5948 100644
--- a/projects/app/src/pages/account/components/Info.tsx
+++ b/projects/app/src/pages/account/components/Info.tsx
@@ -127,7 +127,7 @@ const MyInfo = () => {
});
reset(data);
toast({
- title: t('dataset.data.Update Success Tip'),
+ title: t('common:dataset.data.Update Success Tip'),
status: 'success'
});
},
@@ -152,7 +152,7 @@ const MyInfo = () => {
});
} catch (err: any) {
toast({
- title: typeof err === 'string' ? err : t('common.error.Select avatar failed'),
+ title: typeof err === 'string' ? err : t('common:common.error.Select avatar failed'),
status: 'warning'
});
}
@@ -172,16 +172,16 @@ const MyInfo = () => {
{isPc && (
- {t('support.user.User self info')}
+ {t('common:support.user.User self info')}
)}
{isPc ? (
- {t('support.user.Avatar')}:
+ {t('common:support.user.Avatar')}:
-
+
{
cursor={'pointer'}
onClick={onOpenSelectFile}
>
-
+
{
- {t('user.Replace')}
+ {t('common:user.Replace')}
)}
{feConfigs.isPlus && (
- {t('user.Member Name')}:
+ {t('common:user.Member Name')}:
{
)}
- {t('user.Account')}:
+ {t('common:user.Account')}:
{userInfo?.username}
{feConfigs.isPlus && (
- {t('user.Password')}:
+ {t('common:user.Password')}:
*****
)}
- {t('user.Team')}:
+ {t('common:user.Team')}:
@@ -267,13 +267,13 @@ const MyInfo = () => {
{feConfigs.isPlus && (
- {t('user.team.Balance')}:
+ {t('common:user.team.Balance')}:
{formatStorePrice2Read(userInfo?.team?.balance).toFixed(3)} 元
{feConfigs?.show_pay && userInfo?.team?.permission.hasWritePer && (
)}
@@ -332,7 +332,7 @@ const PlanUsage = () => {
return {
colorScheme: 'green',
value: 0,
- maxSize: t('common.Unlimited'),
+ maxSize: t('common:common.Unlimited'),
usedSize: 0
};
}
@@ -347,7 +347,7 @@ const PlanUsage = () => {
return {
colorScheme,
value: rate * 100,
- maxSize: teamPlanStatus.datasetMaxSize || t('common.Unlimited'),
+ maxSize: teamPlanStatus.datasetMaxSize || t('common:common.Unlimited'),
usedSize: teamPlanStatus.usedDatasetSize
};
}, [teamPlanStatus, t]);
@@ -356,7 +356,7 @@ const PlanUsage = () => {
return {
colorScheme: 'green',
value: 0,
- maxSize: t('common.Unlimited'),
+ maxSize: t('common:common.Unlimited'),
usedSize: 0
};
}
@@ -372,7 +372,7 @@ const PlanUsage = () => {
return {
colorScheme,
value: rate * 100,
- max: teamPlanStatus.totalPoints ? teamPlanStatus.totalPoints : t('common.Unlimited'),
+ max: teamPlanStatus.totalPoints ? teamPlanStatus.totalPoints : t('common:common.Unlimited'),
used: teamPlanStatus.usedPoints ? Math.round(teamPlanStatus.usedPoints) : 0
};
}, [teamPlanStatus, t]);
@@ -382,13 +382,13 @@ const PlanUsage = () => {
- {t('support.wallet.subscription.Team plan and usage')}
+ {t('common:support.wallet.subscription.Team plan and usage')}
{
- {t('support.wallet.subscription.Current plan')}
+ {t('common:support.wallet.subscription.Current plan')}
{t(planName)}
@@ -410,7 +410,7 @@ const PlanUsage = () => {
{isFreeTeam ? (
<>
- {t('support.wallet.Plan reset time')}:
+ {t('common:support.wallet.Plan reset time')}:
{formatTime2YMD(standardPlan?.expiredTime)}
@@ -419,13 +419,13 @@ const PlanUsage = () => {
>
) : (
- {t('support.wallet.Plan expired time')}:
+ {t('common:support.wallet.Plan expired time')}:
{formatTime2YMD(standardPlan?.expiredTime)}
)}
@@ -471,7 +471,7 @@ const PlanUsage = () => {
- {t('support.user.team.Dataset usage')}
+ {t('common:support.user.team.Dataset usage')}
{datasetUsageMap.usedSize}/{datasetUsageMap.maxSize}
@@ -495,11 +495,11 @@ const PlanUsage = () => {
- {t('support.wallet.subscription.AI points usage')}
+ {t('common:support.wallet.subscription.AI points usage')}
{aiPointsUsageMap.used}/{aiPointsUsageMap.max}
@@ -573,7 +573,7 @@ const Other = () => {
>
- {t('system.Help Document')}
+ {t('common:system.Help Document')}
)}
@@ -595,7 +595,7 @@ const Other = () => {
>
- {t('common.system.Help Chatbot')}
+ {t('common:common.system.Help Chatbot')}
)}
@@ -662,7 +662,7 @@ const Other = () => {
h={'48px'}
fontSize={'sm'}
>
- {t('system.Concat us')}
+ {t('common:system.Concat us')}
)}
diff --git a/projects/app/src/pages/account/components/InformTable.tsx b/projects/app/src/pages/account/components/InformTable.tsx
index 665a26a90e6..74c68357a03 100644
--- a/projects/app/src/pages/account/components/InformTable.tsx
+++ b/projects/app/src/pages/account/components/InformTable.tsx
@@ -59,7 +59,7 @@ const InformTable = () => {
}
}}
>
- {t('support.inform.Read')}
+ {t('common:support.inform.Read')}
)}
diff --git a/projects/app/src/pages/account/components/OpenAIAccountModal.tsx b/projects/app/src/pages/account/components/OpenAIAccountModal.tsx
index f4360e65c12..c7a58a1403d 100644
--- a/projects/app/src/pages/account/components/OpenAIAccountModal.tsx
+++ b/projects/app/src/pages/account/components/OpenAIAccountModal.tsx
@@ -25,7 +25,7 @@ const OpenAIAccountModal = ({
onSuccess(res) {
onClose();
},
- errorToast: t('user.Set OpenAI Account Failed')
+ errorToast: t('common:user.Set OpenAI Account Failed')
});
return (
@@ -33,7 +33,7 @@ const OpenAIAccountModal = ({
isOpen
onClose={onClose}
iconSrc="common/openai"
- title={t('user.OpenAI Account Setting')}
+ title={t('common:user.OpenAI Account Setting')}
>
diff --git a/projects/app/src/pages/account/components/PayModal.tsx b/projects/app/src/pages/account/components/PayModal.tsx
index fe4e754d901..8af85730703 100644
--- a/projects/app/src/pages/account/components/PayModal.tsx
+++ b/projects/app/src/pages/account/components/PayModal.tsx
@@ -58,7 +58,12 @@ const PayModal = ({
}, [subPlans?.standard]);
return (
-
+
该余额仅用于自动续费标准套餐。如需购买额外套餐,可
@@ -93,7 +98,7 @@ const PayModal = ({
| |