@intlayer/core
Version:
Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.
18 lines • 388 B
JavaScript
import { getContent } from "./getContent/getContent.mjs";
const getDictionary = (dictionary, locale, plugins) => {
const props = {
dictionaryKey: dictionary.key,
dictionaryPath: dictionary.filePath,
keyPath: [],
plugins
};
return getContent(
dictionary.content,
props,
locale
);
};
export {
getDictionary
};
//# sourceMappingURL=getDictionary.mjs.map