mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 07:25:10 +00:00
Use #intl
This commit is contained in:
parent
ecf3231b88
commit
42b0f46e77
1 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,6 @@ import { definePluginSettings } from "@api/Settings";
|
|||
import { classNameFactory } from "@api/Styles";
|
||||
import { Devs } from "@utils/constants";
|
||||
import { getIntlMessage } from "@utils/discord";
|
||||
import { runtimeHashMessageKey } from "@utils/intlHash";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { Button, Forms, TextInput } from "@webpack/common";
|
||||
|
||||
|
@ -77,7 +76,7 @@ export default definePlugin({
|
|||
authors: [Devs.Inbestigator],
|
||||
patches: [
|
||||
{
|
||||
find: "." + runtimeHashMessageKey("BAN_MULTIPLE_CONFIRM_TITLE"),
|
||||
find: "#{intl::BAN_MULTIPLE_CONFIRM_TITLE}",
|
||||
replacement: [{
|
||||
match: /\[(\{((?:name|value):\i\.intl\.string\(\i\.\i\.[A-Za-z0-9]+\),?){2}\},?){3}\]/,
|
||||
replace: "$self.getReasons()"
|
||||
|
|
Loading…
Add table
Reference in a new issue