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