mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
465adb9166
commit
79f0eeec49
1 changed files with 4 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue