diff --git a/i18n/en-US/equicord.json b/i18n/en-US/equicord.json index 64916ae21..d5a392c32 100644 --- a/i18n/en-US/equicord.json +++ b/i18n/en-US/equicord.json @@ -267,6 +267,12 @@ "cleanerChannelGroups": { "description": "Hides all channels in collapsed categories, even if they have unread messages." }, + "clickableRoles": { + "description": "Click on roles in user profiles and the member list to see which members have them.", + "loadingMembers": "Loading members...", + "noMembers": "No members found.", + "andNumMore": "and {count} more" + }, "clientSideBlock": { "description": "Allows you to locally hide almost all content from any user", "settings": { @@ -428,14 +434,13 @@ } }, "declutter": { - "description": "Declutter discord ui by removing unwanted elements such as profile customizations, shops, quests and more.", + "description": "Cleans up Discord by removing non-essential UI elements like profile effects, shop tabs, boosts, and more.", "settings": { "removeNameplate": "Remove nameplate styling.", "removeAudioMenus": "Remove menus next to mute and deafen buttons.", "alwaysShowUsername": "Always show username instead of status.", "removeButtonTooltips": "Remove button tooltips.", "removeAvatarDecoration": "Remove avatar decoration.", - "removeUsernameStyles": "Remove username colors and effects.", "removeShopAboveDM": "Remove shops above DMs list.", "removeQuestsAboveDM": "Remove quests above DMs list.", "removeServerBoostInfo": "Remove server boost info above channel list.", @@ -448,7 +453,8 @@ "headers": { "userProfile": "User Profile", "friendsList": "Above Friends/DMs List", - "misc": "Misc" + "misc": "Misc", + "accessibilityNotice": "Discord already has a built-in username style option in Accessibility settings." } }, "disableCameras": { diff --git a/src/plugins/clickableRoles/index.tsx b/src/equicordplugins/clickableRoles/index.tsx similarity index 88% rename from src/plugins/clickableRoles/index.tsx rename to src/equicordplugins/clickableRoles/index.tsx index 8f86916c0..06854c57b 100644 --- a/src/plugins/clickableRoles/index.tsx +++ b/src/equicordplugins/clickableRoles/index.tsx @@ -12,6 +12,7 @@ import { classNameFactory } from "@utils/css"; import { openUserProfile } from "@utils/discord"; import { isTruthy } from "@utils/guards"; import { Logger } from "@utils/Logger"; +import { t, Translate } from "@utils/translation"; import definePlugin from "@utils/types"; import type { Role } from "@vencord/discord-types"; import { findByPropsLazy } from "@webpack"; @@ -94,9 +95,17 @@ function RoleMembersList({ roleId, guildId, closePopout, setPopoutRef }: { roleI {loading ? ( -
Loading members...
+
+ + Loading members... + +
) : users.length === 0 ? ( -
No members found.
+
+ + No members found. + +
) : users.map(user => (
))} {totalCount > MAX_VISIBLE_MEMBERS && ( -
and {totalCount - MAX_VISIBLE_MEMBERS} more
+
+ + and {(totalCount - MAX_VISIBLE_MEMBERS).toString()} more + +
)}
@@ -145,7 +158,7 @@ const WrappedClickableRole = ErrorBoundary.wrap(ClickableRole, { noop: true }); export default definePlugin({ name: "ClickableRoles", - description: "Click on roles in user profiles and the member list to see which members have them.", + description: t("clickableRoles.description"), authors: [Devs.prism], patches: [ diff --git a/src/plugins/clickableRoles/style.css b/src/equicordplugins/clickableRoles/style.css similarity index 100% rename from src/plugins/clickableRoles/style.css rename to src/equicordplugins/clickableRoles/style.css