diff --git a/app/assets/javascripts/notifications_dropdown.js b/app/assets/javascripts/notifications_dropdown.js index 6aed2492084094a91f349568c9c5f10e51d58555..08545dcea463ef4586622a76f11ef1d4874aedb2 100644 --- a/app/assets/javascripts/notifications_dropdown.js +++ b/app/assets/javascripts/notifications_dropdown.js @@ -1,5 +1,6 @@ import $ from 'jquery'; import Flash from './flash'; +import { __ } from '~/locale'; export default function notificationsDropdown() { $(document).on('click', '.update-notification', function updateNotificationCallback(e) { @@ -27,7 +28,7 @@ export default function notificationsDropdown() { .closest('.js-notification-dropdown') .replaceWith(data.html); } else { - Flash('Failed to save new settings', 'alert'); + Flash(__('Failed to save new settings'), 'alert'); } }); } diff --git a/changelogs/unreleased/localize-notification-dropdown.yml b/changelogs/unreleased/localize-notification-dropdown.yml new file mode 100644 index 0000000000000000000000000000000000000000..9599aaf344bf3a893cc7cfc747c1d7ec2ad12d36 --- /dev/null +++ b/changelogs/unreleased/localize-notification-dropdown.yml @@ -0,0 +1,5 @@ +--- +title: Localize notifications dropdown +merge_request: 26844 +author: +type: changed diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 27dd698af86d51c271a391da1c569c8425482afd..35b11f4aecedfb66fec727b19da042ab47635821 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -4366,6 +4366,9 @@ msgstr "" msgid "Failed to reset key. Please try again." msgstr "" +msgid "Failed to save new settings" +msgstr "" + msgid "Failed to signing using smartcard authentication" msgstr ""