fix i18next.d.ts (#2064)

* fix i18next.d.ts

* feat: packages web i18n

* delete file
This commit is contained in:
jingyang
2024-07-17 15:27:51 +08:00
committed by GitHub
parent 36f8755d09
commit 982325d066
75 changed files with 216 additions and 204 deletions

View File

@@ -343,7 +343,7 @@ function EditKeyModal({
placeholder={publishT('key alias') || 'key alias'}
maxLength={20}
{...register('name', {
required: t('common:common.Name is empty') || 'Name is empty'
required: t('common:common.name_is_empty') || 'name_is_empty'
})}
/>
</Flex>

View File

@@ -34,7 +34,7 @@ const PermissionIconText = ({
return PermissionTypeMap[per] ? (
<HStack spacing={1} fontSize={fontSize} {...props}>
<MyIcon name={PermissionTypeMap[per]?.iconLight as any} w={w} color={iconColor} />
<Box lineHeight={1}>{t(PermissionTypeMap[per]?.label)}</Box>
<Box lineHeight={1}>{t(PermissionTypeMap[per]?.label as any)}</Box>
</HStack>
) : null;
};

View File

@@ -189,7 +189,7 @@ function PermissionSelect({
<Box ml={4}>
<Box>{item.name}</Box>
<Box color={'myGray.500'} fontSize={'mini'}>
{t(item.description)}
{t(item.description as any)}
</Box>
</Box>
</Flex>

View File

@@ -68,7 +68,7 @@ function MemberTable() {
/>
</Td>
<Td color={TeamMemberStatusMap[item.status].color}>
{t(TeamMemberStatusMap[item.status]?.label || '')}
{t(TeamMemberStatusMap[item.status]?.label || ('' as any))}
</Td>
<Td>
{userInfo?.team.permission.hasManagePer &&

View File

@@ -103,7 +103,7 @@ const TeamTagsAsync = ({ onClose }: { onClose: () => void }) => {
<ModalBody style={{ padding: '10rpx' }}>
<Flex mt={3} alignItems={'center'}>
<Box mb={2} fontWeight="semibold">
{t('common:同步链接')}
{t('common:sync_link')}
</Box>
<Input
flex={1}
@@ -118,7 +118,7 @@ const TeamTagsAsync = ({ onClose }: { onClose: () => void }) => {
</Flex>
<Flex mt={3} alignItems={'center'}>
<Box mb={2} fontWeight="semibold">
{t('common:分享链接')}
{t('common:share_link')}
</Box>
{/* code */}
<Box ml={4} borderRadius={'md'} overflow={'hidden'}>
@@ -143,7 +143,7 @@ const TeamTagsAsync = ({ onClose }: { onClose: () => void }) => {
</Flex>
<Flex mt={3} alignItems={'center'}>
<Box mb={2} fontWeight="semibold">
{t('common:标签列表')}
{t('common:tag_list')}
</Box>
<HStack
ml={4}