mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-02 02:25:31 +08:00
Add language portugese br (#4550)
### What problem does this PR solve? Add language Portugese from Brazil ### Type of change - [X] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -6,6 +6,7 @@ import translation_en from './en';
|
||||
import translation_es from './es';
|
||||
import translation_id from './id';
|
||||
import translation_ja from './ja';
|
||||
import translation_pt_br from './pt-br';
|
||||
import { createTranslationTable, flattenObject } from './until';
|
||||
import translation_vi from './vi';
|
||||
import translation_zh from './zh';
|
||||
@ -19,12 +20,14 @@ const resources = {
|
||||
ja: translation_ja,
|
||||
es: translation_es,
|
||||
vi: translation_vi,
|
||||
'pt-br': translation_pt_br,
|
||||
};
|
||||
const enFlattened = flattenObject(translation_en);
|
||||
const viFlattened = flattenObject(translation_vi);
|
||||
const esFlattened = flattenObject(translation_es);
|
||||
const zhFlattened = flattenObject(translation_zh);
|
||||
const jaFlattened = flattenObject(translation_ja);
|
||||
const pt_brFlattened = flattenObject(translation_pt_br);
|
||||
const zh_traditionalFlattened = flattenObject(translation_zh_traditional);
|
||||
export const translationTable = createTranslationTable(
|
||||
[
|
||||
@ -34,8 +37,9 @@ export const translationTable = createTranslationTable(
|
||||
zhFlattened,
|
||||
zh_traditionalFlattened,
|
||||
jaFlattened,
|
||||
pt_brFlattened,
|
||||
],
|
||||
['English', 'Vietnamese', 'Spanish', 'zh', 'zh-TRADITIONAL', 'ja'],
|
||||
['English', 'Vietnamese', 'Spanish', 'zh', 'zh-TRADITIONAL', 'ja', 'pt-br'],
|
||||
);
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
@ -44,7 +48,7 @@ i18n
|
||||
detection: {
|
||||
lookupLocalStorage: 'lng',
|
||||
},
|
||||
supportedLngs: ['en', 'zh', 'zh-TRADITIONAL', 'id', 'es', 'vi', 'ja'],
|
||||
supportedLngs: ['en', 'zh', 'zh-TRADITIONAL', 'id', 'es', 'vi', 'ja', 'pt-br'],
|
||||
resources,
|
||||
fallbackLng: 'en',
|
||||
interpolation: {
|
||||
|
||||
Reference in New Issue
Block a user