Skip to content

Commit

Permalink
feat: add additional translations
Browse files Browse the repository at this point in the history
  • Loading branch information
iso9000t committed Jan 31, 2025
1 parent 2ec03a4 commit e081d26
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/localization/translated/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,7 @@
"NotificationItem.successLogin": "Паспяховы ўваход",
"NotificationRule.launchNameLabel": "Імя запуску",
"NotificationRule.launchOwner": "Уласнік запуску",
"Notifications.duplicateDashboardSuccess": "Дублікат дашборда паспяхова створаны",
"Notifications.notifications": "Апавяшчэнні па электроннай пошце",
"Notifications.ruleNameDuplicateHint": "Для гэтага канала сувязі ўжо існуе правіла з такім жа імем",
"Notifications.updateEmail": "абноўлены",
Expand Down
1 change: 1 addition & 0 deletions app/localization/translated/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,7 @@
"NotificationItem.successLogin": "Успешный вход",
"NotificationRule.launchNameLabel": "Название запуска",
"NotificationRule.launchOwner": "Владелец запуска",
"Notifications.duplicateDashboardSuccess": "Дубликат дашборда успешно создан",
"Notifications.notifications": "Уведомления по электронной почте",
"Notifications.ruleNameDuplicateHint": "Правило с таким названием уже существует для этого канала связи",
"Notifications.updateEmail": "обновлено",
Expand Down
1 change: 1 addition & 0 deletions app/localization/translated/uk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,7 @@
"NotificationItem.successLogin": "Успішний вхід",
"NotificationRule.launchNameLabel": "Назва запуску",
"NotificationRule.launchOwner": "Власник запуску",
"Notifications.duplicateDashboardSuccess": "Дублікат дашборду успішно створено",
"Notifications.notifications": "Повідомлення електронною поштою",
"Notifications.ruleNameDuplicateHint": "Правило з такою назвою вже існує для цього каналу зв’язку",
"Notifications.updateEmail": "оновлено",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ const messages = defineMessages({
id: 'DashboardPage.deleteDashboardSuccess',
defaultMessage: 'Dashboard has been deleted',
},
duplicateDashboardSuccess: {
id: 'Notifications.duplicateDashboardSuccess',
defaultMessage: 'Dashboard has been duplicated successfully',
},
addPatternSuccess: {
id: 'PatternAnalysis.addPatternSuccess',
defaultMessage: 'Pattern rule has been created',
Expand Down
4 changes: 2 additions & 2 deletions app/src/controllers/dashboard/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ function* duplicateDashboard({ payload: dashboard }) {
name: dashboard.name,
description: dashboard.description,
owner: dashboard.owner,
widgets: [], // or config.widgets if available
widgets: [],
}),
);

yield put(
showNotification({
message: 'Dashboard successfully duplicated',
messageId: 'duplicateDashboardSuccess',
type: NOTIFICATION_TYPES.SUCCESS,
}),
);
Expand Down

0 comments on commit e081d26

Please sign in to comment.