{requiredPlugins}
@@ -353,7 +354,7 @@ export default function PluginSettings() {
function makeDependencyList(deps: string[]) {
return (
- This plugin is required by:
+ {$t("vencord.pluginRequiredBy")}
{deps.map((dep: string) => {dep})}
);
diff --git a/src/components/VencordSettings/BackupAndRestoreTab.tsx b/src/components/VencordSettings/BackupAndRestoreTab.tsx
index a9a1c9fec..faee99334 100644
--- a/src/components/VencordSettings/BackupAndRestoreTab.tsx
+++ b/src/components/VencordSettings/BackupAndRestoreTab.tsx
@@ -20,6 +20,7 @@ import { Flex } from "@components/Flex";
import { Margins } from "@utils/margins";
import { classes } from "@utils/misc";
import { downloadSettingsBackup, uploadSettingsBackup } from "@utils/settingsSync";
+import { $t } from "@utils/translation";
import { Button, Card, Text } from "@webpack/common";
import { SettingsTab, wrapTab } from "./shared";
@@ -29,21 +30,19 @@ function BackupRestoreTab() {
- Warning
- Importing a settings file will overwrite your current settings.
+ {$t("vencord.warning")}
+ {$t("vencord.backupAndRestore.importWarning")}
- You can import and export your Vencord settings as a JSON file.
- This allows you to easily transfer your settings to another device,
- or recover your settings after reinstalling Vencord or Discord.
+ {$t("vencord.backupAndRestore.description")}
- Settings Export contains:
+ {$t("vencord.backupAndRestore.exportContains")}
-
— Custom QuickCSS
-
— Theme Links
-
— Plugin Settings
+
— {$t("vencord.backupAndRestore.customQuickcss")}
+
— {$t("vencord.backupAndRestore.themeLinks")}
+
— {$t("vencord.backupAndRestore.pluginSettings")}
@@ -51,13 +50,13 @@ function BackupRestoreTab() {
onClick={() => uploadSettingsBackup()}
size={Button.Sizes.SMALL}
>
- Import Settings
+ {$t("vencord.backupAndRestore.importSettings")}
diff --git a/src/components/VencordSettings/CloudTab.tsx b/src/components/VencordSettings/CloudTab.tsx
index 080dd8dd9..fee33303e 100644
--- a/src/components/VencordSettings/CloudTab.tsx
+++ b/src/components/VencordSettings/CloudTab.tsx
@@ -23,6 +23,7 @@ import { Link } from "@components/Link";
import { authorizeCloud, cloudLogger, deauthorizeCloud, getCloudAuth, getCloudUrl } from "@utils/cloud";
import { Margins } from "@utils/margins";
import { deleteCloudSettings, getCloudSettings, putCloudSettings } from "@utils/settingsSync";
+import { $t, Translate } from "@utils/translation";
import { Alerts, Button, Forms, Switch, Tooltip } from "@webpack/common";
import { SettingsTab, wrapTab } from "./shared";
@@ -45,8 +46,8 @@ async function eraseAllData() {
if (!res.ok) {
cloudLogger.error(`Failed to erase data, API returned ${res.status}`);
showNotification({
- title: "Cloud Integrations",
- body: `Could not erase all data (API returned ${res.status}), please contact support.`,
+ title: $t("vencord.cloudIntegrations"),
+ body: $t("vencord.cloud.integrations.eraseError", { status: res.status }),
color: "var(--red-360)"
});
return;
@@ -56,8 +57,8 @@ async function eraseAllData() {
await deauthorizeCloud();
showNotification({
- title: "Cloud Integrations",
- body: "Successfully erased all data.",
+ title: $t("vencord.cloudIntegrations"),
+ body: $t("vencord.cloud.integrations.eraseSuccess"),
color: "var(--green-360)"
});
}
@@ -69,8 +70,7 @@ function SettingsSyncSection() {
return (
- Synchronize your settings to the cloud. This allows easy synchronization across multiple devices with
- minimal effort.
+ {$t("vencord.cloud.settings.description")}
{ cloud.settingsSync = v; }}
>
- Settings Sync
+ {$t("vencord.settingsSync")}
);
@@ -116,22 +116,22 @@ function CloudTab() {
- Vencord comes with a cloud integration that adds goodies like settings sync across devices.
- It respects your privacy, and
- the source code is AGPL 3.0 licensed so you
- can host it yourself.
+
+
+
+ { v && authorizeCloud(); if (!v) settings.cloud.authenticated = v; }}
- note="This will request authorization if you have not yet set up cloud integrations."
+ note={$t("vencord.cloud.integrations.authorizationNote")}
>
- Enable Cloud Integrations
+ {$t("vencord.cloud.integrations.enable")}
- Backend URL
+ {$t("vencord.cloud.integrations.backendUrl")}
- Which backend to use when using cloud integrations.
+ {$t("vencord.cloud.integrations.backendNote")}
Alerts.show({
- title: "Are you sure?",
- body: "Once your data is erased, we cannot recover it. There's no going back!",
+ title: $t("vencord.areYouSure"),
+ body: $t("vencord.cloud.integrations.eraseWarning"),
onConfirm: eraseAllData,
- confirmText: "Erase it!",
+ confirmText: $t("vencord.cloud.integrations.eraseIt"),
confirmColor: "vc-cloud-erase-data-danger-btn",
- cancelText: "Nevermind"
+ cancelText: $t("vencord.nevermind")
})}
- >Erase All Data
+ >{$t("vencord.cloud.integrations.eraseAllData")}
diff --git a/src/components/VencordSettings/ThemesTab.tsx b/src/components/VencordSettings/ThemesTab.tsx
index 2eb91cb82..cbc30f7c9 100644
--- a/src/components/VencordSettings/ThemesTab.tsx
+++ b/src/components/VencordSettings/ThemesTab.tsx
@@ -29,6 +29,7 @@ import { classes } from "@utils/misc";
import { openModal } from "@utils/modal";
import { showItemInFolder } from "@utils/native";
import { useAwaiter } from "@utils/react";
+import { $t } from "@utils/translation";
import { findByPropsLazy, findLazy } from "@webpack";
import { Button, Card, Forms, React, showToast, TabBar, TextArea, useEffect, useRef, useState } from "@webpack/common";
import type { ComponentType, Ref, SyntheticEvent } from "react";
@@ -202,17 +203,17 @@ function ThemesTab() {
return (
<>
- Find Themes:
+ {$t("vencord.themes.findThemes")}
- If using the BD site, click on "Download" and place the downloaded .theme.css file into your themes folder.
+ {$t("vencord.themes.betterDiscordNote")}
-
+
<>
{IS_WEB ?
@@ -221,7 +222,7 @@ function ThemesTab() {
size={Button.Sizes.SMALL}
disabled={themeDirPending}
>
- Upload Theme
+ {$t("vencord.themes.upload")}
- Open Themes Folder
+ {$t("vencord.themes.openFolder")}
)}
{Vencord.Settings.plugins.ClientTheme.enabled && (
@@ -262,7 +263,7 @@ function ThemesTab() {
))}
size={Button.Sizes.SMALL}
>
- Edit ClientTheme
+ {$t("clientTheme.edit")}
)}
>
@@ -303,12 +304,12 @@ function ThemesTab() {
return (
<>
- Paste links to css files here
- One link per line
- Make sure to use direct links to files (raw or github.io)!
+ {$t("vencord.themes.pasteLinks")}
+ {$t("vencord.themes.oneLinkPerLine")}
+ {$t("vencord.themes.useDirect")}
-
+