From 0cdcb15c868f6c06a0eb2de095b9d740e6fcc5de Mon Sep 17 00:00:00 2001 From: Jacob Pihl Date: Wed, 11 Dec 2024 14:31:27 +0100 Subject: [PATCH] Added translations for aria labels --- .../dpl_react_apps/src/Controller/DplReactAppsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php index 16d3d9a72..f9cb7c68a 100644 --- a/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php +++ b/web/modules/custom/dpl_react_apps/src/Controller/DplReactAppsController.php @@ -438,7 +438,9 @@ public function work(string $wid): array { 'we-have-shopped-text' => $this->t('In stock:', [], ['context' => 'Work Page']), 'you-have-borrowed-text' => $this->t('You have borrowed', [], ['context' => 'Work Page']), 'share-on-facebook-text' => $this->t('Share on Facebook', [], ['context' => 'Work Page']), + 'share-on-facebook-aria-label-text' => $this->t('Share this page on Facebook', [], ['context' => 'Work Page']), 'copy-link-text' => $this->t('Copy link', [], ['context' => 'Work Page']), + 'copy-link-text-aria-label' => $this->t('Copy this page to clipboard', [], ['context' => 'Work Page']), // Add external API base urls. ] + self::externalApiBaseUrls();