fix(locale): remove hard coded strings (#3193)

This commit is contained in:
tiuweehan
2020-02-04 20:49:47 +08:00
committed by GitHub
parent 18e284ece8
commit fc91bf8781
15 changed files with 108 additions and 39 deletions

View File

@ -182,7 +182,9 @@ class EditorControl extends React.Component {
hasErrors={!!errors}
htmlFor={this.uniqueFieldId}
>
{`${field.get('label', field.get('name'))}${isFieldOptional ? ' (optional)' : ''}`}
{`${field.get('label', field.get('name'))}${
isFieldOptional ? ` (${t('editor.editorControl.field.optional')})` : ''
}`}
</FieldLabel>
<Widget
classNameWrapper={cx(