From f731e0939aaae831a3baeb7b11f2efca7218e11e Mon Sep 17 00:00:00 2001 From: Federico Di Leo <38290480+FedeIlLeone@users.noreply.github.com> Date: Thu, 17 Oct 2024 21:09:03 +0200 Subject: [PATCH] fix: i18n common module source find (#647) fixes mod not loading --- src/renderer/modules/common/i18n.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/modules/common/i18n.ts b/src/renderer/modules/common/i18n.ts index 1df7d8785..866040bad 100644 --- a/src/renderer/modules/common/i18n.ts +++ b/src/renderer/modules/common/i18n.ts @@ -225,7 +225,7 @@ export interface I18n extends EventEmitter { _loadMessagesForLocale: (locale?: string) => Promise; } -const i18n = await waitForModule(filters.bySource("registerLocale:")); +const i18n = await waitForModule(filters.bySource(/getMessages:.{5,10}en-US/)); export const { Messages } = i18n;