Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

locale-country-codes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

locale-country-codes

Language codes & country codes

  • 1.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Locale Codes

Travis Downloads Node Version XO code style

Language codes & country codes

Installation

Module available through the npm registry. It can be installed using the npm or yarn command line tool.

# Yarn (Recomend)
yarn add locale-codes
# NPM 
npm install locale-codes --save

Examples

JavaScript

/* eslint-disable no-unused-expressions */
const locale = require('locale-codes')

locale.all // [language: '...']
locale.getByTag('pt-br').name // 'Portuguese'
locale.where('tag', 'pt-br').name // 'Portuguese'

TypeScript

/* eslint-disable @typescript-eslint/no-unused-expressions, @typescript-eslint/no-unused-vars */
import * as locale from 'locale-codes'
import {ILocale} from '.'

locale.all // [language: '...']
const localeSelect: ILocale = locale.all[0]

locale.getByTag('pt-br').name // 'Portuguese'
locale.where('tag', 'pt-br').name // 'Portuguese'

Documentation

API

locale.all

All languages

locale.where(key, text)

Get information

  • name - Language name (String)
  • name - Language name local (String || Null)
  • location - Location country (String || Null)
  • tag - LCID tag (String)
  • lcid - LCID id (Number)
  • iso639-2 - ISO 639-2 id (String)
  • iso639-1 - ISO 639-1 id (String || Null)
Shortcuts
  • getByName(text) = where('name', text)
  • getByNameLocal(text) = where('local', text)
  • getByLocation(text) = where('location', text)
  • getByTag(text) = where('tag', text)
  • getByLCID(lcid) = where('lcid', id)
  • getByISO6392(text) = where('iso639-2', text)
  • getByISO6391(text) = where('iso639-1', text)

Locale List

