mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
admin: add intl support in Logout component and add ru translations
This commit is contained in:
parent
ab80eff34b
commit
dbd1d68ccc
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { get } from 'lodash';
|
||||
import PropTypes from 'prop-types';
|
||||
import { ButtonDropdown, DropdownItem, DropdownMenu, DropdownToggle } from 'reactstrap';
|
||||
@ -40,10 +41,16 @@ class Logout extends React.Component { // eslint-disable-line react/prefer-state
|
||||
</DropdownToggle>
|
||||
<DropdownMenu className={styles.dropDownContent}>
|
||||
<DropdownItem onClick={this.handleGoTo} className={styles.item}>
|
||||
Profile
|
||||
<FormattedMessage
|
||||
id="app.components.Logout.profile"
|
||||
defaultMessage="Profile"
|
||||
/>
|
||||
</DropdownItem>
|
||||
<DropdownItem onClick={this.handleLogout}>
|
||||
Logout
|
||||
<FormattedMessage
|
||||
id="app.components.Logout.logout"
|
||||
defaultMessage="Logout"
|
||||
/>
|
||||
<i className="fa fa-sign-out" />
|
||||
</DropdownItem>
|
||||
</DropdownMenu>
|
||||
|
@ -75,6 +75,8 @@
|
||||
"app.components.ListPluginsPage.description": "Список установленых плагинов.",
|
||||
"app.components.ListPluginsPage.helmet.title": "Список плагинов",
|
||||
"app.components.ListPluginsPage.title": "Плагины",
|
||||
"app.components.Logout.profile": "Профиль",
|
||||
"app.components.Logout.logout": "Выйти",
|
||||
"app.components.NotFoundPage.back": "Вернуться на главную",
|
||||
"app.components.NotFoundPage.description": "Не найдено",
|
||||
"app.components.Official": "Официальный",
|
||||
|
Loading…
x
Reference in New Issue
Block a user