diff --git a/client/src/__locales/vi.js b/client/src/__locales/vi.js index 28bb429c..7765aa80 100644 --- a/client/src/__locales/vi.js +++ b/client/src/__locales/vi.js @@ -112,6 +112,9 @@ export default { Page: 'Trang', of: 'của', rows: 'hàng', + 'Updated the custom filtering rules': 'Đã cập nhật quy tắc lọc tuỳ chỉnh', + 'Rule removed from the custom filtering rules': 'Quy tắc đã được xoá khỏi quy tắc lọc tuỳ chỉnh', + 'Rule added to the custom filtering rules': 'Quy tắc đã được thêm vào quy tắc lọc tuỳ chỉnh', // Popover Source: 'Nguồn', 'Found in the known domains database.': 'Tìm thấy trong cơ sở dữ liệu tên miền', diff --git a/client/src/components/Logs/index.js b/client/src/components/Logs/index.js index 7db5911f..9d7705e2 100644 --- a/client/src/components/Logs/index.js +++ b/client/src/components/Logs/index.js @@ -46,6 +46,7 @@ class Logs extends Component { toggleBlocking = (type, domain) => { const { userRules } = this.props.filtering; + const { t } = this.props; const lineEnding = !endsWith(userRules, '\n') ? '\n' : ''; const baseRule = `||${domain}^$important`; const baseUnblocking = `@@${baseRule}`; @@ -56,10 +57,10 @@ class Logs extends Component { if (userRules.match(preparedBlockingRule)) { this.props.setRules(userRules.replace(`${blockingRule}`, '')); - this.props.addSuccessToast(`Rule removed from the custom filtering rules: ${blockingRule}`); + this.props.addSuccessToast(`${t('Rule removed from the custom filtering rules')}: ${blockingRule}`); } else if (!userRules.match(preparedUnblockingRule)) { this.props.setRules(`${userRules}${lineEnding}${unblockingRule}\n`); - this.props.addSuccessToast(`Rule added to the custom filtering rules: ${unblockingRule}`); + this.props.addSuccessToast(`${t('Rule added to the custom filtering rules')}: ${unblockingRule}`); } this.props.getFilteringStatus();