UNPKG

@intlayer/core

Version:

Includes core Intlayer functions like translation, dictionary, and utility functions shared across multiple packages.

11 lines (9 loc) 476 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const require_utils_intl = require('../utils/intl.cjs'); //#region src/localization/getLocaleName.ts const getLocaleName = (displayLocale, targetLocale = displayLocale) => { return new require_utils_intl.CachedIntl.DisplayNames(targetLocale, { type: "language" }).of(displayLocale) ?? "Unknown locale"; }; //#endregion exports.getLocaleName = getLocaleName; //# sourceMappingURL=getLocaleName.cjs.map