I18n Translations (#2267)

* rebase

* i18n-1

* add error info i18n

* fix

* fix

* refactor: 删除error.json

* delete useI18n
This commit is contained in:
papapatrick
2024-08-05 18:42:21 +08:00
committed by GitHub
parent 025d405fe2
commit 10dcdb5491
107 changed files with 1128 additions and 416 deletions

View File

@@ -287,7 +287,7 @@ const FileSelector = ({
{isMaxSelected ? (
<>
<Box color={'myGray.500'} fontSize={'xs'}>
{t('file:reached_max_file_count')}
</Box>
</>
) : (

View File

@@ -243,7 +243,7 @@ const Test = ({ datasetId }: { datasetId: string }) => {
</Box>
</Flex>
<Box mt={3} fontSize={'sm'}>
CSV 100
{t('common:info.csv_message')}
<Box
as={'span'}
color={'primary.600'}
@@ -256,7 +256,7 @@ const Test = ({ datasetId }: { datasetId: string }) => {
});
}}
>
{t('common:info.csv_download')}
</Box>
</Box>
</Box>

View File

@@ -154,7 +154,9 @@ function List() {
label={
<Flex flexDirection={'column'} alignItems={'center'}>
<Box fontSize={'xs'} color={'myGray.500'}>
{dataset.type === DatasetTypeEnum.folder ? '打开文件夹' : '打开知识库'}
{dataset.type === DatasetTypeEnum.folder
? t('common.folder.Open folder')
: t('common.folder.open_dataset')}
</Box>
</Flex>
}