New langkeys: settings.labels.theme.themes

Basically allows you to translate theme names to your language instead of them being hard-coded
This commit is contained in:
mini-bomba 2020-06-11 17:18:10 +02:00
parent 9f0ce5d155
commit 2196299fff
No known key found for this signature in database
GPG Key ID: 5385F61541980B73
3 changed files with 7 additions and 1 deletions

View File

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

View File

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

View File

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