1

I am using the Angular directive for Bootstrap datepicker: http://angular-ui.github.io/bootstrap/#/datepicker

I can not find any documentation saying i can set a default language on it. The date format is easy enough to change, but i can't set the language to norwegian so that the months, or days are displayed in norwegian instead of english. Does anyone know if this is even possible?

Thanks in advance.

-L

larschla
  • 377
  • 1
  • 6
  • 15
  • 3
    I think your question was already answered http://stackoverflow.com/questions/19671887/angularjs-angular-ui-bootstrap-changing-language-used-by-the-datepicker – Edminsson Jul 14 '14 at 06:14

2 Answers2

0

Hm, I'm not sure if it helps. But somewhere is pointed out, that you can use the standard localization of angular.

Please refer to this documentation.

Raphael Müller
  • 2,180
  • 2
  • 15
  • 20
  • It will help, datepicker uses the date filter which uses localization. Just including the Norwegian i18n should do the trick: https://github.com/angular/bower-angular-i18n/blob/master/angular-locale_no-no.js – Jorg Jul 14 '14 at 06:12
0

Thanks to Edminsson. I looked at that link earlier, but for some reason i didn't find it relevant to me. (Must have been before i had my morning coffee)

Here's the solution: AngularJS/Angular-ui-bootstrap Changing language used by the datePicker

Community
  • 1
  • 1
larschla
  • 377
  • 1
  • 6
  • 15