NameLocalLocationTagLCIDISO 639-2 IDISO 639-1 ID
AfarAfarafnullaa4096aaraa
AfarAfarafDjiboutiaa-DJ4096aaraa
AfarAfarafEritreaaa-ER4096aaraa
AfarAfarafEthiopiaaa-ET4096aaraa
AfrikaansAfrikaansnullaf54afraf
AfrikaansAfrikaansNamibiaaf-NA4096afraf
AfrikaansAfrikaansSouth Africaaf-ZA1078afraf
Aghemnullnullagq4096nullnull
AghemnullCameroonagq-CM4096nullnull
AkanAkannullak4096akaak
AkanAkanGhanaak-GH4096akaak
Albaniannullnullsq28alb/sqisq
AlbaniannullAlbaniasq-AL1052alb/sqisq
AlbaniannullNorth Macedoniasq-MK4096alb/sqisq
Alsatiannullnullgsw132gswnull
AlsatiannullFrancegsw-FR1156gswnull
AlsatiannullLiechtensteingsw-LI4096gswnull
AlsatiannullSwitzerlandgsw-CH4096gswnull
Amharicአማርኛnullam94amham
AmharicአማርኛEthiopiaam-ET1118amham
Arabicالعربيةnullar1araar
ArabicالعربيةAlgeriaar-DZ5121araar
ArabicالعربيةBahrainar-BH15361araar
ArabicالعربيةChadar-TD4096araar
ArabicالعربيةComorosar-KM4096araar
ArabicالعربيةDjiboutiar-DJ4096araar
ArabicالعربيةEgyptar-EG3073araar
ArabicالعربيةEritreaar-ER4096araar
ArabicالعربيةIraqar-IQ2049araar
ArabicالعربيةIsraelar-IL4096araar
ArabicالعربيةJordanar-JO11265araar
ArabicالعربيةKuwaitar-KW13313araar
ArabicالعربيةLebanonar-LB12289araar
ArabicالعربيةLibyaar-LY4097araar
ArabicالعربيةMauritaniaar-MR4096araar
ArabicالعربيةMoroccoar-MA6145araar
ArabicالعربيةOmanar-OM8193araar
ArabicالعربيةPalestinian Authorityar-PS4096araar
ArabicالعربيةQatarar-QA16385araar
ArabicالعربيةSaudi Arabiaar-SA1025araar
ArabicالعربيةSomaliaar-SO4096araar
ArabicالعربيةSouth Sudanar-SS4096araar
ArabicالعربيةSudanar-SD4096araar
ArabicالعربيةSyriaar-SY10241araar
ArabicالعربيةTunisiaar-TN7169araar
ArabicالعربيةU.A.E.ar-AE14337araar
ArabicالعربيةWorldar-0014096araar
ArabicالعربيةYemenar-YE9217araar
Armeniannullnullhy43arm/hyehy
ArmeniannullArmeniahy-AM1067arm/hyehy
Assameseঅসমীয়াnullas77asmas
Assameseঅসমীয়াIndiaas-IN1101asmas
Asturiannullnullast4096astnull
AsturiannullSpainast-ES4096astnull
Asunullnullasa4096nullnull
AsunullTanzaniaasa-TZ4096nullnull
Azerbaijani (Cyrillic)nullnullaz-Cyrl29740nullnull
Azerbaijani (Cyrillic)nullAzerbaijanaz-Cyrl-AZ2092nullnull
Azerbaijani (Latin)nullnullaz44nullnull
Azerbaijani (Latin)nullnullaz-Latn30764nullnull
Azerbaijani (Latin)nullAzerbaijanaz-Latn-AZ1068nullnull
Bafianullnullksf4096nullnull
BafianullCameroonksf-CM4096nullnull
Bamanankannullnullbm4096nullnull
Bamanankan (Latin)nullMalibm-Latn-ML4096nullnull
Banglanullnullbn69nullnull
BanglanullBangladeshbn-BD2117nullnull
BanglanullIndiabn-IN1093nullnull
Basaanullnullbas4096nullnull
BasaanullCameroonbas-CM4096nullnull
BashkirБашҡортсаnullba109bakba
BashkirБашҡортсаRussiaba-RU1133bakba
Basquenullnulleu45baq/euseu
BasquenullSpaineu-ES1069baq/euseu
BelarusianБеларускаяnullbe35belbe
BelarusianБеларускаяBelarusbe-BY1059belbe
Bembanullnullbem4096bemnull
BembanullZambiabem-ZM4096bemnull
Benanullnullbez4096nullnull
BenanullTanzaniabez-TZ4096nullnull
Blinnullnullbyn4096bynnull
BlinnullEritreabyn-ER4096bynnull
Bodonullnullbrx4096nullnull
BodonullIndiabrx-IN4096nullnull
Bosnian (Cyrillic)nullnullbs-Cyrl25626nullnull
Bosnian (Cyrillic)nullBosnia and Herzegovinabs-Cyrl-BA8218nullnull
Bosnian (Latin)nullnullbs-Latn26650nullnull
Bosnian (Latin)nullnullbs30746nullnull
Bosnian (Latin)nullBosnia and Herzegovinabs-Latn-BA5146nullnull
BretonBrezhonegnullbr126brebr
BretonBrezhonegFrancebr-FR1150brebr
BulgarianБългарскиnullbg2bulbg
BulgarianБългарскиBulgariabg-BG1026bulbg
Burmesenullnullmy85bur/myamy
BurmesenullMyanmarmy-MM1109bur/myamy
CatalanCatalànullca3catca
CatalanCatalàAndorraca-AD4096catca
CatalanCatalàFranceca-FR4096catca
CatalanCatalàItalyca-IT4096catca
CatalanCatalàSpainca-ES1027catca
Cebuanonullnullceb4096cebnull
Cebuan (Latin)nullnullceb-Latn4096nullnull
Cebuan (Latin)nullPhilippinesceb-Latn-PH4096nullnull
Central Atlas Tamazight (Latin)nullMoroccotzm-Latn-4096nullnull
Central Kurdishnullnullku146nullnull
Central Kurdishnullnullku-Arab31890nullnull
Central KurdishnullIraqku-Arab-IQ1170nullnull
Chakmanullnullccp4096nullnull
ChakmanullChakmaccp-Cakm4096nullnull
ChakmanullIndiaccp-Cakm-4096nullnull
ChechenНохчийнRussiacd-RU4096chece
Cherokeenullnullchr92chrnull
Cherokeenullnullchr-Cher31836chrnull
CherokeenullUnited Stateschr-Cher-US1116chrnull
Chiganullnullcgg4096nullnull
ChiganullUgandacgg-UG4096nullnull
Chinese (Simplified)nullnullzh-Hans4nullnull
Chinese (Simplified)nullnullzh30724nullnull
Chinese (Simplified)nullPeople's Republic of Chinazh-CN2052nullnull
Chinese (Simplified)nullSingaporezh-SG4100nullnull
Chinese (Traditional)nullnullzh-Hant31748nullnull
Chinese (Traditional)nullHong Kong S.A.R.zh-HK3076nullnull
Chinese (Traditional)nullMacao S.A.R.zh-MO5124nullnull
Chinese (Traditional)nullTaiwanzh-TW1028nullnull
Church SlavicСловѣ́ньскъRussiacu-RU4096chucu
Congo Swahilinullnullswc4096nullnull
Congo SwahilinullCongo DRCswc-CD4096nullnull
CornishKerneweknullkw4096corkw
CornishKernewekUnited Kingdomkw-GB4096corkw
CorsicanCorsunullco131cosco
CorsicanCorsuFranceco-FR1155cosco
CroatianHrvatskinullhr,26hrvhr
CroatianHrvatskiCroatiahr-HR1050hrvhr
Croatian (Latin)nullBosnia and Herzegovinahr-BA4122nullnull
Czechnullnullcs5cze/cescs
CzechnullCzech Republiccs-CZ1029cze/cescs
DanishDansknullda6danda
DanishDanskDenmarkda-DK1030danda
DanishDanskGreenlandda-GL4096danda
Darinullnullprs140nullnull
DarinullAfghanistanprs-AF1164nullnull
DivehiDivehinulldv101divdv
DivehiDivehiMaldivesdv-MV1125divdv
Dualanullnulldua4096duanull
DualanullCameroondua-CM4096duanull
Dutchnullnullnl19dut/nldnl
DutchnullArubanl-AW4096dut/nldnl
DutchnullBelgiumnl-BE2067dut/nldnl
DutchnullBonaire, Sint Eustatius and Sabanl-BQ4096dut/nldnl
DutchnullCuraçaonl-CW4096dut/nldnl
DutchnullNetherlandsnl-NL1043dut/nldnl
DutchnullSint Maartennl-SX4096dut/nldnl
DutchnullSurinamenl-SR4096dut/nldnl
Dzongkhaརྫོང་ཁnulldz4096dzodz
Dzongkhaརྫོང་ཁBhutandz-BT3153dzodz
Embunullnullebu4096nullnull
EmbunullKenyaebu-KE4096nullnull
EnglishEnglishnullen9engen
EnglishEnglishAmerican Samoaen-AS4096engen
EnglishEnglishAnguillaen-AI4096engen
EnglishEnglishAntigua and Barbudaen-AG4096engen
EnglishEnglishAustraliaen-AU3081engen
EnglishEnglishAustriaen-AT4096engen
EnglishEnglishBahamasen-BS4096engen
EnglishEnglishBarbadosen-BB4096engen
EnglishEnglishBelgiumen-BE4096engen
EnglishEnglishBelizeen-BZ10249engen
EnglishEnglishBermudaen-BM4096engen
EnglishEnglishBotswanaen-BW4096engen
EnglishEnglishBritish Indian Ocean Territoryen-IO4096engen
EnglishEnglishBritish Virgin Islandsen-VG4096engen
EnglishEnglishBurundien-BI4096engen
EnglishEnglishCameroonen-CM4096engen
EnglishEnglishCanadaen-CA4105engen
EnglishEnglishCaribbeanen-0299225engen
EnglishEnglishCayman Islandsen-KY4096engen
EnglishEnglishChristmas Islanden-CX4096engen
EnglishEnglishCocos [Keeling] Islandsen-CC4096engen
EnglishEnglishCook Islandsen-CK4096engen
EnglishEnglishCyprusen-CY4096engen
EnglishEnglishDenmarken-DK4096engen
EnglishEnglishDominicaen-DM4096engen
EnglishEnglishEritreaen-ER4096engen
EnglishEnglishEuropeen-1504096engen
EnglishEnglishFalkland Islandsen-FK4096engen
EnglishEnglishFinlanden-FI4096engen
EnglishEnglishFijien-FJ4096engen
EnglishEnglishGambiaen-GM4096engen
EnglishEnglishGermanyen-DE4096engen
EnglishEnglishGhanaen-GH4096engen
EnglishEnglishGibraltaren-GI4096engen
EnglishEnglishGrenadaen-GD4096engen
EnglishEnglishGuamen-GU4096engen
EnglishEnglishGuernseyen-GG4096engen
EnglishEnglishGuyanaen-GY4096engen
EnglishEnglishHong Kongen-HK15369engen
EnglishEnglishIndiaen-IN16393engen
EnglishEnglishIrelanden-IE6153engen
EnglishEnglishIsle of Manen-IM4096engen
EnglishEnglishIsraelen-IL4096engen
EnglishEnglishJamaicaen-JM8201engen
EnglishEnglishJerseyen-JE4096engen
EnglishEnglishKenyaen-KE4096engen
EnglishEnglishKiribatien-KI4096engen
EnglishEnglishLesothoen-LS4096engen
EnglishEnglishLiberiaen-LR4096engen
EnglishEnglishMacao SARen-MO4096engen
EnglishEnglishMadagascaren-MG4096engen
EnglishEnglishMalawien-MW4096engen
EnglishEnglishMalaysiaen-MY17417engen
EnglishEnglishMaltaen-MT4096engen
EnglishEnglishMarshall Islandsen-MH4096engen
EnglishEnglishMauritiusen-MU4096engen
EnglishEnglishMicronesiaen-FM4096engen
EnglishEnglishMontserraten-MS4096engen
EnglishEnglishNamibiaen-NA4096engen
EnglishEnglishNauruen-NR4096engen
EnglishEnglishNetherlandsen-NL4096engen
EnglishEnglishNew Zealanden-NZ5129engen
EnglishEnglishNigeriaen-NG4096engen
EnglishEnglishNiueen-NU4096engen
EnglishEnglishNorfolk Islanden-NF4096engen
EnglishEnglishNorthern Mariana Islandsen-MP4096engen
EnglishEnglishPakistanen-PK4096engen
EnglishEnglishPalauen-PW4096engen
EnglishEnglishPapua New Guineaen-PG4096engen
EnglishEnglishPitcairn Islandsen-PN4096engen
EnglishEnglishPuerto Ricoen-PR4096engen
EnglishEnglishRepublic of the Philippinesen-PH13321engen
EnglishEnglishRwandaen-RW4096engen
EnglishEnglishSaint Kitts and Nevisen-KN4096engen
EnglishEnglishSaint Luciaen-LC4096engen
EnglishEnglishSaint Vincent and the Grenadinesen-VC4096engen
EnglishEnglishSamoaen-WS4096engen
EnglishEnglishSeychellesen-SC4096engen
EnglishEnglishSierra Leoneen-SL4096engen
EnglishEnglishSingaporeen-SG18441engen
EnglishEnglishSint Maartenen-SX4096engen
EnglishEnglishSloveniaen-SI4096engen
EnglishEnglishSolomon Islandsen-SB4096engen
EnglishEnglishSouth Africaen-ZA7177engen
EnglishEnglishSouth Sudanen-SS4096engen
EnglishEnglishSt Helena, Ascension, Tristan da Cunhaen-SH4096engen
EnglishEnglishSudanen-SD4096engen
EnglishEnglishSwazilanden-SZ4096engen
EnglishEnglishSwedenen-SE4096engen
EnglishEnglishSwitzerlanden-CH4096engen
EnglishEnglishTanzaniaen-TZ4096engen
EnglishEnglishTokelauen-TK4096engen
EnglishEnglishTongaen-TO4096engen
EnglishEnglishTrinidad and Tobagoen-TT11273engen
EnglishEnglishTurks and Caicos Islandsen-TC4096engen
EnglishEnglishTuvaluen-TV4096engen
EnglishEnglishUgandaen-UG4096engen
EnglishEnglishUnited Arab Emiratesen-AE19465engen
EnglishEnglishUnited Kingdomen-GB2057engen
EnglishEnglishUnited Statesen-US1033engen
EnglishEnglishUS Minor Outlying Islandsen-UM4096engen
EnglishEnglishUS Virgin Islandsen-VI4096engen
EnglishEnglishVanuatuen-VU4096engen
EnglishEnglishWorlden-0014096engen
EnglishEnglishZambiaen-ZM4096engen
EnglishEnglishZimbabween-ZW12297engen
EsperantoEsperantonulleo4096epoeo
EsperantoEsperantoWorldeo-0014096epoeo
EstonianEestinullet37estet
EstonianEestiEstoniaet-EE1061estet
EweEʋegbenullee4096eweee
EweEʋegbeGhanaee-GH4096eweee
EweEʋegbeTogoee-TG4096eweee
Ewondonullnullewo4096ewonull
EwondonullCameroonewo-CM4096ewonull
FaroeseFøroysktnullfo56faofo
FaroeseFøroysktDenmarkfo-DK4096faofo
FaroeseFøroysktFaroe Islandsfo-FO1080faofo
Filipinonullnullfil100filnull
FilipinonullPhilippinesfil-PH1124filnull
FinnishSuominullfi11finfi
FinnishSuomiFinlandfi-FI1035finfi
Frenchnullnullfr12fre/frafr
FrenchnullAlgeriafr-DZ4096fre/frafr
FrenchnullBelgiumfr-BE2060fre/frafr
FrenchnullBeninfr-BJ4096fre/frafr
FrenchnullBurkina Fasofr-BF4096fre/frafr
FrenchnullBurundifr-BI4096fre/frafr
FrenchnullCameroonfr-CM11276fre/frafr
FrenchnullCanadafr-CA3084fre/frafr
FrenchnullCentral African Republicfr-CF4096fre/frafr
FrenchnullChadfr-TD4096fre/frafr
FrenchnullComorosfr-KM4096fre/frafr
FrenchnullCongofr-CG4096fre/frafr
FrenchnullCongo, DRCfr-CD9228fre/frafr
FrenchnullCôte d'Ivoirefr-CI12300fre/frafr
FrenchnullDjiboutifr-DJ4096fre/frafr
FrenchnullEquatorial Guineafr-GQ4096fre/frafr
FrenchnullFrancefr-FR1036fre/frafr
FrenchnullFrench Guianafr-GF4096fre/frafr
FrenchnullFrench Polynesiafr-PF4096fre/frafr
FrenchnullGabonfr-GA4096fre/frafr
FrenchnullGuadeloupefr-GP4096fre/frafr
FrenchnullGuineafr-GN4096fre/frafr
FrenchnullHaitifr-HT15372fre/frafr
FrenchnullLuxembourgfr-LU5132fre/frafr
FrenchnullMadagascarfr-MG4096fre/frafr
FrenchnullMalifr-ML13324fre/frafr
FrenchnullMartiniquefr-MQ4096fre/frafr
FrenchnullMauritaniafr-MR4096fre/frafr
FrenchnullMauritiusfr-MU4096fre/frafr
FrenchnullMayottefr-YT4096fre/frafr
FrenchnullMoroccofr-MA14348fre/frafr
FrenchnullNew Caledoniafr-NC4096fre/frafr
FrenchnullNigerfr-NE4096fre/frafr
FrenchnullPrincipality of Monacofr-MC6156fre/frafr
FrenchnullReunionfr-RE8204fre/frafr
FrenchnullRwandafr-RW4096fre/frafr
FrenchnullSaint Barthélemyfr-BL4096fre/frafr
FrenchnullSaint Martinfr-MF4096fre/frafr
FrenchnullSaint Pierre and Miquelonfr-PM4096fre/frafr
FrenchnullSenegalfr-SN10252fre/frafr
FrenchnullSeychellesfr-SC4096fre/frafr
FrenchnullSwitzerlandfr-CH4108fre/frafr
FrenchnullSyriafr-SY4096fre/frafr
FrenchnullTogofr-TG4096fre/frafr
FrenchnullTunisiafr-TN4096fre/frafr
FrenchnullVanuatufr-VU4096fre/frafr
FrenchnullWallis and Futunafr-WF4096fre/frafr
Frisiannullnullfy98nullnull
FrisiannullNetherlandsfy-NL1122nullnull
Friuliannullnullfur4096furnull
FriuliannullItalyfur-IT4096furnull
FulahFulfuldenullff103fulff
Fulah (Latin)nullnullff-Latn31847nullnull
Fulah (Latin)nullBurkina Fasoff-Latn-BF4096nullnull
FulahFulfuldeCameroonff-CM4096fulff
Fulah (Latin)nullCameroonff-Latn-CM4096nullnull
Fulah (Latin)nullGambiaff-Latn-GM4096nullnull
Fulah (Latin)nullGhanaff-Latn-GH4096nullnull
FulahFulfuldeGuineaff-GN4096fulff
Fulah (Latin)nullGuineaff-Latn-GN4096nullnull
Fulah (Latin)nullGuinea-Bissauff-Latn-GW4096nullnull
Fulah (Latin)nullLiberiaff-Latn-LR4096nullnull
FulahFulfuldeMauritaniaff-MR4096fulff
Fulah (Latin)nullMauritaniaff-Latn-MR4096nullnull
Fulah (Latin)nullNigerff-Latn-NE4096nullnull
FulahFulfuldeNigeriaff-NG4096fulff
Fulah (Latin)nullNigeriaff-Latn-NG4096nullnull
FulahFulfuldeSenegalff-Latn-SN2151fulff
Fulah (Latin)nullSierra Leoneff-Latn-SL4096nullnull
GalicianGalegonullgl86glggl
GalicianGalegoSpaingl-ES1110glggl
GandaLugandanulllg4096luglg
GandaLugandaUgandalg-UG4096luglg
Georgiannullnullka55geo/katka
GeorgiannullGeorgiaka-GE1079geo/katka
Germannullnullde7ger/deude
GermannullAustriade-AT3079ger/deude
GermannullBelgiumde-BE4096ger/deude
GermannullGermanyde-DE1031ger/deude
GermannullItalyde-IT4096ger/deude
GermannullLiechtensteinde-LI5127ger/deude
GermannullLuxembourgde-LU4103ger/deude
GermannullSwitzerlandde-CH2055ger/deude
Greeknullnullel8nullnull
GreeknullCyprusel-CY4096nullnull
GreeknullGreeceel-GR1032nullnull
GreenlandicKalaallisutnullkl111kalkl
GreenlandicKalaallisutGreenlandkl-GL1135kalkl
GuaraniAvañe'ẽnullgn116grngn
GuaraniAvañe'ẽParaguaygn-PY1140grngn
Gujaratiગુજરાતીnullgu71gujgu
GujaratiગુજરાતીIndiagu-IN1095gujgu
Gusiinullnullguz4096nullnull
GusiinullKenyaguz-KE4096nullnull
Hausa (Latin)nullnullha104nullnull
Hausa (Latin)nullnullha-Latn31848nullnull
Hausa (Latin)nullGhanaha-Latn-GH4096nullnull
Hausa (Latin)nullNigerha-Latn-NE4096nullnull
Hausa (Latin)nullNigeriaha-Latn-NG1128nullnull
Hawaiiannullnullhaw117hawnull
HawaiiannullUnited Stateshaw-US1141hawnull
Hebrewעבריתnullhe13hebhe
HebrewעבריתIsraelhe-IL1037hebhe
Hindiहिन्दीnullhi57hinhi
Hindiहिन्दीIndiahi-IN1081hinhi
HungarianMagyarnullhu14hunhu
HungarianMagyarHungaryhu-HU1038hunhu
Icelandicnullnullis15ice/islis
IcelandicnullIcelandis-IS1039ice/islis
IgboIgbonullig112iboig
IgboIgboNigeriaig-NG1136iboig
IndonesianBahasa Indonesianullid33indid
IndonesianBahasa IndonesiaIndonesiaid-ID1057indid
Interlinguanullnullia4096nullnull
InterlinguanullFranceia-FR4096nullnull
InterlinguanullWorldia-0014096nullnull
Inuktitut (Latin)nullnulliu93nullnull
Inuktitut (Latin)nullnulliu-Latn31837nullnull
Inuktitut (Latin)nullCanadaiu-Latn-CA2141nullnull
Inuktitut (Syllabics)nullnulliu-Cans30813nullnull
Inuktitut (Syllabics)nullCanadaiu-Cans-CA1117nullnull
IrishGaeilgenullga60glega
IrishGaeilgeIrelandga-IE2108glega
ItalianItalianonullit16itait
ItalianItalianoItalyit-IT1040itait
ItalianItalianoSan Marinoit-SM4096itait
ItalianItalianoSwitzerlandit-CH2064itait
ItalianItalianoVatican Cityit-VA4096itait
Japanese日本語nullja17jpnja
Japanese日本語Japanja-JP1041jpnja
JavaneseBasa Jawanulljv4096javjv
JavaneseBasa JawaLatinjv-Latn4096javjv
JavaneseBasa JawaLatin, Indonesiajv-Latn-ID4096javjv
Jola-Fonyinullnulldyo4096nullnull
Jola-FonyinullSenegaldyo-SN4096nullnull
Kabuverdianunullnullkea4096nullnull
KabuverdianunullCabo Verdekea-CV4096nullnull
Kabylenullnullkab4096kabnull
KabylenullAlgeriakab-DZ4096kabnull
Kakonullnullkkj4096nullnull
KakonullCameroonkkj-CM4096nullnull
Kalenjinnullnullkln4096nullnull
KalenjinnullKenyakln-KE4096nullnull
Kambanullnullkam4096kamnull
KambanullKenyakam-KE4096kamnull
Kannadaಕನ್ನಡnullkn75kankn
Kannadaಕನ್ನಡIndiakn-IN1099kankn
Kashmiriكشميريnullks96kasks
KashmiriكشميريPerso-Arabicks-Arab1120kasks
KashmiriكشميريPerso-Arabicks-Arab-IN4096kasks
KazakhҚазақшаnullkk63kazkk
KazakhҚазақшаKazakhstankk-KZ1087kazkk
Khmernullnullkm83nullnull
KhmernullCambodiakm-KH1107nullnull
K'ichenullnullquc134nullnull
K'ichenullGuatemalaquc-Latn-GT1158nullnull
KikuyuGĩkũyũnullki4096kikki
KikuyuGĩkũyũKenyaki-KE4096kikki
KinyarwandaKinyarwandanullrw135kinrw
KinyarwandaKinyarwandaRwandarw-RW1159kinrw
Kiswahilinullnullsw65nullnull
KiswahilinullKenyasw-KE1089nullnull
KiswahilinullTanzaniasw-TZ4096nullnull
KiswahilinullUgandasw-UG4096nullnull
Konkaninullnullkok87koknull
KonkaninullIndiakok-IN1111koknull
Korean한국어nullko18korko
Korean한국어Koreako-KR1042korko
Korean한국어North Koreako-KP4096korko
Koyra Chiininullnullkhq4096nullnull
Koyra ChiininullMalikhq-ML4096nullnull
Koyraboro Senninullnullses4096nullnull
Koyraboro SenninullMalises-ML4096nullnull
Kwasionullnullnmg4096nullnull
KwasionullCameroonnmg-CM4096nullnull
KyrgyzКыргызчаnullky64kirky
KyrgyzКыргызчаKyrgyzstanky-KG1088kirky
KurdishKurdîPerso-Arabic, Iranku-Arab-IR4096kurku
Lakotanullnulllkt4096nullnull
LakotanullUnited Stateslkt-US4096nullnull
Langinullnulllag4096nullnull
LanginullTanzanialag-TZ4096nullnull
Laoພາສາລາວnulllo84laolo
LaoພາສາລາວLao P.D.R.lo-LA1108laolo
LatvianLatviešunulllv38lavlv
LatvianLatviešuLatvialv-LV1062lavlv
LingalaLingálanullln4096linln
LingalaLingálaAngolaln-AO4096linln
LingalaLingálaCentral African Republicln-CF4096linln
LingalaLingálaCongoln-CG4096linln
LingalaLingálaCongo DRCln-CD4096linln
LithuanianLietuviųnulllt39litlt
LithuanianLietuviųLithuanialt-LT1063litlt
Low Germannullnullnds4096ndsnull
Low GermannullGermanynds-DE4096ndsnull
Low GermannullNetherlandsnds-NL4096ndsnull
Lower Sorbiannullnulldsb31790dsbnull
Lower SorbiannullGermanydsb-DE2094dsbnull
Luba-KatangaTshilubanulllu4096lublu
Luba-KatangaTshilubaCongo DRClu-CD4096lublu
Luonullnullluo4096nullnull
LuonullKenyaluo-KE4096nullnull
LuxembourgishLëtzebuergeschnulllb110ltzlb
LuxembourgishLëtzebuergeschLuxembourglb-LU1134ltzlb
Luyianullnullluy4096nullnull
LuyianullKenyaluy-KE4096nullnull
Macedoniannullnullmk47mac/mkdmk
MacedoniannullNorth Macedoniamk-MK1071mac/mkdmk
Machamenullnulljmc4096nullnull
MachamenullTanzaniajmc-TZ4096nullnull
Makhuwa-Meettonullnullmgh4096nullnull
Makhuwa-MeettonullMozambiquemgh-MZ4096nullnull
Makondenullnullkde4096nullnull
MakondenullTanzaniakde-TZ4096nullnull
MalagasyMalagasynullmg4096mlgmg
MalagasyMalagasyMadagascarmg-MG4096mlgmg
Malaynullnullms62may/msams
MalaynullBrunei Darussalamms-BN2110may/msams
MalaynullMalaysiams-MY1086may/msams
Malayalamമലയാളംnullml76malml
MalayalamമലയാളംIndiaml-IN1100malml
MalteseMaltinullmt58mltmt
MalteseMaltiMaltamt-MT1082mltmt
ManxGaelgnullgv4096glvgv
ManxGaelgIsle of Mangv-IM4096glvgv
Maorinullnullmi129mao/mrimi
MaorinullNew Zealandmi-NZ1153mao/mrimi
Mapudungunnullnullarn122arnnull
MapudungunnullChilearn-CL1146arnnull
Marathiमराठीnullmr78marmr
MarathiमराठीIndiamr-IN1102marmr
Masainullnullmas4096masnull
MasainullKenyamas-KE4096masnull
MasainullTanzaniamas-TZ4096masnull
MazanderaninullIranmzn-IR4096nullnull
Merunullnullmer4096nullnull
MerunullKenyamer-KE4096nullnull
Meta'nullnullmgo4096nullnull
Meta'nullCameroonmgo-CM4096nullnull
Mohawknullnullmoh124mohnull
MohawknullCanadamoh-CA1148mohnull
Mongolian (Cyrillic)nullnullmn80nullnull
Mongolian (Cyrillic)nullnullmn-Cyrl30800nullnull
Mongolian (Cyrillic)nullMongoliamn-MN1104nullnull
Mongolian (Traditional Mongolian)nullnullmn-Mong31824nullnull
Mongolian (Traditional Mongolian)nullPeople's Republic of Chinamn-Mong-CN2128nullnull
Mongolian (Traditional Mongolian)nullMongoliamn-Mong-MN3152nullnull
Morisyennullnullmfe4096nullnull
MorisyennullMauritiusmfe-MU4096nullnull
Mundangnullnullmua4096nullnull
MundangnullCameroonmua-CM4096nullnull
N'konullnullnqo4096nqonull
N'konullGuineanqo-GN4096nqonull
Namanullnullnaq4096nullnull
NamanullNamibianaq-NA4096nullnull
Nepaliनेपालीnullne97nepne
NepaliनेपालीIndiane-IN2145nepne
NepaliनेपालीNepalne-NP1121nepne
Ngiemboonnullnullnnh4096nullnull
NgiemboonnullCameroonnnh-CM4096nullnull
Ngombanullnulljgo4096nullnull
NgombanullCameroonjgo-CM4096nullnull
Northern LurinullIraqlrc-IQ4096nullnull
Northern LurinullIranlrc-IR4096nullnull
North NdebeleisiNdebelenullnd4096ndend
North NdebeleisiNdebeleZimbabwend-ZW4096ndend
Norwegian (Bokmal)nullnullno20nullnull
Norwegian (Bokmal)nullnullnb31764nullnull
Norwegian (Bokmal)nullNorwaynb-NO1044nullnull
Norwegian (Nynorsk)nullnullnn30740nullnull
Norwegian (Nynorsk)nullNorwaynn-NO2068nullnull
Norwegian BokmålNorsk (Bokmål)Svalbard and Jan Mayennb-SJ4096nobnb
Nuernullnullnus4096nullnull
NuernullSudannus-SD4096nullnull
NuernullSouth Sudannus-SS4096nullnull
Nyankolenullnullnyn4096nynnull
NyankolenullUgandanyn-UG4096nynnull
Occitannullnulloc130nullnull
OccitannullFranceoc-FR1154nullnull
Odianullnullor72nullnull
OdianullIndiaor-IN1096nullnull
OromoAfaan Oromoonullom114ormom
OromoAfaan OromooEthiopiaom-ET1138ormom
OromoAfaan OromooKenyaom-KE4096ormom
OssetianИрон æвзагnullos4096ossos
OssetianИрон æвзагCyrillic, Georgiaos-GE4096ossos
OssetianИрон æвзагCyrillic, Russiaos-RU4096ossos
Pashtoپښتوnullps99pusps
PashtoپښتوAfghanistanps-AF1123pusps
PashtoپښتوPakistanps-PK4096pusps
Persiannullnullfa41per/fasfa
PersiannullAfghanistanfa-AF4096per/fasfa
PersiannullIranfa-IR1065per/fasfa
PolishPolskinullpl21polpl
PolishPolskiPolandpl-PL1045polpl
PortuguesePortuguêsnullpt22porpt
PortuguesePortuguêsAngolapt-AO4096porpt
PortuguesePortuguêsBrazilpt-BR1046porpt
PortuguesePortuguêsCabo Verdept-CV4096porpt
PortuguesePortuguêsEquatorial Guineapt-GQ4096porpt
PortuguesePortuguêsGuinea-Bissaupt-GW4096porpt
PortuguesePortuguêsLuxembourgpt-LU4096porpt
PortuguesePortuguêsMacao SARpt-MO4096porpt
PortuguesePortuguêsMozambiquept-MZ4096porpt
PortuguesePortuguêsPortugalpt-PT2070porpt
PortuguesePortuguêsSão Tomé and Príncipept-ST4096porpt
PortuguesePortuguêsSwitzerlandpt-CH4096porpt
PortuguesePortuguêsTimor-Lestept-TL4096porpt
Prussiannullnullprg-0014096nullnull
Pseudo LanguagenullPseudo locale for east Asian/complex script localization testingqps-ploca1534nullnull
Pseudo LanguagenullPseudo locale used for localization testingqps-ploc1281nullnull
Pseudo LanguagenullPseudo locale used for localization testing of mirrored localesqps-plocm2559nullnull
Punjabiਪੰਜਾਬੀnullpa70panpa
Punjabiਪੰਜਾਬੀnullpa-Arab31814panpa
PunjabiਪੰਜਾਬੀIndiapa-IN1094panpa
PunjabiਪੰਜਾਬੀIslamic Republic of Pakistanpa-Arab-PK2118panpa
QuechuaRuna Siminullquz107quequ
QuechuaRuna SimiBoliviaquz-BO1131quequ
QuechuaRuna SimiEcuadorquz-EC2155quequ
QuechuaRuna SimiPeruquz-PE3179quequ
Ripuariannullnullksh4096nullnull
RipuariannullGermanyksh-DE4096nullnull
Romaniannullnullro24rum/ronro
RomaniannullMoldovaro-MD2072rum/ronro
RomaniannullRomaniaro-RO1048rum/ronro
RomanshRumantschnullrm23rohrm
RomanshRumantschSwitzerlandrm-CH1047rohrm
Rombonullnullrof4096nullnull
RombonullTanzaniarof-TZ4096nullnull
RundiKirundinullrn4096runrn
RundiKirundiBurundirn-BI4096runrn
RussianРусскийnullru25rusru
RussianРусскийBelarusru-BY4096rusru
RussianРусскийKazakhstanru-KZ4096rusru
RussianРусскийKyrgyzstanru-KG4096rusru
RussianРусскийMoldovaru-MD2073rusru
RussianРусскийRussiaru-RU1049rusru
RussianРусскийUkraineru-UA4096rusru
Rwanullnullrwk4096nullnull
RwanullTanzaniarwk-TZ4096nullnull
Sahonullnullssy4096nullnull
SahonullEritreassy-ER4096nullnull
Sakhanullnullsah133nullnull
SakhanullRussiasah-RU1157nullnull
Samburunullnullsaq4096nullnull
SamburunullKenyasaq-KE4096nullnull
Sami (Inari)nullnullsmn28731nullnull
Sami (Inari)nullFinlandsmn-FI9275nullnull
Sami (Lule)nullnullsmj31803nullnull
Sami (Lule)nullNorwaysmj-NO4155nullnull
Sami (Lule)nullSwedensmj-SE5179nullnull
Sami (Northern)nullnullse59nullnull
Sami (Northern)nullFinlandse-FI3131nullnull
Sami (Northern)nullNorwayse-NO1083nullnull
Sami (Northern)nullSwedense-SE2107nullnull
Sami (Skolt)nullnullsms29755nullnull
Sami (Skolt)nullFinlandsms-FI8251nullnull
Sami (Southern)nullnullsma30779nullnull
Sami (Southern)nullNorwaysma-NO6203nullnull
Sami (Southern)nullSwedensma-SE7227nullnull
SangoSängönullsg4096sagsg
SangoSängöCentral African Republicsg-CF4096sagsg
Sangunullnullsbp4096nullnull
SangunullTanzaniasbp-TZ4096nullnull
Sanskritसंस्कृतम्nullsa79sansa
Sanskritसंस्कृतम्Indiasa-IN1103sansa
Scottish GaelicGàidhlignullgd145glagd
Scottish GaelicGàidhligUnited Kingdomgd-GB1169glagd
Senanullnullseh4096nullnull
SenanullMozambiqueseh-MZ4096nullnull
Serbian (Cyrillic)nullnullsr-Cyrl27674nullnull
Serbian (Cyrillic)nullBosnia and Herzegovinasr-Cyrl-BA7194nullnull
Serbian (Cyrillic)nullMontenegrosr-Cyrl-ME12314nullnull
Serbian (Cyrillic)nullSerbiasr-Cyrl-RS10266nullnull
Serbian (Cyrillic)nullSerbia and Montenegro (Former)sr-Cyrl-CS3098nullnull
Serbian (Latin)nullnullsr-Latn28698nullnull
Serbian (Latin)nullnullsr31770nullnull
Serbian (Latin)nullBosnia and Herzegovinasr-Latn-BA6170nullnull
Serbian (Latin)nullMontenegrosr-Latn-ME11290nullnull
Serbian (Latin)nullSerbiasr-Latn-RS9242nullnull
Serbian (Latin)nullSerbia and Montenegro (Former)sr-Latn-CS2074nullnull
Sesotho sa Leboanullnullnso108nullnull
Sesotho sa LeboanullSouth Africanso-ZA1132nullnull
Setswananullnulltn50nullnull
SetswananullBotswanatn-BW2098nullnull
SetswananullSouth Africatn-ZA1074nullnull
Shambalanullnullksb4096nullnull
ShambalanullTanzaniaksb-TZ4096nullnull
ShonaChiShonanullsn4096snasn
ShonaChiShonaLatinsn-Latn4096snasn
ShonaChiShonaZimbabwesn-Latn-ZW4096snasn
Sindhiسنڌي‎nullsd89sndsd
Sindhiسنڌي‎nullsd-Arab31833sndsd
Sindhiسنڌي‎Islamic Republic of Pakistansd-Arab-PK2137sndsd
Sinhalaසිංහලnullsi91sinsi
SinhalaසිංහලSri Lankasi-LK1115sinsi
Slovaknullnullsk27slo/slksk
SlovaknullSlovakiask-SK1051slo/slksk
SlovenianSlovenščinanullsl36slvsl
SlovenianSlovenščinaSloveniasl-SI1060slvsl
Soganullnullxog4096nullnull
SoganullUgandaxog-UG4096nullnull
SomaliSoomaaliganullso119somso
SomaliSoomaaligaDjiboutiso-DJ4096somso
SomaliSoomaaligaEthiopiaso-ET4096somso
SomaliSoomaaligaKenyaso-KE4096somso
SomaliSoomaaligaSomaliaso-SO1143somso
Sothonullnullst48nullnull
SothonullSouth Africast-ZA1072nullnull
South NdebeleisiNdebelenullnr4096nblnr
South NdebeleisiNdebeleSouth Africanr-ZA4096nblnr
Southern SothonullLesothost-LS4096nullnull
SpanishEspañolnulles10spaes
SpanishEspañolArgentinaes-AR11274spaes
SpanishEspañolBelizees-BZ4096spaes
SpanishEspañolBolivarian Republic of Venezuelaes-VE8202spaes
SpanishEspañolBoliviaes-BO16394spaes
SpanishEspañolBraziles-BR4096spaes
SpanishEspañolChilees-CL13322spaes
SpanishEspañolColombiaes-CO9226spaes
SpanishEspañolCosta Ricaes-CR5130spaes
SpanishEspañolCubaes-CU23562spaes
SpanishEspañolDominican Republices-DO7178spaes
SpanishEspañolEcuadores-EC12298spaes
SpanishEspañolEl Salvadores-SV17418spaes
SpanishEspañolEquatorial Guineaes-GQ4096spaes
SpanishEspañolGuatemalaes-GT4106spaes
SpanishEspañolHondurases-HN18442spaes
SpanishEspañolLatin Americaes-41922538spaes
SpanishEspañolMexicoes-MX2058spaes
SpanishEspañolNicaraguaes-NI19466spaes
SpanishEspañolPanamaes-PA6154spaes
SpanishEspañolParaguayes-PY15370spaes
SpanishEspañolPerues-PE10250spaes
SpanishEspañolPhilippineses-PH4096spaes
SpanishEspañolPuerto Ricoes-PR20490spaes
SpanishEspañolSpaines-ES_tradnl1034spaes
SpanishEspañolSpaines-ES3082spaes
SpanishEspañolUnitedStateses-US21514spaes
SpanishEspañolUruguayes-UY14346spaes
Standard Moroccan Tamazightnullnullzgh4096zghnull
Standard Moroccan TamazightnullMoroccozgh-Tfng-MA4096zghnull
Standard Moroccan TamazightnullTifinaghzgh-Tfng4096zghnull
SwatiSiSwatinullss4096sswss
SwatiSiSwatiSouth Africass-ZA4096sswss
SwatiSiSwatiSwazilandss-SZ4096sswss
SwedishSvenskanullsv29swesv
SwedishSvenskaÅland Islandssv-AX4096swesv
SwedishSvenskaFinlandsv-FI2077swesv
SwedishSvenskaSwedensv-SE1053swesv
Syriacnullnullsyr90syrnull
SyriacnullSyriasyr-SY1114syrnull
Tachelhitnullnullshi4096nullnull
TachelhitnullTifinaghshi-Tfng4096nullnull
TachelhitnullTifinagh, Moroccoshi-Tfng-MA4096nullnull
Tachelhit (Latin)nullnullshi-Latn4096nullnull
Tachelhit (Latin)nullMoroccoshi-Latn-MA4096nullnull
Taitanullnulldav4096nullnull
TaitanullKenyadav-KE4096nullnull
Tajik (Cyrillic)nullnulltg40nullnull
Tajik (Cyrillic)nullnulltg-Cyrl31784nullnull
Tajik (Cyrillic)nullTajikistantg-Cyrl-TJ1064nullnull
Tamazight (Latin)nullnulltzm95nullnull
Tamazight (Latin)nullnulltzm-Latn31839nullnull
Tamazight (Latin)nullAlgeriatzm-Latn-DZ2143nullnull
Tamilதமிழ்nullta73tamta
Tamilதமிழ்Indiata-IN1097tamta
Tamilதமிழ்Malaysiata-MY4096tamta
Tamilதமிழ்Singaporeta-SG4096tamta
Tamilதமிழ்Sri Lankata-LK2121tamta
Tasawaqnullnulltwq4096nullnull
TasawaqnullNigertwq-NE4096nullnull
TatarТатарчаnulltt68tattt
TatarТатарчаRussiatt-RU1092tattt
Teluguతెలుగుnullte74telte
TeluguతెలుగుIndiate-IN1098telte
Tesonullnullteo4096nullnull
TesonullKenyateo-KE4096nullnull
TesonullUgandateo-UG4096nullnull
Thaiภาษาไทยnullth30thath
ThaiภาษาไทยThailandth-TH1054thath
Tibetannullnullbo81tib/bodbo
TibetannullIndiabo-IN4096tib/bodbo
TibetannullPeople's Republic of Chinabo-CN1105tib/bodbo
Tigrenullnulltig4096tignull
TigrenullEritreatig-ER4096tignull
Tigrinyaትግርኛnullti115tirti
TigrinyaትግርኛEritreati-ER2163tirti
TigrinyaትግርኛEthiopiati-ET1139tirti
Tongannullnullto4096nullnull
TongannullTongato-TO4096nullnull
TsongaXitsonganullts49tsots
TsongaXitsongaSouth Africats-ZA1073tsots
TurkishTürkçenulltr31turtr
TurkishTürkçeCyprustr-CY4096turtr
TurkishTürkçeTurkeytr-TR1055turtr
TurkmenTürkmençenulltk66tuktk
TurkmenTürkmençeTurkmenistantk-TM1090tuktk
UkrainianУкраїнськаnulluk34ukruk
UkrainianУкраїнськаUkraineuk-UA1058ukruk
Upper Sorbiannullnullhsb46hsbnull
Upper SorbiannullGermanyhsb-DE1070hsbnull
Urduاردوnullur32urdur
UrduاردوIndiaur-IN2080urdur
UrduاردوIslamic Republic of Pakistanur-PK1056urdur
Uyghurئۇيغۇرچهnullug128uigug
UyghurئۇيغۇرچهPeople's Republic of Chinaug-CN1152uigug
UzbekO‘zbekPerso-Arabicuz-Arab4096uzbuz
UzbekO‘zbekPerso-Arabic, Afghanistanuz-Arab-AF4096uzbuz
Uzbek (Cyrillic)nullnulluz-Cyrl30787nullnull
Uzbek (Cyrillic)nullUzbekistanuz-Cyrl-UZ2115nullnull
Uzbek (Latin)nullnulluz67nullnull
Uzbek (Latin)nullnulluz-Latn31811nullnull
Uzbek (Latin)nullUzbekistanuz-Latn-UZ1091nullnull
Vainullnullvai4096vainull
Vainullnullvai-Vaii4096vainull
VainullLiberiavai-Vaii-LR4096vainull
Vai (Latin)nullLiberiavai-Latn-LR4096nullnull
Vai (Latin)nullnullvai-Latn4096nullnull
ValencianCatalàSpainca-ES-2051catca
VendaTshivenḓanullve51venve

Tests

To run the test suite, first install the dependencies, then run test:

# Using Yarn
yarn test

Dependencies

iso639-codes: ISO639 Codes for JavaScript Author: Tiago Danin
License: MIT
Version: ^1.0.1
langs: ISO 639-1/2/3 Language codes with English and local names Author: adlawson
License: MIT
Version: ^2.0.0
windows-locale: Windows Language Code Identifier (LCID) for JavaScript Author: Tiago Danin
License: MIT
Version: ^1.1.0

Dev Dependencies

tsd: Check TypeScript type definitions Author: Sam Verschueren
License: MIT
Version: ^0.11.0
xo: JavaScript/TypeScript linter with great defaults Author: Sindre Sorhus
License: MIT
Version: ^0.30.0

Contributors

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.

License

MIT © Tiago Danin

Keywords

FAQs

Package last updated on 10 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc