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="" montage ${SMALL} -tile 1x -crop 14x11+1+2 -background transparent -geometry '14x11>+0+0' -gravity NorthWest small.pngmontage ${MEDIUM} -tile 1x -crop 22x16+1+4 -background transparent -geometry '22x16>+0+0' -gravity NorthWest medium.pngmontage ${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.pngpngcrush sprite.png languages.png
The mapping between language and country flag is as follows (in order):
Language | Country | Y-Offset | ||||
---|---|---|---|---|---|---|
ISO | Name | ISO | Name | S | M | L |
ar | Arabic | SA | Saudi Arabia | 0 | 484 | 1188 |
be | Belarusian | BY | Belarus | 11 | 500 | 1210 |
bg | Bulgarian | BG | Bulgaria | 22 | 516 | 1232 |
cs | Czech | CZ | Czech | 33 | 532 | 1254 |
da | Danish | DK | Denmark | 44 | 548 | 1276 |
de | German | DE | Germany | 55 | 564 | 1298 |
el | Greek | GR | Greece | 66 | 580 | 1320 |
en | English | US | United | 77 | 596 | 1342 |
es | Spanish | ES | Spain | 88 | 612 | 1364 |
et | Estonian | EE | Estonia | 99 | 628 | 1386 |
fi | Finnish | FI | Finland | 110 | 644 | 1408 |
fr | French | FR | France | 121 | 660 | 1430 |
ga | Irish | IE | Ireland | 132 | 676 | 1452 |
hi | Hindi | IN | India | 143 | 692 | 1474 |
hr | Croatian | HR | Croatia | 154 | 708 | 1496 |
hu | Hungarian | HU | Hungary | 165 | 724 | 1518 |
in | Indonesian | ID | Indonesia | 176 | 740 | 1540 |
is | Icelandic | IS | Iceland | 187 | 756 | 1562 |
it | Italian | IT | Italy | 198 | 772 | 1584 |
iw | Hebrew | IL | Israel | 209 | 788 | 1606 |
ja | Japanese | JP | Japan | 220 | 804 | 1628 |
ko | Korean | KR | South | 231 | 820 | 1650 |
lt | Lithuanian | LT | Lithuania | 242 | 836 | 1672 |
lv | Latvian | LV | Latvia | 253 | 852 | 1694 |
mk | Macedonian | MK | Macedonia | 264 | 868 | 1716 |
ms | Malay | MY | Malaysia | 275 | 884 | 1738 |
mt | Maltese | MT | Malta | 286 | 900 | 1760 |
nl | Dutch | NL | Netherlands | 297 | 916 | 1782 |
no | Norwegian | NO | Norway | 308 | 932 | 1804 |
pl | Polish | PL | Poland | 319 | 948 | 1826 |
pt | Portuguese | PT | Portugal | 330 | 964 | 1848 |
ro | Romanian | RO | Romania | 341 | 980 | 1870 |
ru | Russian | RU | Russia | 352 | 996 | 1892 |
sk | Slovak | SK | Slovakia | 363 | 1012 | 1914 |
sl | Slovenian | SI | Slovenia | 374 | 1028 | 1936 |
sq | Albanian | AL | Albania | 385 | 1044 | 1958 |
sr | Serbian | RS | Serbia | 396 | 1060 | 1980 |
sv | Swedish | SE | Sweden | 407 | 1076 | 2002 |
th | Thai | TH | Thailand | 418 | 1092 | 2024 |
tr | Turkish | TR | Turkey | 429 | 1108 | 2046 |
uk | Ukrainian | UA | Ukraine | 440 | 1124 | 2068 |
vi | Vietnamese | VN | Vietnam | 451 | 1140 | 2090 |
zh | Chinese | CN | China | 462 | 1156 | 2112 |