Skip to content

Commit

Permalink
chore: german translations
Browse files Browse the repository at this point in the history
  • Loading branch information
paulovareiro29 committed Oct 22, 2024
1 parent 5adfe24 commit 2162867
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/js/darkmode.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
btnToActive.classList.add('active')
btnToActive.setAttribute('aria-pressed', 'true')
activeThemeIcon.classList.add(svgOfActiveBtn)
const themeSwitcherLabel = `${themeSwitcherText.textContent} (${btnToActive.dataset.bsThemeValue})`
const themeSwitcherLabel = `${themeSwitcherText.textContent} (${btnToActive.textContent})`
themeSwitcher.setAttribute('aria-label', themeSwitcherLabel)

if (focus) {
Expand Down
6 changes: 3 additions & 3 deletions src/partials/base/b_theme-switcher.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
aria-expanded='false'
data-bs-toggle='dropdown'
data-bs-display='static'
aria-label='Umschaltthema (auto)'
aria-label='Dunkelmodus umschalten (auto)'
>
<i class='bi bi-sun-fill my-1 theme-icon-active'></i>
<span class='d-xl-none ms-2' id='bd-theme-text'>Umschaltthema</span>
<span class='d-xl-none ms-2' id='bd-theme-text'>Dunkelmodus umschalten</span>
</button>
<ul class='dropdown-menu dropdown-menu-end' aria-labelledby='bd-theme-text'>
<li>
Expand All @@ -20,7 +20,7 @@
aria-pressed='true'
>
<i class='bi bi-sun-fill me-2 opacity-50' data-bs-theme-icon='bi-sun-fill'></i>
Licht
Hell
<i class='bi bi-check2 ms-auto d-none'></i>
</button>
</li>
Expand Down

0 comments on commit 2162867

Please sign in to comment.