Skip to content

Commit

Permalink
removed hard coded strings for interface settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SupertigerDev committed Oct 28, 2024
1 parent 7a61b56 commit 4899145
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/settings/InterfaceSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function BlurEffect() {
return (
<SettingsBlock
icon="dvr"
label="Blur Effect"
description="Enables transparent blur effect. Disabled by default on mobile. Can cause performance issues."
label={t("settings.interface.blurEffect")}
description={t("settings.interface.blurEffectDescription")}
>
<Checkbox onChange={toggleBlurEffect} checked={blurEffectEnabled()} />
</SettingsBlock>
Expand All @@ -92,8 +92,8 @@ function AdvancedMarkup() {
return (
<SettingsBlock
icon="dvr"
label="Disable Advanced Markup Bar"
description="Disable advanced markup bar from text channels."
label={t("settings.interface.disableAdvancedMarkupBar")}
description={t("settings.interface.disableAdvancedMarkupBarDescription")}
>
<Checkbox onChange={setEnabled} checked={enabled()} />
</SettingsBlock>
Expand All @@ -105,8 +105,8 @@ function CustomizeColors() {
<div>
<SettingsBlock
icon="palette"
label="Customize Colors"
description="Customize the colors of the interface."
label={t("settings.interface.customizeColors")}
description={t("settings.interface.customizeColorsDescription")}
header
/>
<For each={Object.entries(currentTheme())}>
Expand Down
8 changes: 8 additions & 0 deletions src/locales/list/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,14 @@
"stopButton": "Stop",
"downloadAppNotice": "Download the Nerimity desktop app to use this feature without window tab focus."

},
"interface": {
"blurEffect": "Blur Effect",
"blurEffectDescription": "Enables transparent blur effect. Disabled by default on mobile. Can cause performance issues.",
"disableAdvancedMarkupBar": "Disable Advanced Markup Bar",
"disableAdvancedMarkupBarDescription": "Disable advanced markup bar from text channels.",
"customizeColors": "Customize Colors",
"customizeColorsDescription": "Customize the colors of the interface."
}
},
"supportBlock": {
Expand Down

0 comments on commit 4899145

Please sign in to comment.