Added ability for system message username to be localized (#5239)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
6054dee806
Коммит
9369cab56c
@@ -3,6 +3,7 @@
|
||||
|
||||
import UserProfile from 'components/user_profile.jsx';
|
||||
import PostInfo from './post_info.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import * as PostUtils from 'utils/post_utils.jsx';
|
||||
|
||||
@@ -55,7 +56,12 @@ export default class PostHeader extends React.Component {
|
||||
userProfile = (
|
||||
<UserProfile
|
||||
user={{}}
|
||||
overwriteName={Constants.SYSTEM_MESSAGE_PROFILE_NAME}
|
||||
overwriteName={
|
||||
<FormattedMessage
|
||||
id='post_info.system'
|
||||
defaultMessage='System'
|
||||
/>
|
||||
}
|
||||
overwriteImage={Constants.SYSTEM_MESSAGE_PROFILE_IMAGE}
|
||||
disablePopover={true}
|
||||
/>
|
||||
|
||||
Ссылка в новой задаче
Block a user