mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-07-13 03:41:49 +08:00
Fix: pt_br translation and adding pt to knoledg-add (#4674)
### What problem does this PR solve? Fix Portuguese (Brazil) translation Adding portuguese to Knowledge adding settings. ### Type of change - [X] Bug Fix (non-breaking change which fixes an issue) - [X] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: Yingfeng <yingfeng.zhang@gmail.com>
This commit is contained in:
parent
efbaa484d7
commit
54803c4ef2
@ -6,6 +6,7 @@ import enUS from 'antd/locale/en_US';
|
|||||||
import vi_VN from 'antd/locale/vi_VN';
|
import vi_VN from 'antd/locale/vi_VN';
|
||||||
import zhCN from 'antd/locale/zh_CN';
|
import zhCN from 'antd/locale/zh_CN';
|
||||||
import zh_HK from 'antd/locale/zh_HK';
|
import zh_HK from 'antd/locale/zh_HK';
|
||||||
|
import pt_BR from 'antd/lib/locale/pt_BR';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import advancedFormat from 'dayjs/plugin/advancedFormat';
|
import advancedFormat from 'dayjs/plugin/advancedFormat';
|
||||||
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
||||||
@ -30,6 +31,7 @@ const AntLanguageMap = {
|
|||||||
zh: zhCN,
|
zh: zhCN,
|
||||||
'zh-TRADITIONAL': zh_HK,
|
'zh-TRADITIONAL': zh_HK,
|
||||||
vi: vi_VN,
|
vi: vi_VN,
|
||||||
|
'pt-BR': pt_BR,
|
||||||
};
|
};
|
||||||
|
|
||||||
const queryClient = new QueryClient();
|
const queryClient = new QueryClient();
|
||||||
|
@ -220,6 +220,7 @@ export default {
|
|||||||
upload: 'Upload',
|
upload: 'Upload',
|
||||||
english: 'English',
|
english: 'English',
|
||||||
chinese: 'Chinese',
|
chinese: 'Chinese',
|
||||||
|
portugueseBr: 'Portuguese (Brazil)',
|
||||||
embeddingModelPlaceholder: 'Please select a embedding model',
|
embeddingModelPlaceholder: 'Please select a embedding model',
|
||||||
chunkMethodPlaceholder: 'Please select a chunk method',
|
chunkMethodPlaceholder: 'Please select a chunk method',
|
||||||
save: 'Save',
|
save: 'Save',
|
||||||
|
@ -81,7 +81,7 @@ export default {
|
|||||||
searchKnowledgePlaceholder: 'Buscar',
|
searchKnowledgePlaceholder: 'Buscar',
|
||||||
noMoreData: 'Isso é tudo. Nada mais.',
|
noMoreData: 'Isso é tudo. Nada mais.',
|
||||||
},
|
},
|
||||||
knowledgeDetail: {
|
knowledgeDetails: {
|
||||||
dataset: 'Conjunto de dados',
|
dataset: 'Conjunto de dados',
|
||||||
testing: 'Teste de recuperação',
|
testing: 'Teste de recuperação',
|
||||||
files: 'Arquivos',
|
files: 'Arquivos',
|
||||||
@ -221,6 +221,7 @@ export default {
|
|||||||
upload: 'Enviar',
|
upload: 'Enviar',
|
||||||
english: 'Inglês',
|
english: 'Inglês',
|
||||||
chinese: 'Chinês',
|
chinese: 'Chinês',
|
||||||
|
portugueseBr: 'Português (Brasil)',
|
||||||
embeddingModelPlaceholder:
|
embeddingModelPlaceholder:
|
||||||
'Por favor, selecione um modelo de incorporação',
|
'Por favor, selecione um modelo de incorporação',
|
||||||
chunkMethodPlaceholder: 'Por favor, selecione um método de fragmentação',
|
chunkMethodPlaceholder: 'Por favor, selecione um método de fragmentação',
|
||||||
|
@ -76,6 +76,7 @@ const ConfigurationForm = ({ form }: { form: FormInstance }) => {
|
|||||||
<Option value="English">{t('english')}</Option>
|
<Option value="English">{t('english')}</Option>
|
||||||
<Option value="Chinese">{t('chinese')}</Option>
|
<Option value="Chinese">{t('chinese')}</Option>
|
||||||
<Option value="Vietnamese">{t('vietnamese')}</Option>
|
<Option value="Vietnamese">{t('vietnamese')}</Option>
|
||||||
|
<Option value="Portuguese (Brazil)">{t('portugueseBr')}</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user