UNPKG

generaltranslation

Version:

A language toolkit for AI developers

33 lines (32 loc) 1.13 kB
import { CustomMapping } from './customLocaleMapping'; export type LocaleProperties = { code: string; name: string; nativeName: string; languageCode: string; languageName: string; nativeLanguageName: string; nameWithRegionCode: string; nativeNameWithRegionCode: string; regionCode: string; regionName: string; nativeRegionName: string; scriptCode: string; scriptName: string; nativeScriptName: string; maximizedCode: string; maximizedName: string; nativeMaximizedName: string; minimizedCode: string; minimizedName: string; nativeMinimizedName: string; emoji: string; }; /** * Creates a set of custom locale properties from a custom mapping. * * @param lArray - An array of locale codes to search for in the custom mapping. * @param customMapping - Optional custom mapping of locale codes to names. * @returns A partial set of locale properties, or undefined if no custom mapping is provided. */ export declare function createCustomLocaleProperties(lArray: string[], customMapping?: CustomMapping): Partial<LocaleProperties> | undefined;