UNPKG

lol-constants

Version:

League of Legends constants, functions, and types. Provides a plathera of functions to easily convert between ID, Name, and Key for champions, items, summoner spells, and runes.

61 lines (60 loc) 1.84 kB
export declare const Locales: { /** Czech (Czech Republic) */ readonly cs_CZ: "cs_CZ"; /** Greek (Greece) */ readonly el_GR: "el_GR"; /** Polish (Poland) */ readonly pl_PL: "pl_PL"; /** Romanian (Romania) */ readonly ro_RO: "ro_RO"; /** Hungarian (Hungary) */ readonly hu_HU: "hu_HU"; /** English (United Kingdom) */ readonly en_GB: "en_GB"; /** German (Germany) */ readonly de_DE: "de_DE"; /** Spanish (Spain) */ readonly es_ES: "es_ES"; /** Italian (Italy) */ readonly it_IT: "it_IT"; /** French (France) */ readonly fr_FR: "fr_FR"; /** Japanese (Japan) */ readonly ja_JP: "ja_JP"; /** Korean (Korea) */ readonly ko_KR: "ko_KR"; /** Spanish (Mexico) */ readonly es_MX: "es_MX"; /** Spanish (Argentina) */ readonly es_AR: "es_AR"; /** Portuguese (Brazil) */ readonly pt_BR: "pt_BR"; /** English (United States) */ readonly en_US: "en_US"; /** English (Australia) */ readonly en_AU: "en_AU"; /** Russian (Russia) */ readonly ru_RU: "ru_RU"; /** Turkish (Turkey) */ readonly tr_TR: "tr_TR"; /** Malay (Malaysia) */ readonly ms_MY: "ms_MY"; /** English (Republic of the Philippines) */ readonly en_PH: "en_PH"; /** English (Singapore) */ readonly en_SG: "en_SG"; /** Thai (Thailand) */ readonly th_TH: "th_TH"; /** Vietnamese (Viet Nam) */ readonly vi_VN: "vi_VN"; /** Indonesian (Indonesia) */ readonly id_ID: "id_ID"; /** Chinese (Malaysia) */ readonly zh_MY: "zh_MY"; /** Chinese (China) */ readonly zh_CN: "zh_CN"; /** Chinese (Taiwan) */ readonly zh_TW: "zh_TW"; }; export type Locale = typeof Locales[keyof typeof Locales]; export declare function isLocale(locale: string | null | undefined): locale is Locale;