Localize the notifications dropdown string
Localized the notifications dropdown string
This commit is contained in:
parent
b39209f34a
commit
6e61a6a73d
|
@ -1,5 +1,6 @@
|
||||||
import $ from 'jquery';
|
import $ from 'jquery';
|
||||||
import Flash from './flash';
|
import Flash from './flash';
|
||||||
|
import { __ } from '~/locale';
|
||||||
|
|
||||||
export default function notificationsDropdown() {
|
export default function notificationsDropdown() {
|
||||||
$(document).on('click', '.update-notification', function updateNotificationCallback(e) {
|
$(document).on('click', '.update-notification', function updateNotificationCallback(e) {
|
||||||
|
@ -27,7 +28,7 @@ export default function notificationsDropdown() {
|
||||||
.closest('.js-notification-dropdown')
|
.closest('.js-notification-dropdown')
|
||||||
.replaceWith(data.html);
|
.replaceWith(data.html);
|
||||||
} else {
|
} else {
|
||||||
Flash('Failed to save new settings', 'alert');
|
Flash(__('Failed to save new settings'), 'alert');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Localize notifications dropdown
|
||||||
|
merge_request: 26844
|
||||||
|
author:
|
||||||
|
type: changed
|
|
@ -3595,6 +3595,9 @@ msgstr ""
|
||||||
msgid "Failed to remove user key."
|
msgid "Failed to remove user key."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Failed to save new settings"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Failed to update issues, please try again."
|
msgid "Failed to update issues, please try again."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue