You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the pikaday in an app that can be in English or Arabic, is the user who choose it and it can be changed anytime.
I would like to know how can I swipe from one language to another when the user change a language?
It is possible to have something like this?
selectedLanguage = function (IsRTL){
var months;
if(IsRTL){
months = {
previousMonth : 'Previous Month',
nextMonth : 'Next Month',
months :['يناير','فبراير','مارس','إبريل','مايو','يونيو','يوليو','أغسطس','سبتمبر','أكتوبر','نوفمبر','ديسمبر'],
weekdays : ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
weekdaysShort : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
midnight : 'Midnight',
noon : 'Noon'
};
}
else {
months = {
previousMonth : 'Previous Month',
nextMonth : 'Next Month',
months : ['January','February','March','April','May','June','July','August','September','October','November','December'],
weekdays : ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
weekdaysShort : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
midnight : 'Midnight',
noon : 'Noon'
};
}
return months;
}
The text was updated successfully, but these errors were encountered:
Hi guys,
I'm using the pikaday in an app that can be in English or Arabic, is the user who choose it and it can be changed anytime.
I would like to know how can I swipe from one language to another when the user change a language?
It is possible to have something like this?
selectedLanguage = function (IsRTL){
var months;
if(IsRTL){
months = {
previousMonth : 'Previous Month',
nextMonth : 'Next Month',
months :['يناير','فبراير','مارس','إبريل','مايو','يونيو','يوليو','أغسطس','سبتمبر','أكتوبر','نوفمبر','ديسمبر'],
weekdays : ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
weekdaysShort : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
midnight : 'Midnight',
noon : 'Noon'
};
}
else {
months = {
previousMonth : 'Previous Month',
nextMonth : 'Next Month',
months : ['January','February','March','April','May','June','July','August','September','October','November','December'],
weekdays : ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],
weekdaysShort : ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],
midnight : 'Midnight',
noon : 'Noon'
};
}
return months;
}
The text was updated successfully, but these errors were encountered: