Skip to content

Commit

Permalink
Use i18n for labels
Browse files Browse the repository at this point in the history
  • Loading branch information
PonyGirlDShadow committed May 11, 2024
1 parent ba94f5d commit 1bad67c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { Flex } from "@components/Flex";
import { InfoIcon, OwnerCrownIcon } from "@components/Icons";
import { getUniqueUsername } from "@utils/discord";
import { ModalCloseButton, ModalContent, ModalHeader, ModalProps, ModalRoot, ModalSize, openModal } from "@utils/modal";
import { Clipboard, ContextMenuApi, FluxDispatcher, GuildMemberStore, GuildStore, Menu, PermissionsBits, Text, Tooltip, useEffect, UserStore, useState, useStateFromStores } from "@webpack/common";
import { Clipboard, ContextMenuApi, FluxDispatcher, GuildMemberStore, GuildStore, i18n, Menu, PermissionsBits, Text, Tooltip, useEffect, UserStore, useState, useStateFromStores } from "@webpack/common";
import type { Guild } from "discord-types/general";

import { settings } from "..";
Expand Down Expand Up @@ -209,7 +209,7 @@ function RoleContextMenu({ guild, roleId, onClose }: { guild: Guild; roleId: str
>
<Menu.MenuItem
id="vc-copy-role-id"
label="Copy Role ID"
label={i18n.Messages.COPY_ID_ROLE}
action={() => {
Clipboard.copy(roleId);
}}
Expand Down Expand Up @@ -252,7 +252,7 @@ function UserContextMenu({ userId, onClose }: { userId: string; onClose: () => v
>
<Menu.MenuItem
id="vc-copy-user-id"
label="Copy Role ID"
label={i18n.Messages.COPY_ID_USER}
action={() => {
Clipboard.copy(userId);
}}
Expand Down

0 comments on commit 1bad67c

Please sign in to comment.