From ec5f9f78d32614ad5df51cad772c004e73fc6ad9 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Sun, 9 Jun 2024 21:50:18 +0100 Subject: [PATCH] feat: testing top levels --- src/plugins/clientTheme/index.tsx | 3 ++- translations/de/clientTheme.json | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 translations/de/clientTheme.json diff --git a/src/plugins/clientTheme/index.tsx b/src/plugins/clientTheme/index.tsx index 4e07daf42..402fded21 100644 --- a/src/plugins/clientTheme/index.tsx +++ b/src/plugins/clientTheme/index.tsx @@ -10,6 +10,7 @@ import { definePluginSettings } from "@api/Settings"; import { Devs } from "@utils/constants"; import { Margins } from "@utils/margins"; import { classes } from "@utils/misc"; +import { $t } from "@utils/translation"; import definePlugin, { OptionType, StartAt } from "@utils/types"; import { findByPropsLazy, findComponentByCodeLazy, findStoreLazy } from "@webpack"; import { Button, Forms, useStateFromStores } from "@webpack/common"; @@ -112,7 +113,7 @@ const settings = definePluginSettings({ export default definePlugin({ name: "ClientTheme", authors: [Devs.F53, Devs.Nuckyz], - description: "Recreation of the old client theme experiment. Add a color to your Discord client theme", + description: $t("clientTheme.description"), settings, startAt: StartAt.DOMContentLoaded, diff --git a/translations/de/clientTheme.json b/translations/de/clientTheme.json new file mode 100644 index 000000000..7e3e40655 --- /dev/null +++ b/translations/de/clientTheme.json @@ -0,0 +1,4 @@ +{ + "description": "Plugin description but in German. Ja!", + "edit": "Edit ClientTheme" +}