summaryrefslogtreecommitdiffstats
path: root/web/react/components/textbox.jsx
diff options
context:
space:
mode:
authorElias Nahum <nahumhbl@gmail.com>2016-02-01 17:23:45 -0300
committerElias Nahum <nahumhbl@gmail.com>2016-02-01 17:23:45 -0300
commit3f91bc2df2c6f9d8437f258233609e9801b7f8f6 (patch)
tree3721db61cb0c052fba9c100c000ab64297c81f51 /web/react/components/textbox.jsx
parent9fe4c0603e8b98570d4a9ab1c6bd3d69b321c36c (diff)
downloadchat-3f91bc2df2c6f9d8437f258233609e9801b7f8f6.tar.gz
chat-3f91bc2df2c6f9d8437f258233609e9801b7f8f6.tar.bz2
chat-3f91bc2df2c6f9d8437f258233609e9801b7f8f6.zip
PLT-7: Refactoring frontend (chunk 9)
- sidebar right & rhs
Diffstat (limited to 'web/react/components/textbox.jsx')
-rw-r--r--web/react/components/textbox.jsx20
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>
);