mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 07: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-he.js
Normal file
37
app/assets/javascripts-jquery-ui/datepicker-he.js
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/* Hebrew initialisation for the UI Datepicker extension. */
|
||||
/* Written by Amir Hardon (ahardon at gmail dot 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.he = {
|
||||
closeText: "סגור",
|
||||
prevText: "<הקודם",
|
||||
nextText: "הבא>",
|
||||
currentText: "היום",
|
||||
monthNames: [ "ינואר","פברואר","מרץ","אפריל","מאי","יוני",
|
||||
"יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר" ],
|
||||
monthNamesShort: [ "ינו","פבר","מרץ","אפר","מאי","יוני",
|
||||
"יולי","אוג","ספט","אוק","נוב","דצמ" ],
|
||||
dayNames: [ "ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת" ],
|
||||
dayNamesShort: [ "א'","ב'","ג'","ד'","ה'","ו'","שבת" ],
|
||||
dayNamesMin: [ "א'","ב'","ג'","ד'","ה'","ו'","שבת" ],
|
||||
weekHeader: "Wk",
|
||||
dateFormat: "dd/mm/yy",
|
||||
firstDay: 0,
|
||||
isRTL: true,
|
||||
showMonthAfterYear: false,
|
||||
yearSuffix: "" };
|
||||
datepicker.setDefaults( datepicker.regional.he );
|
||||
|
||||
return datepicker.regional.he;
|
||||
|
||||
} ) );
|
||||
Loading…
Add table
Add a link
Reference in a new issue