diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/l10n.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/l10n.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/helpers/l10n.js b/server/sonar-web/src/main/js/helpers/l10n.js index 7428c4b1c5b..f8eaa296131 100644 --- a/server/sonar-web/src/main/js/helpers/l10n.js +++ b/server/sonar-web/src/main/js/helpers/l10n.js @@ -19,7 +19,6 @@ */ import { stringify } from 'querystring'; import moment from 'moment'; -import _ from 'underscore'; let messages = {}; @@ -94,7 +93,7 @@ export function installGlobal () { } export function getLocalizedDashboardName (baseName) { - var l10nKey = 'dashboard.' + baseName + '.name'; - var l10nLabel = translate(l10nKey); + const l10nKey = 'dashboard.' + baseName + '.name'; + const l10nLabel = translate(l10nKey); return l10nLabel !== l10nKey ? l10nLabel : baseName; } |