Allow filter placeholder to be translated

This commit is contained in:
Matthias Meulien
2020-08-09 19:33:20 +02:00
parent a94982d190
commit fbba492ffa
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,7 @@ import React from 'react';
import Link from '../Link';
import Icon from '../Icon';
import { i18n } from '../../locale';
export default class FilterField extends React.Component {
constructor(props) {
@ -68,7 +69,7 @@ export default class FilterField extends React.Component {
<form onSubmit={e => this.handleSubmit(e)}>
<input
type="text"
placeholder="Filter"
placeholder={i18n('fields.filter')}
value={this.state.value}
onFocus={(e) => this.activate()}
onBlur={(e) => this.handleBlur()}

View File

@ -57,6 +57,7 @@ fields:
items_to_add:
label: Items to add
placeholder: No items
filter: Filter
filters:
all: All
thumbnails: Thumbnails