Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
Added translation for warning notification (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
Губарев Федор Николаевич authored and Dergash committed Apr 17, 2020
1 parent dfe671d commit 49b3894
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"translation": {
"Apply": "Apply",
"Attention": "Attention",
"Clear": "Clear",
"Show all records": "Show all records",
"Clear all filters": "Clear all filters",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ru.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"translation": {
"Apply": "Применить",
"Attention": "Внимание",
"Clear": "Сбросить",
"Required fields are missing": "Не заполнены обязательные поля",
"This field is mandatory": "Поле обязательно для заполнения",
Expand Down
3 changes: 2 additions & 1 deletion src/utils/notifications.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import {Button, notification} from 'antd'
import i18n from 'i18next'

export const openButtonWarningNotification = (
description: string,
Expand All @@ -26,7 +27,7 @@ export const openButtonWarningNotification = (
notification.warning({
description,
duration,
message: 'Внимание',
message: i18n.t('Attention'),
btn: btn,
key: notificationKey
})
Expand Down

0 comments on commit 49b3894

Please sign in to comment.