diff --git a/src/components/PluginSettings/components/SettingBooleanComponent.tsx b/src/components/PluginSettings/components/SettingBooleanComponent.tsx index e5219e45f..f9cf4fd3f 100644 --- a/src/components/PluginSettings/components/SettingBooleanComponent.tsx +++ b/src/components/PluginSettings/components/SettingBooleanComponent.tsx @@ -54,7 +54,7 @@ export function SettingBooleanComponent({ option, pluginSettings, definedSetting hideBorder style={{ marginBottom: "0.5em" }} > - {wordsToTitle(wordsFromCamel(id))} + {option.displayName ?? wordsToTitle(wordsFromCamel(id))} {error && {error}} diff --git a/src/components/PluginSettings/components/SettingNumericComponent.tsx b/src/components/PluginSettings/components/SettingNumericComponent.tsx index b724717d7..876ed0b02 100644 --- a/src/components/PluginSettings/components/SettingNumericComponent.tsx +++ b/src/components/PluginSettings/components/SettingNumericComponent.tsx @@ -56,7 +56,7 @@ export function SettingNumericComponent({ option, pluginSettings, definedSetting return ( - {wordsToTitle(wordsFromCamel(id))} + {option.displayName ?? wordsToTitle(wordsFromCamel(id))} {option.description} - {wordsToTitle(wordsFromCamel(id))} + {option.displayName ?? wordsToTitle(wordsFromCamel(id))} {option.description}