Skip to content

Commit

Permalink
fix(i18n): undefined is not a function fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PalmDevs committed Sep 14, 2024
1 parent f08d206 commit 96d7b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/i18n/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { logger } from "@core/logger";
import { FluxDispatcher } from "@metro/common";
import { findByNameLazy } from "@metro/wrappers";
import { findByPropsLazy } from "@metro/wrappers";
import type { PrimitiveType } from "intl-messageformat";

import langDefault from "./default.json";

const IntlMessageFormat = findByNameLazy("IntlMessageFormat") as typeof import("intl-messageformat");
const IntlMessageFormat = findByPropsLazy("IntlMessageFormat") as typeof import("intl-messageformat");

type I18nKey = keyof typeof langDefault;

Expand Down

0 comments on commit 96d7b17

Please sign in to comment.