Archived
2
0
Fork 0

Adding react-intl i18n to the frontend. No translations yet

This commit is contained in:
Eugen Rochko 2016-11-16 17:20:52 +01:00
parent 546c4718e7
commit 01e43c3e57
31 changed files with 263 additions and 223 deletions

View file

@ -3,6 +3,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import Autosuggest from 'react-autosuggest';
import AutosuggestAccountContainer from '../containers/autosuggest_account_container';
import { debounce } from 'react-decoration';
import { injectIntl } from 'react-intl';
const getSuggestionValue = suggestion => suggestion.value;
@ -94,7 +95,7 @@ const Search = React.createClass({
render () {
const inputProps = {
placeholder: 'Search',
placeholder: this.props.intl.formatMessage({ id: 'search.placeholder', defaultMessage: 'Search' }),
value: this.props.value,
onChange: this.onChange,
style: inputStyle
@ -125,4 +126,4 @@ const Search = React.createClass({
});
export default Search;
export default injectIntl(Search);