mirror of
https://github.com/System-End/Vencord.git
synced 2026-04-19 23:22:48 +00:00
fix plugins using intl messages
This commit is contained in:
parent
1af7eb62f1
commit
ad491a370c
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ export const { match, P }: { match: typeof TSPattern["match"], P: typeof TSPatte
|
|||
|
||||
export const lodash: typeof import("lodash") = findByPropsLazy("debounce", "cloneDeep");
|
||||
|
||||
export const i18n = mapMangledModuleLazy('defaultLocale:"en-US"', {
|
||||
export const i18n = mapMangledModuleLazy(['defaultLocale:"en-US"', /initialLocale:\i/], {
|
||||
t: m => m?.[Symbol.toStringTag] === "IntlMessagesProxy",
|
||||
intl: m => m != null && Object.getPrototypeOf(m)?.withFormatters != null
|
||||
}, true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue