Socket
Book a DemoInstallSign in
Socket

bootstrap-languages

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

bootstrap-languages

Language labels and icons for Bootstrap 3

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
118
Maintainers
1
Weekly downloads
 
Created
Source

The Languages for Bootstrap 3 project provides a simple way to present language labels and names in a Bootstrap 3 project.

Head over to the documentation pages for some hint on how languages are presented, and how to use this library.

This project is distributed under the terms of the Apache Software License, Version 2.

Install from bower

bower install bootstrap-language

Flag Icons

Flag images have originally made by IconDrawer, then converted and assembled using ImageMagick and optimized using PNGCrush with the following script:

#!/bin/sh

SMALL=""
MEDIUM=""
LARGE=""
for COUNTRY in sa by bg cz dk de gr us es ee fi fr ie in hr hu id is it \
               il jp kr lt lv mk my mt nl no pl pt ro ru sk si al rs se \
               th tr ua vn cn "_United*Nations" ; do
     SMALL="${SMALL}  16/${COUNTRY}.png"
    MEDIUM="${MEDIUM} 24/${COUNTRY}.png"
     LARGE="${LARGE}  32/${COUNTRY}.png"
done

montage ${SMALL}  -tile 1x -crop 14x11+1+2 -background transparent -geometry '14x11>+0+0' -gravity NorthWest   small.png
montage ${MEDIUM} -tile 1x -crop 22x16+1+4 -background transparent -geometry '22x16>+0+0' -gravity NorthWest   medium.png
montage ${LARGE}  -tile 1x -crop 30x22+1+5 -background transparent -geometry '30x22>+0+0' -gravity NorthWest   large.png

montage  small.png medium.png large.png -mode Concatenate -background transparent -tile 1x4 sprite.png
pngcrush sprite.png languages.png

The mapping between language and country flag is as follows (in order):

LanguageCountryY-Offset
ISONameISONameSML
arArabicSASaudi Arabia04841188
beBelarusianBYBelarus115001210
bgBulgarianBGBulgaria225161232
csCzechCZCzech335321254
daDanishDKDenmark445481276
deGermanDEGermany555641298
elGreekGRGreece665801320
enEnglishUSUnited775961342
esSpanishESSpain886121364
etEstonianEEEstonia996281386
fiFinnishFIFinland1106441408
frFrenchFRFrance1216601430
gaIrishIEIreland1326761452
hiHindiINIndia1436921474
hrCroatianHRCroatia1547081496
huHungarianHUHungary1657241518
inIndonesianIDIndonesia1767401540
isIcelandicISIceland1877561562
itItalianITItaly1987721584
iwHebrewILIsrael2097881606
jaJapaneseJPJapan2208041628
koKoreanKRSouth2318201650
ltLithuanianLTLithuania2428361672
lvLatvianLVLatvia2538521694
mkMacedonianMKMacedonia2648681716
msMalayMYMalaysia2758841738
mtMalteseMTMalta2869001760
nlDutchNLNetherlands2979161782
noNorwegianNONorway3089321804
plPolishPLPoland3199481826
ptPortuguesePTPortugal3309641848
roRomanianRORomania3419801870
ruRussianRURussia3529961892
skSlovakSKSlovakia36310121914
slSlovenianSISlovenia37410281936
sqAlbanianALAlbania38510441958
srSerbianRSSerbia39610601980
svSwedishSESweden40710762002
thThaiTHThailand41810922024
trTurkishTRTurkey42911082046
ukUkrainianUAUkraine44011242068
viVietnameseVNVietnam45111402090
zhChineseCNChina46211562112

Keywords

bootstrap

FAQs

Package last updated on 01 Jan 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.