Skip to content

Commit

Permalink
Add en for numeral locale setting (#25948)
Browse files Browse the repository at this point in the history
  • Loading branch information
timroes authored Nov 22, 2018
1 parent 8f88091 commit bcb5ee0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core_plugins/kibana/ui_setting_defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,11 @@ import { IS_KIBANA_RELEASE } from '../../utils';
export function getUiSettingDefaults() {
const weekdays = moment.weekdays().slice();
const [defaultWeekday] = weekdays;
const numeralLanguageIds = numeralLanguages.map(function (numeralLanguage) {
// We add the `en` key manually here, since that's not a real numeral locale, but the
// default fallback in case the locale is not found.
const numeralLanguageIds = ['en', ...numeralLanguages.map(function (numeralLanguage) {
return numeralLanguage.id;
});
})];

// wrapped in provider so that a new instance is given to each app/test
return {
Expand Down

0 comments on commit bcb5ee0

Please sign in to comment.