mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-29 09:44:47 +00:00
perf: i18n (#4740)
* feat: login limit time config * doc * perf: code * i18n update * update lock * fix: ts * update package
This commit is contained in:
@@ -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 = ({
|
||||
|
@@ -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} />}
|
||||
|
@@ -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} />
|
||||
|
Reference in New Issue
Block a user