diff options
author | Corey Hulen <corey@hulen.com> | 2016-02-01 13:37:54 -0800 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-02-01 13:37:54 -0800 |
commit | f28486c4553f7f4bccf7bf69153c2f12699705f9 (patch) | |
tree | a75d26e483eb7feda3ee9282c09ff5dbe148f1db /web/react/components/textbox.jsx | |
parent | a772b06e87d28fd75f15c9ec58c46c2439c8e281 (diff) | |
parent | e7f409a3c7a92d50cf857b808b61f4d5aadea8c3 (diff) | |
download | chat-f28486c4553f7f4bccf7bf69153c2f12699705f9.tar.gz chat-f28486c4553f7f4bccf7bf69153c2f12699705f9.tar.bz2 chat-f28486c4553f7f4bccf7bf69153c2f12699705f9.zip |
Merge pull request #2042 from ZBoxApp/PLT-7-sidebar-right
PLT-7: Refactoring frontend (chunk 9)
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r-- | web/react/components/textbox.jsx | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/web/react/components/textbox.jsx b/web/react/components/textbox.jsx index 62c0d5218..bb383aca1 100644 --- a/web/react/components/textbox.jsx +++ b/web/react/components/textbox.jsx @@ -11,6 +11,9 @@ import ErrorStore from '../stores/error_store.jsx'; import * as TextFormatting from '../utils/text_formatting.jsx'; import * as Utils from '../utils/utils.jsx'; import Constants from '../utils/constants.jsx'; + +import {FormattedMessage} from 'mm-intl'; + const PreReleaseFeatures = Constants.PRE_RELEASE_FEATURES; export default class Textbox extends React.Component { @@ -143,7 +146,17 @@ export default class Textbox extends React.Component { onClick={this.showPreview} className='textbox-preview-link' > - {this.state.preview ? 'Edit message' : 'Preview'} + {this.state.preview ? ( + <FormattedMessage + id='textbox.edit' + defaultMessage='Edit message' + /> + ) : ( + <FormattedMessage + id='textbox.preview' + defaultMessage='Preview' + /> + )} </a> ); } @@ -184,7 +197,10 @@ export default class Textbox extends React.Component { onClick={this.showHelp} className='textbox-help-link' > - {'Help'} + <FormattedMessage + id='textbox.help' + defaultMessage='Help' + /> </a> </div> ); |