Internationalization (i18n)

Bootstrap-select provides support for multiple languages through translation files.

Usage

To use a translation, include the corresponding language file after bootstrap-select.js.

CDN Example

Here is an example of including the German (de_DE) translation file from a CDN:

<!-- Bootstrap-select JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/bootstrap-select.min.js"></script>

<!-- German translation -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.14.0-beta3/dist/js/i18n/defaults-de_DE.js"></script>

If you installed via npm, you can find the translation files in node_modules/bootstrap-select/dist/js/i18n/.

Supported Languages

Below is a list of currently available translations. The locale code corresponds to the filename (e.g., defaults-ar_AR.js).

  • am_ET - Amharic (Ethiopia)
  • ar_AR - Arabic (Arabic)
  • bg_BG - Bulgarian (Bulgaria)
  • cs_CZ - Czech (Czech Republic)
  • da_DK - Danish (Denmark)
  • de_DE - German (Germany)
  • en_US - English (United States)
  • es_CL - Spanish (Chile)
  • es_ES - Spanish (Spain)
  • et_EE - Estonian (Estonia)
  • eu - Basque
  • fa_IR - Farsi (Iran)
  • fi_FI - Finnish (Finland)
  • fr_FR - French (France)
  • hr_HR - Croatian (Croatia)
  • hu_HU - Hungarian (Hungary)
  • id_ID - Indonesian (Indonesia)
  • it_IT - Italian (Italy)
  • ja_JP - Japanese (Japan)
  • kh_KM - Khmer (Cambodia)
  • ko_KR - Korean (South Korea)
  • lt_LT - Lithuanian (Lithuania)
  • lv_LV - Latvian (Latvia)
  • nb_NO - Norwegian (Norway)
  • nl_NL - Dutch (Netherlands)
  • pl_PL - Polish (Poland)
  • pt_BR - Portuguese (Brazil)
  • pt_PT - Portuguese (Portugal)
  • ro_RO - Romanian (Romania)
  • ru_RU - Russian (Russian Federation)
  • sk_SK - Slovak (Slovak Republic)
  • sl_SI - Slovenian (Slovenia)
  • sr_SP - Serbian (Republic of Serbia)
  • sv_SE - Swedish (Sweden)
  • th_TH - Thai (Thailand)
  • tk_TK - Turkmen (Turkmenistan)
  • tr_TR - Turkish (Turkey)
  • ua_UA - Ukrainian (Ukraine)
  • vi_VN - Vietnamese (Vietnam)
  • zh_CN - Chinese (China)
  • zh_TW - Chinese (Taiwan)