import { CachedIntl } from "../utils/intl.mjs";

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

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