New langkeys: settings.labels.theme.themes

Basically allows you to translate theme names to your language instead of them being hard-coded
pull/107/head
mini-bomba 4 years ago
parent 9f0ce5d155
commit 2196299fff
No known key found for this signature in database
GPG Key ID: 5385F61541980B73

@ -134,7 +134,7 @@ export const allApplicationSettings = [
new EnumSetting("theme", {
options: Object.keys(THEMES),
valueGetter: theme => theme,
textGetter: theme => theme.substr(0, 1).toUpperCase() + theme.substr(1),
textGetter: theme => T.settings.labels.theme.themes[theme],
category: categoryGame,
restartRequired: false,
changeCb:

@ -639,6 +639,9 @@ settings:
title: Game theme
description: >-
Choose the game theme (light / dark).
themes:
dark: Dark
light: Light
refreshRate:
title: Simulation Target

@ -650,6 +650,9 @@ settings:
title: Motyw Graficzny Gry
description: >-
Wybierz motyw (jasny / ciemny).
themes:
dark: Ciemny
light: Jasny
refreshRate:
title: Częstość Odświeżania

Loading…
Cancel
Save