diff --git a/.vscode/i18n-ally-custom-framework.yml b/.vscode/i18n-ally-custom-framework.yml
index 2ecae1fbd..534501712 100644
--- a/.vscode/i18n-ally-custom-framework.yml
+++ b/.vscode/i18n-ally-custom-framework.yml
@@ -5,12 +5,12 @@ languageIds:
- typescriptreact
usageMatchRegex:
- - "[^\\w\\d]\\$t\\(['\"`]({key})['\"`]"
+ - "[^\\w\\d]\\t\\(['\"`]({key})['\"`]"
- ""
monopoly: true
diff --git a/src/plugins/clientTheme/index.tsx b/src/plugins/clientTheme/index.tsx
index 4d85a64a5..691722634 100644
--- a/src/plugins/clientTheme/index.tsx
+++ b/src/plugins/clientTheme/index.tsx
@@ -65,8 +65,8 @@ function ThemeSettings() {
- Theme Color
- Add a color to your Discord client theme
+ {t("clientTheme.settingsTitle")}
+ {t("clientTheme.settingsDescription")}
- Warning, your theme won't look good:
- {contrastWarning && Selected color won't contrast well with text}
- {nitroThemeEnabled && Nitro themes aren't supported}
+ {t("clientTheme.warningTitle")}
+ {contrastWarning && {t("clientTheme.warnings.badContrast")}}
+ {nitroThemeEnabled && {t("clientTheme.warnings.nitro")}}
- {(contrastWarning && fixableContrast) &&
}
- {(nitroThemeEnabled) &&
}
+ {(contrastWarning && fixableContrast) &&
}
+ {(nitroThemeEnabled) &&
}
>)}
@@ -93,18 +93,18 @@ function ThemeSettings() {
const settings = definePluginSettings({
color: {
- description: "Color your Discord client theme will be based around. Light mode isn't supported",
+ description: t("clientTheme.colorDescription"),
type: OptionType.COMPONENT,
default: "313338",
component: () =>
},
resetColor: {
- description: "Reset Theme Color",
+ description: t("clientTheme.resetColorDescription"),
type: OptionType.COMPONENT,
default: "313338",
component: () => (
)
}
diff --git a/translations/en/clientTheme.json b/translations/en/clientTheme.json
index ec759ae4d..8dce24069 100644
--- a/translations/en/clientTheme.json
+++ b/translations/en/clientTheme.json
@@ -1,4 +1,19 @@
{
+ "colorDescription": "Color your Discord client theme will be based around. Light mode isn't supported",
"description": "Recreation of the old client theme experiment. Add a color to your Discord client theme",
- "edit": "Edit ClientTheme"
+ "disableNitroTheme": "Disable Nitro Theme",
+ "edit": "Edit ClientTheme",
+ "resetButton": "Reset Theme Color",
+ "resetColorDescription": "Reset Theme Color",
+ "settingsDescription": "Add a color to your Discord client theme",
+ "settingsTitle": "Theme Color",
+ "switchToOpposite": {
+ "dark": "Switch to dark mode",
+ "light": "Switch to light mode"
+ },
+ "warningTitle": "Warning, your theme won't look good:",
+ "warnings": {
+ "badContrast": "Selected color won't contrast well with text",
+ "nitro": "Nitro themes aren't supported"
+ }
}