Fix Broken i18n

This commit is contained in:
thororen1234 2024-11-03 21:25:19 -05:00
parent 7dfa1ad5f1
commit bad5dac776
15 changed files with 22 additions and 22 deletions

View file

@ -59,13 +59,13 @@ export default definePlugin({
replacement: {
// Find the Edit User Profile button and insert our custom button.
// A bit jank, but whatever
match: /,(.{11}\.Button,.{58}\.USER_SETTINGS_EDIT_USER_PROFILE}\))/,
match: /,(.{0,20}\.Button,.{0,100}#{intl::USER_SETTINGS_EDIT_USER_PROFILE}\)}\))/,
replace: ",$self.insertScanQrButton($1)",
},
},
// Insert a Scan QR Code MenuItem in the Swith Accounts popout
{
find: "#{intl::SWITCH_ACCOUNTS_MANAGE_ACCOUNTS},",
find: 'id:"manage-accounts"',
replacement: {
match: /(id:"manage-accounts",.*?)}\)\)(,\i)/,
replace: "$1}),$self.ScanQrMenuItem)$2"