perf: i18n (#4740)

* feat: login limit time config

* doc

* perf: code

* i18n update

* update lock

* fix: ts

* update package
This commit is contained in:
Archer
2025-05-05 16:16:59 +08:00
committed by GitHub
parent fdd4e9edbd
commit 864eff47c7
229 changed files with 1128 additions and 1293 deletions

View File

@@ -47,7 +47,7 @@ export const cronString2Label = (
) => {
const cronField = cronString2Fields(cronString);
if (!cronField) {
return t('common:common.Not open');
return t('common:not_open');
}
if (cronField[0] === 'month') {
@@ -82,7 +82,7 @@ export const cronString2Label = (
});
}
return t('common:common.Not open');
return t('common:not_open');
};
const CronSelector = ({

View File

@@ -136,11 +136,7 @@ export const MultipleRowSelect = ({
);
})}
{list.length === 0 && (
<EmptyTip
text={emptyTip ?? t('common:common.MultipleRowSelect.No data')}
pt={1}
pb={3}
/>
<EmptyTip text={emptyTip ?? t('common:no_select_data')} pt={1} pb={3} />
)}
</Box>
{children.length > 0 && <RenderList list={children} index={index + 1} />}
@@ -331,11 +327,7 @@ export const MultipleRowArraySelect = ({
);
})}
{list.length === 0 && (
<EmptyTip
text={emptyTip ?? t('common:common.MultipleRowSelect.No data')}
pt={1}
pb={3}
/>
<EmptyTip text={emptyTip ?? t('common:no_select_data')} pt={1} pb={3} />
)}
</Box>
{children.length > 0 && <RenderList list={children} index={index + 1} />}

View File

@@ -180,7 +180,7 @@ const MultipleSelect = <T = any,>({
>
{isSelectAll ? (
<Box fontSize={'mini'} color={'myGray.900'}>
{t('common:common.All')}
{t('common:All')}
</Box>
) : (
list
@@ -249,7 +249,7 @@ const MultipleSelect = <T = any,>({
{...menuItemStyles}
>
<Checkbox isChecked={isSelectAll} />
<Box flex={'1 0 0'}>{t('common:common.All')}</Box>
<Box flex={'1 0 0'}>{t('common:All')}</Box>
</MenuItem>
<MyDivider my={1} />