t
This commit is contained in:
parent
116348eab1
commit
0b2545269c
24 changed files with 68 additions and 40 deletions
|
|
@ -2,13 +2,15 @@
|
|||
"donate": "Donate",
|
||||
"invite": "Invite",
|
||||
"loading": "Loading...",
|
||||
"cancel": "Cancel",
|
||||
"logs": {
|
||||
"cancel": "Cancel",
|
||||
"clearLog": "Clear Log",
|
||||
"clearLogConfirmation": "Are you sure you would like to clear this log? This can't be undone.",
|
||||
"logCleared": "Log has been cleared",
|
||||
"clearLogs": "Clear Logs",
|
||||
"clearLogsConfirmation": "Are you sure you would like to clear these logs? This can't be undone.",
|
||||
"clearLogsConfirmationNum_one": "Are you sure you want to clear {count} log",
|
||||
"clearLogsConfirmationNum_other": "Are you sure you want to clear {count} logs",
|
||||
"logsCleared": "Selected logs have been cleared",
|
||||
"hideLogs": "Hide Logs",
|
||||
"showLogs": "Show Logs",
|
||||
|
|
@ -87,7 +89,7 @@
|
|||
},
|
||||
"requiredToFunction": "This plugin is required for Equicord to function",
|
||||
"pluginRequiredBy": "This plugin is required by: {pluginNames}",
|
||||
"noDescription": "No description available",
|
||||
"noDescription": "No description available"
|
||||
},
|
||||
"changelog": {
|
||||
"manager": {
|
||||
|
|
|
|||
|
|
@ -669,7 +669,7 @@ function ChangelogContent() {
|
|||
body: t("vencord.logs.clearLogConfirmation"),
|
||||
confirmText: t("vencord.logs.clearLog"),
|
||||
confirmColor: "danger",
|
||||
cancelText: t("vencord.logs.cancel"),
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm: async () => {
|
||||
await clearIndividualLog(logId);
|
||||
await loadChangelogHistory();
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ import { proxyLazy } from "@utils/lazy";
|
|||
import { Margins } from "@utils/margins";
|
||||
import { classes, isObjectEmpty } from "@utils/misc";
|
||||
import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import { OptionType, Plugin } from "@utils/types";
|
||||
import { User } from "@vencord/discord-types";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
|
|
@ -356,7 +357,7 @@ export function openWarningModal(plugin?: Plugin | null, pluginModalProps?: Moda
|
|||
onClick={warningModalProps.onClose}
|
||||
look={Button.Looks.FILLED}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
{!Settings.ignoreResetWarning && (
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ import { Margins } from "@utils/margins";
|
|||
import { classes } from "@utils/misc";
|
||||
import { relaunch } from "@utils/native";
|
||||
import { useAwaiter } from "@utils/react";
|
||||
import { t } from "@utils/translation";
|
||||
import { changes, checkForUpdates, getRepo, isNewer, update, updateError, UpdateLogger } from "@utils/updater";
|
||||
import { Alerts, Button, Parser, React, Toasts } from "@webpack/common";
|
||||
|
||||
|
|
@ -169,7 +170,7 @@ function Newer(props: CommonProps) {
|
|||
function Updater() {
|
||||
const settings = useSettings(["autoUpdate", "autoUpdateNotification"]);
|
||||
|
||||
const [repo, err, repoPending] = useAwaiter(getRepo, { fallbackValue: "Loading..." });
|
||||
const [repo, err, repoPending] = useAwaiter(getRepo, { fallbackValue: t("vencord.loading") });
|
||||
|
||||
React.useEffect(() => {
|
||||
if (err)
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import { Bookmark, BookmarkFolder, Bookmarks, ChannelTabsProps, UseBookmarkMetho
|
|||
import { getIntlMessage } from "@utils/discord";
|
||||
import { Margins } from "@utils/margins";
|
||||
import { closeModal, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, openModal } from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import { Button, ChannelStore, FluxDispatcher, Menu, ReadStateStore, ReadStateUtils, Select, TextInput, useState } from "@webpack/common";
|
||||
|
||||
export function BasicContextMenu() {
|
||||
|
|
@ -83,7 +84,9 @@ export function EditModal({ modalProps, modalKey, bookmark, onSave }: {
|
|||
color={Button.Colors.TRANSPARENT}
|
||||
look={Button.Looks.FILLED}
|
||||
onClick={() => closeModal(modalKey)}
|
||||
>Cancel</Button>
|
||||
>
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</ModalRoot>
|
||||
);
|
||||
|
|
@ -129,7 +132,9 @@ function AddToFolderModal({ modalProps, modalKey, bookmarks, onSave }: {
|
|||
color={Button.Colors.TRANSPARENT}
|
||||
look={Button.Looks.FILLED}
|
||||
onClick={() => closeModal(modalKey)}
|
||||
>Cancel</Button>
|
||||
>
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</ModalRoot>
|
||||
);
|
||||
|
|
@ -158,7 +163,7 @@ function DeleteFolderConfirmationModal({ modalProps, modalKey, onConfirm }) {
|
|||
look={Button.Looks.FILLED}
|
||||
onClick={() => closeModal(modalKey)}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</ModalRoot>
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@
|
|||
import { addMessagePreSendListener, removeMessagePreSendListener } from "@api/MessageEvents";
|
||||
import { Paragraph } from "@components/Paragraph";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { t } from "@utils/translation";
|
||||
import definePlugin from "@utils/types";
|
||||
import { Alerts, ChannelStore, PermissionsBits, PermissionStore } from "@webpack/common";
|
||||
|
||||
|
|
@ -29,7 +30,7 @@ function warningEmbedNotice(trigger) {
|
|||
</Paragraph>
|
||||
</div>,
|
||||
confirmText: "Send Anyway",
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm: () => resolve(true),
|
||||
onCloseCallback: () => setImmediate(() => resolve(false)),
|
||||
});
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { BaseText } from "@components/BaseText";
|
|||
import { Flex } from "@components/Flex";
|
||||
import { HeadingTertiary } from "@components/Heading";
|
||||
import { copyToClipboard } from "@utils/clipboard";
|
||||
import { t } from "@utils/translation";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { Button, Forms, Parser, useEffect, useState } from "@webpack/common";
|
||||
|
||||
|
|
@ -115,7 +116,7 @@ export default function FriendCodesPanel() {
|
|||
weight="semibold"
|
||||
className="vc-friend-codes-text"
|
||||
>
|
||||
Loading...
|
||||
{t("vencord.loading")}
|
||||
</BaseText>
|
||||
) : invites.length === 0 ? (
|
||||
<BaseText
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ import ErrorBoundary from "@components/ErrorBoundary";
|
|||
import { Heading } from "@components/Heading";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, openModal } from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { Message, User } from "@vencord/discord-types";
|
||||
import { findComponentByCodeLazy } from "@webpack";
|
||||
|
|
@ -95,7 +96,7 @@ function NicknameModal({ modalProps, user }: { modalProps: ModalProps; user: Use
|
|||
style={{ marginRight: "8px" }}
|
||||
onClick={modalProps.onClose}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</ModalRoot>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ import {
|
|||
ModalRoot,
|
||||
openModal,
|
||||
} from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import { Button, React, TextInput } from "@webpack/common";
|
||||
|
||||
import { buildEmbed, decrypt } from "../index";
|
||||
|
|
@ -65,7 +66,7 @@ export function DecModal(props: any) {
|
|||
style={{ left: 15, position: "absolute" }}
|
||||
onClick={props.onClose}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</ModalRoot>
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ import {
|
|||
ModalRoot,
|
||||
openModal,
|
||||
} from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import { Button, React, TextInput } from "@webpack/common";
|
||||
|
||||
import { encrypt } from "../index";
|
||||
|
|
@ -101,7 +102,7 @@ function EncModal(props: ModalProps) {
|
|||
props.onClose();
|
||||
}}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</ModalRoot>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { definePluginSettings } from "@api/Settings";
|
|||
import { getUserSettingLazy } from "@api/UserSettings";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { t } from "@utils/translation";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { findComponentByCodeLazy } from "@webpack";
|
||||
import { ChannelStore, Constants, MessageStore, RestAPI, Tooltip, useEffect, useState, useStateFromStores } from "@webpack/common";
|
||||
|
|
@ -135,7 +136,7 @@ function MessagePreview({ channelId, messageId }) {
|
|||
const compact = settings.store.display === "compact" ? true : settings.store.display === "cozy" ? false : rawCompact;
|
||||
|
||||
if (!message) {
|
||||
return <span>Loading...</span>;
|
||||
return <span>{t("vencord.loading")}</span>;
|
||||
}
|
||||
|
||||
return <ChannelMessage
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import { importLogs } from "@equicordplugins/messageLoggerEnhanced/utils/setting
|
|||
import { copyWithToast, openUserProfile } from "@utils/discord";
|
||||
import { closeAllModals, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal";
|
||||
import { LazyComponent } from "@utils/react";
|
||||
import { t } from "@utils/translation";
|
||||
import { User } from "@vencord/discord-types";
|
||||
import { find, findByCode, findByCodeLazy } from "@webpack";
|
||||
import { Alerts, Button, ChannelStore, ContextMenuApi, FluxDispatcher, GuildStore, Menu, NavigationRouter, React, TabBar, TextInput, Tooltip, useMemo, useRef, useState } from "@webpack/common";
|
||||
|
|
@ -142,11 +143,11 @@ export function LogsModal({ modalProps, initalQuery }: Props) {
|
|||
<Button
|
||||
color={Button.Colors.RED}
|
||||
onClick={() => Alerts.show({
|
||||
title: "Clear Logs",
|
||||
body: "Are you sure you want to clear all the logs",
|
||||
title: t("vencord.logs.clearAllLogs"),
|
||||
body: t("vencord.logs.clearAllLogsConfirmation"),
|
||||
confirmText: "Clear",
|
||||
confirmColor: Button.Colors.RED,
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm: async () => {
|
||||
await clearMessagesIDB();
|
||||
reset();
|
||||
|
|
@ -161,11 +162,11 @@ export function LogsModal({ modalProps, initalQuery }: Props) {
|
|||
color={Button.Colors.BRAND}
|
||||
disabled={messages?.length === 0}
|
||||
onClick={() => Alerts.show({
|
||||
title: "Clear Logs",
|
||||
body: `Are you sure you want to clear ${messages.length} logs`,
|
||||
title: t("vencord.logs.clearLogs"),
|
||||
body: t("vencord.logs.clearLogsConfirmationNum", { count: messages.length }),
|
||||
confirmText: "Clear",
|
||||
confirmColor: Button.Colors.RED,
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm: async () => {
|
||||
await deleteMessagesBulkIDB(messages.map(e => e.message_id));
|
||||
reset();
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { t } from "@utils/translation";
|
||||
import { OptionType } from "@utils/types";
|
||||
import { Alerts, Button } from "@webpack/common";
|
||||
import { Settings } from "Vencord";
|
||||
|
|
@ -233,22 +234,22 @@ export const settings = definePluginSettings({
|
|||
|
||||
clearLogs: {
|
||||
type: OptionType.COMPONENT,
|
||||
description: "Clear Logs",
|
||||
description: t("vencord.logs.clearAllLogs"),
|
||||
component: () =>
|
||||
<Button
|
||||
color={Button.Colors.RED}
|
||||
onClick={() => Alerts.show({
|
||||
title: "Clear Logs",
|
||||
body: "Are you sure you want to clear all logs?",
|
||||
title: t("vencord.logs.clearAllLogs"),
|
||||
body: t("vencord.logs.clearAllLogsConfirmation"),
|
||||
confirmColor: Button.Colors.RED,
|
||||
confirmText: "Clear",
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm: () => {
|
||||
clearMessagesIDB();
|
||||
},
|
||||
})}
|
||||
>
|
||||
Clear Logs
|
||||
{t("vencord.logs.clearAllLogs")}
|
||||
</Button>
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ import type { Theme, ThemeLikeProps } from "@equicordplugins/themeLibrary/types"
|
|||
import { proxyLazy } from "@utils/lazy";
|
||||
import { Margins } from "@utils/margins";
|
||||
import { ModalContent, ModalFooter, ModalHeader, ModalRoot, ModalSize, openModal } from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import { User } from "@vencord/discord-types";
|
||||
import { Button, FluxDispatcher, Parser, React, UserStore, UserUtils } from "@webpack/common";
|
||||
import { Constructor } from "type-fest";
|
||||
|
|
@ -93,7 +94,7 @@ export const ThemeCard: React.FC<ThemeCardProps> = ({ theme, themeLinks, likedTh
|
|||
className={Margins.right8}
|
||||
onClick={() => modalProps.onClose()}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
</ModalFooter>
|
||||
</ModalRoot>
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import { openInviteModal } from "@utils/discord";
|
|||
import { Margins } from "@utils/margins";
|
||||
import { classes } from "@utils/misc";
|
||||
import { ModalContent, ModalFooter, ModalHeader, ModalRoot, ModalSize, openModal } from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import type { PluginNative } from "@utils/types";
|
||||
import { findComponentByCodeLazy } from "@webpack";
|
||||
import { Button, Parser, React, showToast, Toasts } from "@webpack/common";
|
||||
|
|
@ -86,14 +87,14 @@ export const ThemeInfoModal: React.FC<ThemeInfoModalProps> = ({ author, theme, .
|
|||
</Paragraph>
|
||||
{donate && (
|
||||
<>
|
||||
<Heading style={{ marginTop: "10px" }}>Donate</Heading>
|
||||
<Heading style={{ marginTop: "10px" }}>{t("vencord.donate")}</Heading>
|
||||
<Paragraph>
|
||||
You can support the author by donating below!
|
||||
</Paragraph>
|
||||
<Paragraph style={{ marginTop: "10px" }}>
|
||||
<Button onClick={() => VencordNative.native.openExternal(donate)}>
|
||||
<Heart />
|
||||
Donate
|
||||
{t("vencord.donate")}
|
||||
</Button>
|
||||
</Paragraph>
|
||||
</>
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import { addContextMenuPatch, NavContextMenuPatchCallback, removeContextMenuPatc
|
|||
import { DataStore } from "@api/index";
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import { EquicordDevs } from "@utils/constants";
|
||||
import { t } from "@utils/translation";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { CustomEmoji, UnicodeEmoji } from "@vencord/discord-types";
|
||||
import { Alerts, Button, EmojiStore, GuildStore, Menu, Toasts, useEffect, useState } from "@webpack/common";
|
||||
|
|
@ -566,7 +567,7 @@ const settings = definePluginSettings({
|
|||
body: "This will overwrite your current whitelist.",
|
||||
confirmText: "Import",
|
||||
confirmColor: Button.Colors.RED,
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm: async () => {
|
||||
await DataStore.set(DATA_COLLECTION_NAME, []);
|
||||
await uploadEmojis();
|
||||
|
|
@ -586,7 +587,7 @@ const settings = definePluginSettings({
|
|||
body: "This will remove all emojis from your whitelist.",
|
||||
confirmText: "Reset",
|
||||
confirmColor: Button.Colors.RED,
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm: resetEmojis
|
||||
})}>
|
||||
Reset Emojis
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { t } from "@utils/translation";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { Alerts, Button, GuildStore } from "@webpack/common";
|
||||
|
|
@ -97,7 +98,7 @@ export default definePlugin({
|
|||
confirmColor: Button.Colors.RED,
|
||||
confirmText: "Delete",
|
||||
onConfirm: () => GetPropsAndDeleteGuild(server.id),
|
||||
cancelText: "Cancel"
|
||||
cancelText: t("vencord.cancel")
|
||||
});
|
||||
} else {
|
||||
return GetPropsAndDeleteGuild(server.id);
|
||||
|
|
|
|||
|
|
@ -16,10 +16,11 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Heading,HeadingTertiary } from "@components/Heading";
|
||||
import { Heading, HeadingTertiary } from "@components/Heading";
|
||||
import { SessionInfo } from "@plugins/betterSessions/types";
|
||||
import { getDefaultName, savedSessionsCache, saveSessionsToDataStore } from "@plugins/betterSessions/utils";
|
||||
import { ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot } from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import { Button, React, TextInput } from "@webpack/common";
|
||||
import { KeyboardEvent } from "react";
|
||||
|
||||
|
|
@ -80,7 +81,7 @@ export function RenameModal({ props, session, state }: { props: ModalProps, sess
|
|||
color={Button.Colors.PRIMARY}
|
||||
onClick={() => props.onClose()}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
<Button
|
||||
color={Button.Colors.BRAND}
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ import { Decoration } from "@plugins/decor/lib/api";
|
|||
import { useCurrentUserDecorationsStore } from "@plugins/decor/lib/stores/CurrentUserDecorationsStore";
|
||||
import { cl } from "@plugins/decor/ui";
|
||||
import { copyToClipboard } from "@utils/clipboard";
|
||||
import { t } from "@utils/translation";
|
||||
import { Alerts, ContextMenuApi, Menu, UserStore } from "@webpack/common";
|
||||
|
||||
export default function DecorationContextMenu({ decoration }: { decoration: Decoration; }) {
|
||||
|
|
@ -36,7 +37,7 @@ export default function DecorationContextMenu({ decoration }: { decoration: Deco
|
|||
body: `Are you sure you want to delete ${decoration.alt}?`,
|
||||
confirmText: "Delete",
|
||||
confirmColor: cl("danger-btn"),
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm() {
|
||||
deleteDecoration(decoration);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import { copyWithToast, openInviteModal } from "@utils/discord";
|
|||
import { Margins } from "@utils/margins";
|
||||
import { closeAllModals, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal";
|
||||
import { Queue } from "@utils/Queue";
|
||||
import { t } from "@utils/translation";
|
||||
import { User } from "@vencord/discord-types";
|
||||
import { Alerts, Button, FluxDispatcher, Forms, GuildStore, NavigationRouter, Parser, Tooltip, useEffect, UserStore, UserSummaryItem, UserUtils, useState } from "@webpack/common";
|
||||
|
||||
|
|
@ -233,7 +234,7 @@ function ChangeDecorationModal(props: ModalProps) {
|
|||
onClick={props.onClose}
|
||||
color={Button.Colors.PRIMARY}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => {
|
||||
|
|
@ -272,7 +273,7 @@ function ChangeDecorationModal(props: ModalProps) {
|
|||
body: "Are you sure you want to log out of Decor?",
|
||||
confirmText: "Log Out",
|
||||
confirmColor: cl("danger-btn"),
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
onConfirm() {
|
||||
useAuthorizationStore.getState().remove(UserStore.getCurrentUser().id);
|
||||
props.onClose();
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import { AvatarDecorationModalPreview } from "@plugins/decor/ui/components";
|
|||
import { openInviteModal } from "@utils/discord";
|
||||
import { Margins } from "@utils/margins";
|
||||
import { closeAllModals, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal";
|
||||
import { t } from "@utils/translation";
|
||||
import { filters, findComponentByCodeLazy, mapMangledModuleLazy } from "@webpack";
|
||||
import { Button, FluxDispatcher, GuildStore, NavigationRouter, TextInput, useEffect, useMemo, UserStore, useState } from "@webpack/common";
|
||||
|
||||
|
|
@ -153,7 +154,7 @@ function CreateDecorationModal(props: ModalProps) {
|
|||
onClick={props.onClose}
|
||||
color={Button.Colors.PRIMARY}
|
||||
>
|
||||
Cancel
|
||||
{t("vencord.cancel")}
|
||||
</Button>
|
||||
<Button
|
||||
onClick={() => {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import { ApngBlendOp, ApngDisposeOp, parseAPNG } from "@utils/apng";
|
|||
import { Devs } from "@utils/constants";
|
||||
import { getCurrentGuild, getEmojiURL } from "@utils/discord";
|
||||
import { Logger } from "@utils/Logger";
|
||||
import { t } from "@utils/translation";
|
||||
import definePlugin, { OptionType, Patch } from "@utils/types";
|
||||
import type { Emoji, Message } from "@vencord/discord-types";
|
||||
import { StickerFormatType } from "@vencord/discord-types/enums";
|
||||
|
|
@ -811,7 +812,7 @@ export default definePlugin({
|
|||
</Paragraph>
|
||||
</div>,
|
||||
confirmText: "Send Anyway",
|
||||
cancelText: "Cancel",
|
||||
cancelText: t("vencord.cancel"),
|
||||
secondaryConfirmText: "Do not show again",
|
||||
onConfirm: () => resolve(true),
|
||||
onCloseCallback: () => setImmediate(() => resolve(false)),
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ import { getGuildAcronym, openImageModal, openUserProfile } from "@utils/discord
|
|||
import { classes } from "@utils/misc";
|
||||
import { ModalRoot, ModalSize, openModal } from "@utils/modal";
|
||||
import { useAwaiter } from "@utils/react";
|
||||
import { t } from "@utils/translation";
|
||||
import { Guild, User } from "@vencord/discord-types";
|
||||
import { findByPropsLazy, findComponentByCodeLazy } from "@webpack";
|
||||
import { FluxDispatcher, GuildChannelStore, GuildMemberStore, GuildRoleStore, GuildStore, IconUtils, Parser, PresenceStore, RelationshipStore, ScrollerThin, SnowflakeUtils, TabBar, Timestamp, useEffect, UserStore, UserUtils, useState, useStateFromStores } from "@webpack/common";
|
||||
|
|
@ -229,7 +230,7 @@ function ServerInfoTab({ guild }: GuildProps) {
|
|||
});
|
||||
|
||||
const Fields = {
|
||||
"Server Owner": owner ? Owner(guild.id, owner) : "Loading...",
|
||||
"Server Owner": owner ? Owner(guild.id, owner) : t("vencord.loading"),
|
||||
"Created At": renderTimestamp(SnowflakeUtils.extractTimestamp(guild.id)),
|
||||
"Joined At": guild.joinedAt ? renderTimestamp(guild.joinedAt.getTime()) : "-", // Not available in lurked guild
|
||||
"Vanity Link": guild.vanityURLCode ? (<a>{`discord.gg/${guild.vanityURLCode}`}</a>) : "-", // Making the anchor href valid would cause Discord to reload
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
import ErrorBoundary from "@components/ErrorBoundary";
|
||||
import { Flex } from "@components/Flex";
|
||||
import { HeadingPrimary, HeadingSecondary } from "@components/Heading";
|
||||
import { t } from "@utils/translation";
|
||||
import { findByPropsLazy } from "@webpack";
|
||||
import { React } from "@webpack/common";
|
||||
|
||||
|
|
@ -133,7 +134,7 @@ function ServerTrace({ trace }: ServerTraceProps) {
|
|||
}
|
||||
|
||||
function StartupTimingPage() {
|
||||
if (!AppStartPerformance?.logs) return <div>Loading...</div>;
|
||||
if (!AppStartPerformance?.logs) return <div>{t("vencord.loading")}</div>;
|
||||
|
||||
const serverTrace = AppStartPerformance.logGroups.find(g => g.serverTrace)?.serverTrace;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue