UNPKG

@intlayer/core

Version:

Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.

13 lines 430 B
import { fetchDistantDictionary } from "@intlayer/api"; import { getDictionary } from "./getDictionary.mjs"; const getIntlayerAsync = async (key, locale, plugins) => { const jsonDistantDictionary = await fetchDistantDictionary(key); if (jsonDistantDictionary) { return getDictionary(jsonDistantDictionary, locale, plugins); } return null; }; export { getIntlayerAsync }; //# sourceMappingURL=getIntlayerAsync.mjs.map