1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +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:
mini-bomba
2020-06-11 17:18:10 +02:00
parent 9f0ce5d155
commit 2196299fff
3 changed files with 7 additions and 1 deletions

View File

@@ -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: