The menu button text "Light", "Dark", "Auto" is hard coded in the file below.
Please add i18n support.
Thanks!
|
<ul class="dropdown-menu dropdown-menu-end{{ if $isExamples }} shadow{{ end }}" aria-labelledby="bd-theme-text"> |
|
<li> |
|
<button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false"> |
|
<svg class="bi me-2 opacity-50"><use href="#sun-fill"></use></svg> |
|
Light |
|
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg> |
|
</button> |
|
</li> |
|
<li> |
|
<button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false"> |
|
<svg class="bi me-2 opacity-50"><use href="#moon-stars-fill"></use></svg> |
|
Dark |
|
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg> |
|
</button> |
|
</li> |
|
<li> |
|
<button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true"> |
|
<svg class="bi me-2 opacity-50"><use href="#circle-half"></use></svg> |
|
Auto |
|
<svg class="bi ms-auto d-none"><use href="#check2"></use></svg> |
|
</button> |
|
</li> |
|
</ul> |
The menu button text "Light", "Dark", "Auto" is hard coded in the file below.
Please add i18n support.
Thanks!
docsy/layouts/partials/theme-toggler.html
Lines 37 to 59 in 712aa05