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", {
|
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:
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user