import { NodeType, formatNodeType } from "../../types/dist/esm/nodeType.mjs";

//#region ../@intlayer/cli/dist/esm/core/dist/esm/transpiler/translation/translation.mjs
/**
*
* Function intended to be used to build intlayer dictionaries.
*
* Get the content of a translation based on the locale.
*
* Usage:
*
* ```ts
* translation<string>({
*   "en": "Hello",
*   "fr": "Bonjour",
*   // ... any other available locale
* })
* ```
*
* Using TypeScript:
* - this function require each locale to be defined if defined in the project configuration.
* - If a locale is missing, it will make each existing locale optional and raise an error if the locale is not found.
*/
const translation = (content) => formatNodeType(NodeType.Translation, content);

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