blur-admin icon indicating copy to clipboard operation
blur-admin copied to clipboard

datepicker how to change language

Open ttllpp opened this issue 7 years ago • 3 comments

datepicker plus how to change language in blur-admin

ttllpp avatar Jun 14 '17 08:06 ttllpp

  1. Install angular-i18n: bower install angular-i18n
  2. Add into options your localeID. For example:
<uib-datepicker datepicker-options="dpOptions"></uib-datepicker>
...
$scope.dpOptions = {
        showWeeks: false,
        language: 'ru_RU'
    };
  1. Enjoy.

redflasher avatar Aug 21 '17 19:08 redflasher

Try installing or downloading the angular_locale for your country or language. In my case, I had download the angular_locale_es-gt.js and place it into app -> pages -> utils (folder)

cesarfmacario avatar Aug 23 '17 06:08 cesarfmacario

I found easier way (other solutions didn't work). Use bower install --save angular-i18n and after that, open your main bower.json file and paste those lines inside overrides key (in my file below font-awesome ): "angular-i18n": { "main": "angular-locale_pl.js" } Remember to change language in file name (for me it was polish language so I've used angular-locale_pl.js)

dominik-mrugalski avatar Oct 17 '18 12:10 dominik-mrugalski