Skip to content

Commit a18712f

Browse files
committed
- Locale defaults to the user's browser's locale.
1 parent e197bc3 commit a18712f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/angular-material-datetimepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
angular.module(moduleName, ['ngMaterial'])
6868
.provider('mdcDatetimePickerDefaultLocale', function () {
69-
this.locale = 'en';
69+
this.locale = window.navigator.userLanguage || window.navigator.language || 'en';
7070

7171
this.$get = function () {
7272
return this;

0 commit comments

Comments
 (0)