mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added moment.js locales. Set locale from window.navigator at app init(). Use firstDayOfWeek on time picker
This commit is contained in:
@@ -14,6 +14,7 @@ import $ from 'jquery';
|
||||
import angular from 'angular';
|
||||
import config from 'app/core/config';
|
||||
import _ from 'lodash';
|
||||
import moment from 'moment';
|
||||
import {coreModule} from './core/core';
|
||||
|
||||
export class GrafanaApp {
|
||||
@@ -47,6 +48,8 @@ export class GrafanaApp {
|
||||
}
|
||||
$httpProvider.useApplyAsync(true);
|
||||
|
||||
moment.locale(window.navigator.userLanguage || window.navigator.language);
|
||||
|
||||
this.registerFunctions.controller = $controllerProvider.register;
|
||||
this.registerFunctions.directive = $compileProvider.directive;
|
||||
this.registerFunctions.factory = $provide.factory;
|
||||
|
||||
Reference in New Issue
Block a user