Skip to content

Commit

Permalink
Merge branch 'serverTemplatesList' into 2024-11-fix-i18n-in-my-plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Sqaaakoi committed Nov 3, 2024
2 parents 45f6b94 + 7b17e28 commit 21467e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/serverTemplatesList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default definePlugin({
settings,
patches: [
{
find: "Messages.GUILD_TEMPLATE_SELECTOR_OPTION_HEADER",
find: "#{intl::GUILD_TEMPLATE_SELECTOR_OPTION_HEADER}",
replacement: [
// Guild icon, key is also used later for other identification
{
Expand All @@ -97,7 +97,7 @@ export default definePlugin({
},
// Inject templates
{
match: /(GUILD_TEMPLATE_SELECTOR_OPTION_HEADER}\),)(\(0,\i\.\i\)\((\i).{0,30}onClick:(\i).{0,500}?)]}/,
match: /(#{intl::GUILD_TEMPLATE_SELECTOR_OPTION_HEADER}\)}\),)(\(0,\i\.\i\)\((\i).{0,30}onClick:(\i).{0,500}?)]}/,
replace: "$1...$self.injectTemplates($3,$4,[$2])]}"
}
]
Expand Down

0 comments on commit 21467e0

Please sign in to comment.