t
This commit is contained in:
parent
a9685f080b
commit
ef9cf13534
3 changed files with 26 additions and 7 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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
|
|||
</div>
|
||||
<ScrollerThin className={cl("list")} fade>
|
||||
{loading ? (
|
||||
<div className={cl("empty")}>Loading members...</div>
|
||||
<div className={cl("empty")}>
|
||||
<Translate i18nKey="clickableRoles.loadingMembers">
|
||||
Loading members...
|
||||
</Translate>
|
||||
</div>
|
||||
) : users.length === 0 ? (
|
||||
<div className={cl("empty")}>No members found.</div>
|
||||
<div className={cl("empty")}>
|
||||
<Translate i18nKey="clickableRoles.noMembers">
|
||||
No members found.
|
||||
</Translate>
|
||||
</div>
|
||||
) : users.map(user => (
|
||||
<div
|
||||
key={user.id}
|
||||
|
|
@ -111,7 +120,11 @@ function RoleMembersList({ roleId, guildId, closePopout, setPopoutRef }: { roleI
|
|||
</div>
|
||||
))}
|
||||
{totalCount > MAX_VISIBLE_MEMBERS && (
|
||||
<div className={cl("overflow")}>and {totalCount - MAX_VISIBLE_MEMBERS} more</div>
|
||||
<div className={cl("overflow")}>
|
||||
<Translate i18nKey="clickableRoles.andNumMore" variables={{ count: totalCount - MAX_VISIBLE_MEMBERS }}>
|
||||
and {(totalCount - MAX_VISIBLE_MEMBERS).toString()} more
|
||||
</Translate>
|
||||
</div>
|
||||
)}
|
||||
</ScrollerThin>
|
||||
</div>
|
||||
|
|
@ -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: [
|
||||
Loading…
Add table
Reference in a new issue