const require_index = require('../dictionaries-entry/dist/esm/index.cjs');
const require_getDictionary = require('./getDictionary.cjs');

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

//#endregion
exports.getIntlayer = getIntlayer;
//# sourceMappingURL=getIntlayer.cjs.map