mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: API access key management #2846 feat: Render markdown file with remark-loader #2846 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
This commit is contained in:
@ -5,7 +5,7 @@ import camelCase from 'lodash/camelCase';
|
||||
import React from 'react';
|
||||
import User from '../user';
|
||||
|
||||
import { LanguageList } from '@/constants/common';
|
||||
import { LanguageList, LanguageMap } from '@/constants/common';
|
||||
import { useChangeLanguage } from '@/hooks/logic-hooks';
|
||||
import { useFetchUserInfo } from '@/hooks/user-setting-hooks';
|
||||
import styled from './index.less';
|
||||
@ -35,7 +35,7 @@ const RightToolBar = () => {
|
||||
|
||||
const items: MenuProps['items'] = LanguageList.map((x) => ({
|
||||
key: x,
|
||||
label: <span>{t(camelCase(x))}</span>,
|
||||
label: <span>{LanguageMap[x as keyof typeof LanguageMap]}</span>,
|
||||
})).reduce<MenuProps['items']>((pre, cur) => {
|
||||
return [...pre!, { type: 'divider' }, cur];
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user