mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-03 11:05:30 +08:00
### What problem does this PR solve? Feat: Support for Portuguese language #4557 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -20,7 +20,7 @@ const resources = {
|
||||
ja: translation_ja,
|
||||
es: translation_es,
|
||||
vi: translation_vi,
|
||||
'pt-br': translation_pt_br,
|
||||
'pt-BR': translation_pt_br,
|
||||
};
|
||||
const enFlattened = flattenObject(translation_en);
|
||||
const viFlattened = flattenObject(translation_vi);
|
||||
@ -39,7 +39,7 @@ export const translationTable = createTranslationTable(
|
||||
jaFlattened,
|
||||
pt_brFlattened,
|
||||
],
|
||||
['English', 'Vietnamese', 'Spanish', 'zh', 'zh-TRADITIONAL', 'ja', 'pt-br'],
|
||||
['English', 'Vietnamese', 'Spanish', 'zh', 'zh-TRADITIONAL', 'ja', 'pt-BR'],
|
||||
);
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
@ -48,7 +48,16 @@ i18n
|
||||
detection: {
|
||||
lookupLocalStorage: 'lng',
|
||||
},
|
||||
supportedLngs: ['en', 'zh', 'zh-TRADITIONAL', 'id', 'es', 'vi', 'ja', 'pt-br'],
|
||||
supportedLngs: [
|
||||
'en',
|
||||
'zh',
|
||||
'zh-TRADITIONAL',
|
||||
'id',
|
||||
'es',
|
||||
'vi',
|
||||
'ja',
|
||||
'pt-BR',
|
||||
],
|
||||
resources,
|
||||
fallbackLng: 'en',
|
||||
interpolation: {
|
||||
|
||||
Reference in New Issue
Block a user