mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
i18n
This commit is contained in:
parent
c2287a1d59
commit
fe69a03e7c
26 changed files with 42 additions and 42 deletions
|
@ -58,13 +58,13 @@ export default definePlugin({
|
|||
replacement: {
|
||||
// Find the Edit User Profile button and insert our custom button.
|
||||
// A bit jank, but whatever
|
||||
match: /,(.{0,10}\.Button.{0,50},children:.{0,50}}\))]/,
|
||||
replace: ",$self.insertScanQrButton($1)]",
|
||||
match: /,(.{11}\.Button,.{58}\.USER_SETTINGS_EDIT_USER_PROFILE}\))/,
|
||||
replace: ",$self.insertScanQrButton($1)",
|
||||
},
|
||||
},
|
||||
// Insert a Scan QR Code MenuItem in the Swith Accounts popout
|
||||
{
|
||||
find: 'id:"manage-accounts"',
|
||||
find: "#{intl::SWITCH_ACCOUNTS_MANAGE_ACCOUNTS},",
|
||||
replacement: {
|
||||
match: /(id:"manage-accounts",.*?)}\)\)(,\i)/,
|
||||
replace: "$1}),$self.ScanQrMenuItem)$2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue