UNPKG

@donation-alerts/common

Version:

Common utils and types that are used in other @donation-alerts packages.

25 lines 947 B
/** * Supported locale codes by Donation Alerts API. */ export type DonationAlertsLocaleCode = 'be_BY' | 'de_DE' | 'en_US' | 'es_ES' | 'es_US' | 'et_EE' | 'fr_FR' | 'he_HE' | 'it_IT' | 'ka_GE' | 'kk_KZ' | 'ko_KR' | 'lv_LV' | 'pl_PL' | 'pt_BR' | 'ru_RU' | 'sv_SE' | 'tr_TR' | 'uk_UA' | 'zh_CN'; /** * Represents a locale supported by Donation Alerts API with its code and human-readable name. */ export interface DonationAlertsLocale { /** * The locale code following the pattern language_REGION (for example, `en_US` for English in the USA). */ code: DonationAlertsLocaleCode; /** * A human-readable name for the locale. */ name: string; } /** * A collection of supported locales by the Donation Alerts API. * * @remarks * Each locale is defined by a unique `code` and a corresponding human-readable `name`. */ export declare const locales: DonationAlertsLocale[]; //# sourceMappingURL=locales.d.ts.map