fix plugins using intl messages

This commit is contained in:
Vendicated 2026-01-06 22:56:00 +01:00
parent 1af7eb62f1
commit ad491a370c
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18

View file

@ -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);