summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/alert_handler.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/alert_handler.js')
-rw-r--r--app/assets/javascripts/alert_handler.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/alert_handler.js b/app/assets/javascripts/alert_handler.js
index 3c867f196d6..9d53101fb22 100644
--- a/app/assets/javascripts/alert_handler.js
+++ b/app/assets/javascripts/alert_handler.js
@@ -2,10 +2,11 @@
// Note: This ONLY works on elements that are created on page load
// You can follow this effort in the following epic
// https://gitlab.com/groups/gitlab-org/-/epics/4070
+import { __ } from '~/locale';
export default function initAlertHandler() {
const DISMISSIBLE_SELECTORS = ['.gl-alert', '.gl-banner'];
- const DISMISS_LABEL = '[aria-label="Dismiss"]';
+ const DISMISS_LABEL = `[aria-label="${__('Dismiss')}"]`;
const DISMISS_CLASS = '.gl-alert-dismiss';
DISMISSIBLE_SELECTORS.forEach((selector) => {