Skip to content

Commit 566ec7e

Browse files
committed
add langu
1 parent 496f0ab commit 566ec7e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Documents/index.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { useAppContext } from '../../state/AppContext'
77
import { useTranslation } from 'react-i18next'
88
import {Layout, Model, TabNode, ITabSetRenderValues, TabSetNode, BorderNode, Action, Actions, DockLocation} from 'flexlayout-react'
99
import WelcomePage from '../WelcomePage'
10+
import LanguageSelector from '../LanguageSelector'
1011
import './index.css'
1112

1213
type TabWithPath = {
@@ -275,6 +276,11 @@ const Documents = () => {
275276
<Button icon={<FileAddOutlined />} onClick={openExistingDocument} size="small" >{t('documents.open')}</Button>
276277
</Tooltip>
277278
)
279+
renderValues.buttons.push(
280+
<div key='language-selector' style={{ marginLeft: '8px' }}>
281+
<LanguageSelector />
282+
</div>
283+
)
278284
renderValues.buttons.push(
279285
<Tooltip title={isDarkMode ? t('documents.lightMode') : t('documents.darkMode')} key='theme-toggle'>
280286
<Switch

0 commit comments

Comments
 (0)