fix: allow emoji to be used in i18n override

This commit is contained in:
Jixun Wu 2021-12-31 19:48:26 +00:00
parent 31bb3493eb
commit eaafa7cfde
4 changed files with 5 additions and 5 deletions

View file

@ -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) {