/** * Represents a locale. */ declare class Locale { #private; private get lang(); private get country(); /** * Creates a Locale * * @param lang The language or the full lang-country string. * @param country The country. */ constructor(lang: string, country?: string); /** * Returns the current Locale. * @returns The current Locale. */ static getCurrent(): Locale; /** * Set current Locale to given parameter. * * @param locale The current Locale. */ static setCurrent(locale: Locale | string): void; /** * Returns the language code in 2 alphabetic characters format. * @returns The language code. */ getLanguage(): string; /** * Returns the country code. * @returns The country code. */ getCountry(): string; /** * Checks if country is present. * @returns true if country has non empty value. */ hasCountry(): boolean; /** * The locale string. * @returns e.g. de-DE or de if no country is present. */ getLocaleString(): string; /** * Creates a Intl.Locale instance. * @returns Intl.Locale */ getIntlLocale(): Intl.Locale; } export { Locale, Locale as default };