Fix all plugins for new i18n lib (#2993)

This commit is contained in:
Nuckyz 2024-11-05 16:49:27 -03:00
parent 5216bcca1e
commit 00f82e96bd
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
89 changed files with 351 additions and 238 deletions

View file

@ -149,7 +149,7 @@ export default definePlugin({
}
},
{
find: ".Messages.CHANNEL_TOOLTIP_DIRECTORY",
find: "#{intl::CHANNEL_TOOLTIP_DIRECTORY}",
predicate: () => settings.store.showMode === ShowMode.LockIcon,
replacement: {
// Lock Icon
@ -274,7 +274,7 @@ export default definePlugin({
}
},
{
find: ".Messages.ROLE_REQUIRED_SINGLE_USER_MESSAGE",
find: "#{intl::ROLE_REQUIRED_SINGLE_USER_MESSAGE}",
replacement: [
{
// Change the role permission check to CONNECT if the channel is locked
@ -336,7 +336,7 @@ export default definePlugin({
]
},
{
find: ".Messages.CHANNEL_CALL_CURRENT_SPEAKER.format",
find: "#{intl::CHANNEL_CALL_CURRENT_SPEAKER}",
replacement: [
{
// Remove the divider and the open chat button for the HiddenChannelLockScreen
@ -351,7 +351,7 @@ export default definePlugin({
]
},
{
find: ".Messages.EMBEDDED_ACTIVITIES_DEVELOPER_ACTIVITY_SHELF_FETCH_ERROR",
find: "#{intl::EMBEDDED_ACTIVITIES_DEVELOPER_ACTIVITY_SHELF_FETCH_ERROR}",
replacement: [
{
// Render our HiddenChannelLockScreen component instead of the main voice channel component
@ -401,7 +401,7 @@ export default definePlugin({
]
},
{
find: ".Messages.STAGE_FULL_MODERATOR_TITLE",
find: "#{intl::STAGE_FULL_MODERATOR_TITLE}",
replacement: [
{
// Remove the divider and amount of users in stage channel components for the HiddenChannelLockScreen
@ -463,7 +463,7 @@ export default definePlugin({
]
},
{
find: ".Messages.FORM_LABEL_MUTED",
find: "#{intl::FORM_LABEL_MUTED}",
replacement: {
// Make GuildChannelStore.getChannels return hidden channels
match: /(?<=getChannels\(\i)(?=\))/,