fix: allow emoji to be used in i18n override
This commit is contained in:
parent
31bb3493eb
commit
eaafa7cfde
4 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
|||
|
||||
{{ if not (in (slice "light-without-switcher" "dark-without-switcher" "auto-without-switcher") $style) }}
|
||||
<button class="theme-switcher">
|
||||
{{ i18n "darkTheme" | humanize }}
|
||||
{{ i18n "darkTheme" }}
|
||||
</button>
|
||||
|
||||
<script>
|
||||
|
@ -54,7 +54,7 @@
|
|||
|
||||
function changeButtonText()
|
||||
{
|
||||
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" | humanize }} : {{ i18n "darkTheme" | humanize }}
|
||||
switchButton.textContent = currentTheme == 'dark' ? {{ i18n "lightTheme" }} : {{ i18n "darkTheme" }}
|
||||
}
|
||||
|
||||
function switchTheme(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue