diff --git a/src/lib/locale/locales.js b/src/lib/locale/locales.js index 99ee115718..d02b3cc2f2 100644 --- a/src/lib/locale/locales.js +++ b/src/lib/locale/locales.js @@ -78,6 +78,12 @@ export function getSetGlobalLocale (key, values) { // moment.duration._locale = moment._locale = data; globalLocale = data; } + else { + if ((typeof console !== 'undefined') && console.warn) { + //warn user if arguments are passed but the locale could not be set + console.warn('Locale ' + key + ' not found. Did you forget to load it?'); + } + } } return globalLocale._abbr;