chore: update locale

This commit is contained in:
MystiPanda
2024-07-01 23:30:14 +08:00
parent 7b9bf9e552
commit f6ba6d0310
7 changed files with 28 additions and 29 deletions

View File

@@ -226,12 +226,12 @@ export const ProfileItem = (props: Props) => {
disabled: option?.groups === null,
},
{
label: "Edit Merge",
label: "Extend Config",
handler: onEditMerge,
disabled: option?.merge === null,
},
{
label: "Edit Script",
label: "Extend Script",
handler: onEditScript,
disabled: option?.script === null,
},
@@ -267,12 +267,12 @@ export const ProfileItem = (props: Props) => {
disabled: option?.groups === null,
},
{
label: "Edit Merge",
label: "Extend Config",
handler: onEditMerge,
disabled: option?.merge === null,
},
{
label: "Edit Script",
label: "Extend Script",
handler: onEditScript,
disabled: option?.script === null,
},

View File

@@ -104,8 +104,8 @@ export const ProfileMore = (props: Props) => {
</Box>
<Box sx={boxStyle}>
{id === "Script" ? (
hasError ? (
{id === "Script" &&
(hasError ? (
<Badge color="error" variant="dot" overlap="circular">
<IconButton
size="small"
@@ -127,16 +127,7 @@ export const ProfileMore = (props: Props) => {
>
<FeaturedPlayListRounded fontSize="inherit" />
</IconButton>
)
) : (
<Typography
noWrap
title={t(`${id} Description`)}
sx={i18n.language === "zh" ? { width: "calc(100% - 75px)" } : {}}
>
{t(`${id} Description`)}
</Typography>
)}
))}
</Box>
</ProfileBox>