Translation strings for FeaturesPanel
This commit is contained in:
parent
37afaaa894
commit
72433b6bd0
1 changed files with 26 additions and 7 deletions
|
@ -1,10 +1,29 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import Icon from 'soapbox/components/icon';
|
import Icon from 'soapbox/components/icon';
|
||||||
import { NavLink } from 'react-router-dom';
|
import { NavLink } from 'react-router-dom';
|
||||||
|
import { injectIntl, defineMessages } from 'react-intl';
|
||||||
|
|
||||||
export default class FeaturesPanel extends React.PureComponent {
|
const messages = defineMessages({
|
||||||
|
edit_profile: { id: 'account.edit_profile', defaultMessage: 'Edit Profile' },
|
||||||
|
messages: { id: 'navigation_bar.messages', defaultMessage: 'Messages' },
|
||||||
|
preferences: { id: 'navigation_bar.preferences', defaultMessage: 'Preferences' },
|
||||||
|
security: { id: 'navigation_bar.security', defaultMessage: 'Security' },
|
||||||
|
lists: { id: 'column.lists', defaultMessage: 'Lists' },
|
||||||
|
bookmarks: { id: 'column.bookmarks', defaultMessage: 'Bookmarks' },
|
||||||
|
});
|
||||||
|
|
||||||
|
export default
|
||||||
|
@injectIntl
|
||||||
|
class FeaturesPanel extends React.PureComponent {
|
||||||
|
|
||||||
|
static propTypes = {
|
||||||
|
intl: PropTypes.object.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const { intl } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='wtf-panel promo-panel'>
|
<div className='wtf-panel promo-panel'>
|
||||||
<div className='promo-panel__container'>
|
<div className='promo-panel__container'>
|
||||||
|
@ -12,42 +31,42 @@ export default class FeaturesPanel extends React.PureComponent {
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<NavLink className='promo-panel-item__btn' to='/settings/profile'>
|
<NavLink className='promo-panel-item__btn' to='/settings/profile'>
|
||||||
<Icon id='user' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='user' className='promo-panel-item__icon' fixedWidth />
|
||||||
Edit Profile
|
{intl.formatMessage(messages.edit_profile)}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<NavLink className='promo-panel-item__btn' to='/messages'>
|
<NavLink className='promo-panel-item__btn' to='/messages'>
|
||||||
<Icon id='envelope' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='envelope' className='promo-panel-item__icon' fixedWidth />
|
||||||
Messages
|
{intl.formatMessage(messages.messages)}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<NavLink className='promo-panel-item__btn' to='/bookmarks'>
|
<NavLink className='promo-panel-item__btn' to='/bookmarks'>
|
||||||
<Icon id='bookmark' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='bookmark' className='promo-panel-item__icon' fixedWidth />
|
||||||
Bookmarks
|
{intl.formatMessage(messages.bookmarks)}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<NavLink className='promo-panel-item__btn' to='/lists'>
|
<NavLink className='promo-panel-item__btn' to='/lists'>
|
||||||
<Icon id='list' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='list' className='promo-panel-item__icon' fixedWidth />
|
||||||
Lists
|
{intl.formatMessage(messages.lists)}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<NavLink className='promo-panel-item__btn' to='/auth/edit'>
|
<NavLink className='promo-panel-item__btn' to='/auth/edit'>
|
||||||
<Icon id='lock' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='lock' className='promo-panel-item__icon' fixedWidth />
|
||||||
Security
|
{intl.formatMessage(messages.security)}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='promo-panel-item'>
|
<div className='promo-panel-item'>
|
||||||
<NavLink className='promo-panel-item__btn' to='/settings/preferences'>
|
<NavLink className='promo-panel-item__btn' to='/settings/preferences'>
|
||||||
<Icon id='cog' className='promo-panel-item__icon' fixedWidth />
|
<Icon id='cog' className='promo-panel-item__icon' fixedWidth />
|
||||||
Preferences
|
{intl.formatMessage(messages.preferences)}
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue