'use client';


const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
const require_IntlayerProvider = require('./IntlayerProvider.cjs');
const require_getTranslation = require('../@intlayer/core/dist/esm/interpreter/getTranslation.cjs');
let react = require("react");

//#region ../react-intlayer/dist/esm/client/t.mjs
/**
* On the client side, this function returns the translation of the provided multilang content.
*
* If the locale is not provided, it will use the locale from the client context
*/
const t = (multilangContent, locale) => {
	const { locale: currentLocale } = (0, react.useContext)(require_IntlayerProvider.IntlayerClientContext);
	return require_getTranslation.getTranslation(multilangContent, locale ?? currentLocale);
};

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