mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
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:
parent
9f0ce5d155
commit
2196299fff
@ -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…
Reference in New Issue
Block a user