Changing on the fly the angular $locale variable. Application to the angular-ui-bootstrap datepicker.