import { getDictionaries } from "../dictionaries-entry/dist/esm/index.mjs";
import { getDictionary } from "./getDictionary.mjs";

//#region ../react-intlayer/dist/esm/@intlayer/core/dist/esm/interpreter/getIntlayer.mjs
const getIntlayer = (key, locale, plugins) => {
	const dictionaries = getDictionaries();
	const dictionary = dictionaries[key];
	if (!dictionary) throw new Error(`Dictionary ${key} not found`, dictionaries);
	return getDictionary(dictionary, locale, plugins);
};

//#endregion
export { getIntlayer };
//# sourceMappingURL=getIntlayer.mjs.map