Permalink
Browse files

Update example to match fix in #220

  • Loading branch information...
gpbl committed Oct 11, 2016
1 parent 8d868e1 commit e1462b3818e0a56c24cbcdeb9dba52da8cd8ff72
Showing with 4 additions and 5 deletions.
  1. +4 −5 examples/src/examples/LocalizedCustom.js
@@ -2,13 +2,12 @@ import React from 'react';
import DayPicker from '../../../src';
const weekdaysLong = {
// Make sure you start with the right day of the week!
ru: ['Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота', 'Воскресенье'],
ru: ['Воскресенье', 'Понедельник', 'Вторник', 'Среда', 'Четверг', 'Пятница', 'Суббота'],
en: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
};
const weekdaysShort = {
// Idem
ru: ['По', 'Вт', 'Ср', 'Че', 'Пя', 'Су', 'Во'],
ru: ['Во', 'По', 'Вт', 'Ср', 'Че', 'Пя', 'Су'],
en: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
};
const months = {
@@ -25,8 +24,8 @@ const localeUtils = {
`${weekdaysLong[locale][d.getDay()]}, ${d.getDate()} ${months[locale][d.getMonth()]} ${d.getFullYear()}`,
formatWeekdayShort: (index, locale = 'en') => weekdaysShort[locale][index],
formatWeekdayLong: (index, locale = 'en') => weekdaysLong[locale][index],
getFirstDayOfWeek: (locale) => firstDayOfWeek[locale],
getMonths: (locale) => months[locale],
getFirstDayOfWeek: locale => firstDayOfWeek[locale],
getMonths: locale => months[locale],
formatMonthTitle: (d, locale) => `${months[locale][d.getMonth()]} ${d.getFullYear()}`,
};

0 comments on commit e1462b3

Please sign in to comment.