diff options
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/common/attributes/useServerAttributes.js | 18 | ||||
-rw-r--r-- | modern/src/resources/l10n/en.json | 4 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modern/src/common/attributes/useServerAttributes.js b/modern/src/common/attributes/useServerAttributes.js index ba49e44d..76d5a157 100644 --- a/modern/src/common/attributes/useServerAttributes.js +++ b/modern/src/common/attributes/useServerAttributes.js @@ -1,6 +1,24 @@ import { useMemo } from 'react'; export default (t) => useMemo(() => ({ + title: { + name: t('serverName'), + type: 'string', + }, + description: { + name: t('serverDescription'), + type: 'string', + }, + colorPrimary: { + name: t('serverColorPrimary'), + type: 'string', + subtype: 'color', + }, + colorSecondary: { + name: t('serverColorSecondary'), + type: 'string', + subtype: 'color', + }, 'ui.disableLoginLanguage': { name: t('attributeUiDisableLoginLanguage'), type: 'boolean', diff --git a/modern/src/resources/l10n/en.json b/modern/src/resources/l10n/en.json index 4ad897a5..c20023a0 100644 --- a/modern/src/resources/l10n/en.json +++ b/modern/src/resources/l10n/en.json @@ -305,6 +305,10 @@ "serverReadonly": "Readonly", "serverForceSettings": "Force Settings", "serverAnnouncement": "Announcement", + "serverName": "Server Name", + "serverDescription": "Server Description", + "serverColorPrimary": "Color Primary", + "serverColorSecondary": "Color Secondary", "mapTitle": "Map", "mapActive": "Active Maps", "mapOverlay": "Map Overlay", |