Skip to content

Commit

Permalink
Update example to match fix in #220
Browse files Browse the repository at this point in the history
  • Loading branch information
gpbl committed Oct 11, 2016
1 parent 8d868e1 commit e1462b3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/src/examples/LocalizedCustom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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()}`,
};

Expand Down

0 comments on commit e1462b3

Please sign in to comment.