2016-07-11 7 views
0

私は材質-UIのTextFieldを使用してフォームを持っていると私はこのようにすべての私のフィールドを翻訳しています:翻訳エラーメッセージが材料-UI

<TextField autoFocus={true} name='formName' 
        placeholder={this.context.intl.formatMessage(translations.formNameInputPlaceholder)} 
        value={value || ''} 
        fullWidth={true} 
        errorText={ this.shouldShowError(fieldValidity) ? <FormattedMessage { ...translations.notValid} /> : null } 
        onChange={ e => onChange(e.target.value) }/> 

がしかしERRORTEXTが翻訳されることはありませんし、デフォルトのロケールを使用して保持します。この問題はで解決した

答えて

関連する問題