Skip to content

Commit 752e55a

Browse files
authored
Merge pull request #659 from helsingborg-stad/fix/update-faulty-wordpress-lang
fix: faulty wordpress lang function
2 parents 05c3344 + a77af6f commit 752e55a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/php/Component/Footer/Partials/subfooter.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@logotype([
77
'id' => 'footer-subfooter-logotype',
88
'src'=> $subfooterLogotype,
9-
'alt' => __('Go to homepage', 'component-library'),
9+
'alt' => $lang->goToHomepage ?? 'Go to homepage',
1010
'classList' => [$baseClass . '__subfooter__logotype'],
1111
'maskable' => true,
1212
])

source/php/Component/Footer/footer.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@logotype([
1313
'id' => 'footer-logotype',
1414
'src'=> $logotype,
15-
'alt' => __('Go to homepage', 'component-library'),
15+
'alt' => $lang->goToHomepage ?? 'Go to homepage',
1616
'classList' => ['site-footer__logo', 'c-footer__logotype'],
1717
'context' => 'footer.logotype',
1818
'maskable' => true,
@@ -65,7 +65,7 @@
6565
@logotype([
6666
'id' => 'footer-logotype',
6767
'src'=> $logotype,
68-
'alt' => __('Go to homepage', 'component-library'),
68+
'alt' => $lang->goToHomepage ?? 'Go to homepage',
6969
'classList' => ['site-footer__logo', 'c-footer__logotype'],
7070
'context' => 'footer.logotype',
7171
'maskable' => true,

0 commit comments

Comments
 (0)