mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-16 19:57:52 +01:00
desktop: fix Could not resolve "@notesnook/intl/dist/locales/$en.json" error
This commit is contained in:
@@ -41,8 +41,8 @@ import { i18n } from "@lingui/core";
|
||||
|
||||
const locale =
|
||||
process.env.NODE_ENV === "development"
|
||||
? import("@notesnook/intl/dist/locales/$pseudo-LOCALE.json")
|
||||
: import("@notesnook/intl/dist/locales/$en.json");
|
||||
? import("@notesnook/intl/locales/$pseudo-LOCALE.json")
|
||||
: import("@notesnook/intl/locales/$en.json");
|
||||
locale.then(({ default: locale }) => {
|
||||
i18n.load({
|
||||
en: locale.messages as unknown as Messages
|
||||
|
||||
Reference in New Issue
Block a user