mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 08:40:12 +01:00
Precompile datepicker i18n files for each language.
Not an optimal solution, because it uses files from our own repository instead of the bundle, but found no other solution for now.
This commit is contained in:
parent
bb2bcd7245
commit
5a6ee73d7d
11 changed files with 310 additions and 12 deletions
37
app/assets/javascripts-jquery-ui/datepicker-ru.js
Normal file
37
app/assets/javascripts-jquery-ui/datepicker-ru.js
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */
|
||||
/* Written by Andrew Stromnov (stromnov@gmail.com). */
|
||||
( function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define( [ "../widgets/datepicker" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery.datepicker );
|
||||
}
|
||||
}( function( datepicker ) {
|
||||
|
||||
datepicker.regional.ru = {
|
||||
closeText: "Закрыть",
|
||||
prevText: "<Пред",
|
||||
nextText: "След>",
|
||||
currentText: "Сегодня",
|
||||
monthNames: [ "Январь","Февраль","Март","Апрель","Май","Июнь",
|
||||
"Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь" ],
|
||||
monthNamesShort: [ "Янв","Фев","Мар","Апр","Май","Июн",
|
||||
"Июл","Авг","Сен","Окт","Ноя","Дек" ],
|
||||
dayNames: [ "воскресенье","понедельник","вторник","среда","четверг","пятница","суббота" ],
|
||||
dayNamesShort: [ "вск","пнд","втр","срд","чтв","птн","сбт" ],
|
||||
dayNamesMin: [ "Вс","Пн","Вт","Ср","Чт","Пт","Сб" ],
|
||||
weekHeader: "Нед",
|
||||
dateFormat: "dd.mm.yy",
|
||||
firstDay: 1,
|
||||
isRTL: false,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: "" };
|
||||
datepicker.setDefaults( datepicker.regional.ru );
|
||||
|
||||
return datepicker.regional.ru;
|
||||
|
||||
} ) );
|
||||
Loading…
Add table
Add a link
Reference in a new issue