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

View File

@ -57,6 +57,7 @@ fields:
items_to_add: items_to_add:
label: Items to add label: Items to add
placeholder: No items placeholder: No items
filter: Filter
filters: filters:
all: All all: All
thumbnails: Thumbnails thumbnails: Thumbnails
@ -509,4 +510,4 @@ modal:
subtitle: 'Another user has shared their configuration with you. This includes:' subtitle: 'Another user has shared their configuration with you. This includes:'
do_you_want_to_import: Do you want to import this? do_you_want_to_import: Do you want to import this?
import_now: Import now import_now: Import now
successful: Import successful successful: Import successful