Skip to content

Commit

Permalink
fix: i18n common module source find
Browse files Browse the repository at this point in the history
fixes mod not loading
  • Loading branch information
FedeIlLeone committed Oct 16, 2024
1 parent 26acb64 commit 78a98e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/modules/common/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export interface I18n extends EventEmitter {
_loadMessagesForLocale: (locale?: string) => Promise<void>;
}

const i18n = await waitForModule<I18n>(filters.bySource("registerLocale:"));
const i18n = await waitForModule<I18n>(filters.bySource(/getMessages:.{5,10}en-US/));

export const { Messages } = i18n;

Expand Down

0 comments on commit 78a98e8

Please sign in to comment.