mojoaxel / bootstrap-select-country

countrypicker is a jQuery plugin that utilizes Bootstrap's dropdown.js and bootstrap-select to provide country data and styling to standard select elements.
https://mojoaxel.github.io/bootstrap-select-country/index.html
MIT License
64 stars 36 forks source link

Add new locale ? #12

Closed mvnaz closed 4 years ago

mvnaz commented 4 years ago

How can I integrate another locale to plugin? So countries will be displayed with another language ?

mojoaxel commented 4 years ago

How can I integrate another locale to plugin? So countries will be displayed with another language ?

Sadly this is only possible by building your own version:

  1. Fork and clone the repository and npm install.
  2. Change the imported langs in src/bootstrap-select-country.js#L4-L6
  3. Test your new version with: npm start.
  4. Build a new bundle with npm build.