Is there a way to permanently change the locale of ngBootbox
? I tried adding an extra angular configuration:
var app = angular.module('some_module',
['highcharts-ng', 'ui.router', 'oc.lazyLoad',
'ui.select', 'daterangepicker', 'ngBootbox']);
app.config(['ngBootbox', function(ngBootbox) {
ngBootbox.setLocale ('zh_cn');
}]);
When I add the setLocale
line to each controller, it works perfectly. However, when I try adding it to the config part, I get an $injector:unpr
error and I'm not sure why.
Could this be related to the ui-router? Any suggestions or ideas?