Answer the question
In order to leave comments, you need to log in
Where can I get ready-made localization for Russian for react-native-calendars?
There is such a calendar:
https://github.com/wix/react-native-calendars
And it offers such localization using the French language as an example:
LocaleConfig.locales['fr'] = {
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin','Juil.','Août','Sept.','Oct.','Nov.','Déc.'],
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'],
today: 'Aujourd\'hui'
};
LocaleConfig.defaultLocale = 'fr';
Answer the question
In order to leave comments, you need to log in
LocaleConfig.locales['ru'] = {
monthNames: [
'Январь',
'Февраль',
'Март',
'Апрель',
'Май',
'Июнь',
'Июль',
'Август',
'Сентябрь',
'Октябрь',
'Ноябрь',
'Декабрь',
],
monthNamesShort: [
'Янв',
'Фев',
'Мар',
'Апр',
'Май',
'Июн',
'Июл',
'Авг',
'Сен',
'Окт',
'Ноя',
'Дек',
],
dayNames: [
'воскресенье',
'понедельник',
'вторник',
'среда',
'четверг',
'пятница',
'суббота',
],
dayNamesShort: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
today: 'Сегодня',
};
LocaleConfig.defaultLocale = 'ru';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question