UNPKG

@lingui/react

Version:

React bindings for Lingui with Trans components, providers, and compile-time macros

12 lines (10 loc) 583 B
export const Trans = function () {} export const Plural = function () {} export const Select = function () {} export const SelectOrdinal = function () {} export const useLingui = function () {} throw new Error( `The macro you imported from "@lingui/react/macro" is being executed outside the context of compilation. \n` + `This indicates that you don't configured correctly one of the "babel-plugin-macros" / "@lingui/swc-plugin" / "babel-plugin-lingui-macro" \n` + "Additionally, dynamic imports — e.g., `await import('@lingui/react/macro')` — are not supported.", )