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