JavaScript Reusable Constants that are used in most apps.

Posted on



Installation

npm i constants-js
Enter fullscreen mode

Exit fullscreen mode



Usage

// Node
const { languages } = require("constants-js");

// ES6
import { languages } from "constants-js";

console.log(languages);
Enter fullscreen mode

Exit fullscreen mode



Languages

const languages = [
{ code: "ab", name: "Abkhazian" },
{ code: "aa", name: "Afar" },
{ code: "af", name: "Afrikaans" },
{ code: "ak", name: "Akan" },
{ code: "sq", name: "Albanian" },
{ code: "am", name: "Amharic" },
{ code: "ar", name: "Arabic" },
{ code: "an", name: "Aragonese" },
{ code: "hy", name: "Armenian" },
{ code: "as", name: "Assamese" },
{ code: "av", name: "Avaric" },
{ code: "ae", name: "Avestan" },
{ code: "ay", name: "Aymara" },
{ code: "az", name: "Azerbaijani" },
{ code: "bm", name: "Bambara" },
{ code: "ba", name: "Bashkir" },
{ code: "eu", name: "Basque" },
{ code: "be", name: "Belarusian" },
{ code: "bn", name: "Bengali" },
{ code: "bh", name: "Bihari languages" },
{ code: "bi", name: "Bislama" },
{ code: "bs", name: "Bosnian" },
{ code: "br", name: "Breton" },
{ code: "bg", name: "Bulgarian" },
{ code: "my", name: "Burmese" },
{ code: "ca", name: "Catalan, Valencian" },
{ code: "km", name: "Central Khmer" },
{ code: "ch", name: "Chamorro" },
{ code: "ce", name: "Chechen" },
{ code: "ny", name: "Chichewa, Chewa, Nyanja" },
{ code: "zh", name: "Chinese" },
{ code: "cu", name: "Church Slavonic, Old Bulgarian, Old Church Slavonic" },
{ code: "cv", name: "Chuvash" },
{ code: "kw", name: "Cornish" },
{ code: "co", name: "Corsican" },
{ code: "cr", name: "Cree" },
{ code: "hr", name: "Croatian" },
{ code: "cs", name: "Czech" },
{ code: "da", name: "Danish" },
{ code: "dv", name: "Divehi, Dhivehi, Maldivian" },
{ code: "nl", name: "Dutch, Flemish" },
{ code: "dz", name: "Dzongkha" },
{ code: "en", name: "English" },
{ code: "eo", name: "Esperanto" },
{ code: "et", name: "Estonian" },
{ code: "ee", name: "Ewe" },
{ code: "fo", name: "Faroese" },
{ code: "fj", name: "Fijian" },
{ code: "fi", name: "Finnish" },
{ code: "fr", name: "French" },
{ code: "ff", name: "Fulah" },
{ code: "gd", name: "Gaelic, Scottish Gaelic" },
{ code: "gl", name: "Galician" },
{ code: "lg", name: "Ganda" },
{ code: "ka", name: "Georgian" },
{ code: "de", name: "German" },
{ code: "ki", name: "Gikuyu, Kikuyu" },
{ code: "el", name: "Greek (Modern)" },
{ code: "kl", name: "Greenlandic, Kalaallisut" },
{ code: "gn", name: "Guarani" },
{ code: "gu", name: "Gujarati" },
{ code: "ht", name: "Haitian, Haitian Creole" },
{ code: "ha", name: "Hausa" },
{ code: "he", name: "Hebrew" },
{ code: "hz", name: "Herero" },
{ code: "hi", name: "Hindi" },
{ code: "ho", name: "Hiri Motu" },
{ code: "hu", name: "Hungarian" },
{ code: "is", name: "Icelandic" },
{ code: "io", name: "Ido" },
{ code: "ig", name: "Igbo" },
{ code: "id", name: "Indonesian" },
{
code: "ia",
name: "Interlingua (International Auxiliary Language Association)",
},
{ code: "ie", name: "Interlingue" },
{ code: "iu", name: "Inuktitut" },
{ code: "ik", name: "Inupiaq" },
{ code: "ga", name: "Irish" },
{ code: "it", name: "Italian" },
{ code: "ja", name: "Japanese" },
{ code: "jv", name: "Javanese" },
{ code: "kn", name: "Kannada" },
{ code: "kr", name: "Kanuri" },
{ code: "ks", name: "Kashmiri" },
{ code: "kk", name: "Kazakh" },
{ code: "rw", name: "Kinyarwanda"

Leave a Reply

Your email address will not be published.