Translate theme selector

This commit is contained in:
Thomas Weber committed 2021-08-26 22:45:02 -05:00
1 parent a66c80b412
commit cbc1502fe8
2 files changed
+18 -3

No files matched your search

+14
View File
@@ -379,5 +379,19 @@
"furtherSteps": {
"string": "Further steps for Linux"
}
},
"theme": {
"system": {
"string": "Use system theme",
"context": "Option to choose dark/light mode based on whatever the global system theme is"
},
"dark": {
"string": "Dark",
"context": "Dark mode option"
},
"light": {
"string": "Light",
"context": "Light mode option"
}
}
}
+4 -3
View File
@@ -1,9 +1,10 @@
<script>
import {theme} from './stores';
import {_} from '../locales';
</script>
<select bind:value={$theme}>
<option value="system">Use system theme</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
<option value="system">{$_('theme.system')}</option>
<option value="light">{$_('theme.light')}</option>
<option value="dark">{$_('theme.dark')}</option>
</select>