mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-22 12:57:01 -04:00
Fix all plugins for new i18n lib (#2993)
This commit is contained in:
parent
5216bcca1e
commit
00f82e96bd
89 changed files with 351 additions and 238 deletions
|
@ -127,11 +127,11 @@ export default definePlugin({
|
|||
replace: "return [true"
|
||||
},
|
||||
{
|
||||
match: /(?<=COPY_IMAGE_MENU_ITEM,)action:/,
|
||||
match: /(?<=#{intl::COPY_IMAGE_MENU_ITEM}\),)action:/,
|
||||
replace: "action:()=>$self.copyImage(arguments[0]),oldAction:"
|
||||
},
|
||||
{
|
||||
match: /(?<=SAVE_IMAGE_MENU_ITEM,)action:/,
|
||||
match: /(?<=#{intl::SAVE_IMAGE_MENU_ITEM}\),)action:/,
|
||||
replace: "action:()=>$self.saveImage(arguments[0]),oldAction:"
|
||||
},
|
||||
]
|
||||
|
@ -202,14 +202,14 @@ export default definePlugin({
|
|||
}
|
||||
},
|
||||
{
|
||||
find: ".Messages.SEARCH_WITH_GOOGLE",
|
||||
find: "#{intl::SEARCH_WITH_GOOGLE}",
|
||||
replacement: {
|
||||
match: /\i\.isPlatformEmbedded/,
|
||||
replace: "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
find: ".Messages.COPY,hint:",
|
||||
find: "#{intl::COPY}),hint:",
|
||||
replacement: [
|
||||
{
|
||||
match: /\i\.isPlatformEmbedded/,
|
||||
|
@ -224,10 +224,10 @@ export default definePlugin({
|
|||
{
|
||||
find: '("interactionUsernameProfile',
|
||||
replacement:
|
||||
{
|
||||
match: /\i\.isPlatformEmbedded(?=.{0,50}\.tagName)/,
|
||||
replace: "true"
|
||||
},
|
||||
{
|
||||
match: /\i\.isPlatformEmbedded(?=.{0,50}\.tagName)/,
|
||||
replace: "true"
|
||||
},
|
||||
}
|
||||
],
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue