Lines Matching refs:locale

7210 function createUTC (input, format, locale, strict) {
7211 return createLocalOrUTC(input, format, locale, strict, true).utc();
7795 function expandFormat(format, locale) {
7799 return locale.longDateFormat(input) || input;
7953 addRegexToken('MMM', function (isStrict, locale) {
7954 return locale.monthsShortRegex(isStrict);
7956 addRegexToken('MMMM', function (isStrict, locale) {
7957 return locale.monthsRegex(isStrict);
8435 addRegexToken('dd', function (isStrict, locale) {
8436 return locale.weekdaysMinRegex(isStrict);
8438 addRegexToken('ddd', function (isStrict, locale) {
8439 return locale.weekdaysShortRegex(isStrict);
8441 addRegexToken('dddd', function (isStrict, locale) {
8442 return locale.weekdaysRegex(isStrict);
8461 function parseWeekday(input, locale) {
8470 input = locale.weekdaysParse(input);
8478 function parseIsoWeekday(input, locale) {
8480 return locale.weekdaysParse(input) % 7 || 7;
8803 function matchMeridiem (isStrict, locale) {
8804 return locale._meridiemParse;
8924 var i = 0, j, next, locale, split;
8932 locale = loadLocale(split.slice(0, j).join('-'));
8933 if (locale) {
8934 return locale;
9034 var locale, parentConfig = baseConfig;
9040 locale = new Locale(config);
9041 locale.parentLocale = locales[name];
9042 locales[name] = locale;
9061 var locale;
9073 locale = loadLocale(key);
9074 if (locale) {
9075 return locale;
9537 function meridiemFixWrap (locale, hour, meridiem) {
9544 if (locale.meridiemHour != null) {
9545 return locale.meridiemHour(hour, meridiem);
9546 } else if (locale.isPM != null) {
9548 isPm = locale.isPM(meridiem);
9687 function createLocalOrUTC (input, format, locale, strict, isUTC) {
9690 if (locale === true || locale === false) {
9691 strict = locale;
9692 locale = undefined;
9703 c._l = locale;
9711 function createLocal (input, format, locale, strict) {
9712 return createLocalOrUTC(input, format, locale, strict, false);
10383 return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');
10437 … return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix);
10451 … return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix);
10464 function locale (key) {
10484 return this.locale(key);
10602 locale: this._locale,
10745 addRegexToken('Do', function (isStrict, locale) {
10748 (locale._dayOfMonthOrdinalParse || locale._ordinalParse) :
10749 locale._dayOfMonthOrdinalParseLenient;
10931 proto.locale = locale;
11064 var locale = getLocale();
11066 return locale[field](utc, format);
11118 var locale = getLocale(),
11119 shift = localeSorted ? locale._week.dow : 0;
11366 function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {
11367 return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
11370 function relativeTime$1 (posNegDuration, withoutSuffix, locale) {
11393 a[4] = locale;
11429 var locale = this.localeData();
11430 var output = relativeTime$1(this, !withSuffix, locale);
11433 output = locale.pastFuture(+this, output);
11436 return locale.postformat(output);
11525 proto$2.locale = locale;
11565 hooks.locale = getSetGlobalLocale;