From fbba492ffa360fb25780b17a10c140587629f95a Mon Sep 17 00:00:00 2001 From: Matthias Meulien Date: Sun, 9 Aug 2020 19:33:20 +0200 Subject: [PATCH] Allow filter placeholder to be translated --- src/js/components/Fields/FilterField.js | 3 ++- src/js/locale/en.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/js/components/Fields/FilterField.js b/src/js/components/Fields/FilterField.js index 0f397e3d..6c0d1967 100755 --- a/src/js/components/Fields/FilterField.js +++ b/src/js/components/Fields/FilterField.js @@ -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 {
this.handleSubmit(e)}> this.activate()} onBlur={(e) => this.handleBlur()} diff --git a/src/js/locale/en.yaml b/src/js/locale/en.yaml index bd1f3b61..a59312b6 100755 --- a/src/js/locale/en.yaml +++ b/src/js/locale/en.yaml @@ -57,6 +57,7 @@ fields: items_to_add: label: Items to add placeholder: No items + filter: Filter filters: all: All thumbnails: Thumbnails @@ -509,4 +510,4 @@ modal: subtitle: 'Another user has shared their configuration with you. This includes:' do_you_want_to_import: Do you want to import this? import_now: Import now - successful: Import successful \ No newline at end of file + successful: Import successful