Skip to content

Commit

Permalink
Add en for numeral locale setting (elastic#25948)
Browse files Browse the repository at this point in the history
  • Loading branch information
timroes committed Nov 22, 2018
1 parent 465adb9 commit 30c4db4
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 @@ -23,9 +23,11 @@ import numeralLanguages from '@elastic/numeral/languages';
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 30c4db4

Please sign in to comment.