mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-22 13:05:36 +03:00
Add translate PopoverFilter
This commit is contained in:
parent
e399a5fe37
commit
262e9acc03
2 changed files with 7 additions and 3 deletions
|
@ -116,5 +116,8 @@ export default {
|
|||
Source: 'Nguồn',
|
||||
'Found in the known domains database.': 'Tìm thấy trong cơ sở dữ liệu tên miền',
|
||||
Category: 'Thể loại',
|
||||
// Popover filter
|
||||
Rule: 'Quy tắc',
|
||||
Filter: 'Bộ lọc',
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Trans , withNamespaces } from 'react-i18next';
|
||||
|
||||
import './Popover.css';
|
||||
|
||||
|
@ -13,10 +14,10 @@ class PopoverFilter extends Component {
|
|||
<div className="popover__body popover__body--filter">
|
||||
<div className="popover__list">
|
||||
<div className="popover__list-item popover__list-item--nowrap">
|
||||
Rule: <strong>{this.props.rule}</strong>
|
||||
<Trans>Rule</Trans>: <strong>{this.props.rule}</strong>
|
||||
</div>
|
||||
{this.props.filter && <div className="popover__list-item popover__list-item--nowrap">
|
||||
Filter: <strong>{this.props.filter}</strong>
|
||||
<Trans>Filter</Trans>: <strong>{this.props.filter}</strong>
|
||||
</div>}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -30,4 +31,4 @@ PopoverFilter.propTypes = {
|
|||
filter: PropTypes.string,
|
||||
};
|
||||
|
||||
export default PopoverFilter;
|
||||
export default withNamespaces()(PopoverFilter);
|
||||
|
|
Loading…
Reference in a new issue