const require_intl = require('../utils/intl.cjs');

//#region ../@intlayer/cli/dist/esm/chokidar/dist/esm/core/dist/esm/localization/getLocaleName.mjs
const getLocaleName = (displayLocale, targetLocale = displayLocale) => {
	return new require_intl.CachedIntl.DisplayNames(targetLocale, { type: "language" }).of(displayLocale) ?? "Unknown locale";
};

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