mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-26 00:46:52 +08:00
Added French language support (#9173)
### What problem does this PR solve? Implemented French UI translation ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Co-authored-by: ramin cedric <> Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
@ -6,6 +6,7 @@ import { LanguageAbbreviation } from '@/constants/common';
|
||||
import translation_de from './de';
|
||||
import translation_en from './en';
|
||||
import translation_es from './es';
|
||||
import translation_fr from './fr';
|
||||
import translation_id from './id';
|
||||
import translation_ja from './ja';
|
||||
import translation_pt_br from './pt-br';
|
||||
@ -24,6 +25,7 @@ const resources = {
|
||||
[LanguageAbbreviation.Vi]: translation_vi,
|
||||
[LanguageAbbreviation.PtBr]: translation_pt_br,
|
||||
[LanguageAbbreviation.De]: translation_de,
|
||||
[LanguageAbbreviation.Fr]: translation_fr,
|
||||
};
|
||||
const enFlattened = flattenObject(translation_en);
|
||||
const viFlattened = flattenObject(translation_vi);
|
||||
@ -33,6 +35,7 @@ const jaFlattened = flattenObject(translation_ja);
|
||||
const pt_brFlattened = flattenObject(translation_pt_br);
|
||||
const zh_traditionalFlattened = flattenObject(translation_zh_traditional);
|
||||
const deFlattened = flattenObject(translation_de);
|
||||
const frFlattened = flattenObject(translation_fr);
|
||||
export const translationTable = createTranslationTable(
|
||||
[
|
||||
enFlattened,
|
||||
@ -43,6 +46,7 @@ export const translationTable = createTranslationTable(
|
||||
jaFlattened,
|
||||
pt_brFlattened,
|
||||
deFlattened,
|
||||
frFlattened,
|
||||
],
|
||||
[
|
||||
'English',
|
||||
@ -53,6 +57,7 @@ export const translationTable = createTranslationTable(
|
||||
'ja',
|
||||
'pt-BR',
|
||||
'Deutsch',
|
||||
'French',
|
||||
],
|
||||
);
|
||||
i18n
|
||||
|
||||
Reference in New Issue
Block a user