Multiple Language Support - KidSysco/jquery-ui-month-picker GitHub Wiki
Internationalization, Localization with i18n and RTL support is included. All buttons, labels and other text can be changed out using different combinations of these features as needed.
$('.selector').MonthPicker({
i18n: {
year: "annรฉe",
prevYear: "l'annรฉe derniรจre",
nextYear: "l'annรฉe prochaine"
}
});
You can set the menu's run direction as right to left by using the IsRTL option.
IMPORTANT: This option expects that the html or body tag's dir='rtl'
.
$('.selector').MonthPicker({
IsRTL: true
});
Here is an example that translates the menu to Hebrew:
$(".selector").MonthPicker({
// Use the IsRTL option if you are translating the menu to a
// language that is written from right to left like Hebrew or Arabic.
IsRTL: true,
i18n: {
year: 'ืฉื ืช',
buttonText: 'ืคืชื ืชืคืจืื',
prevYear: "ืฉื ื ืงืืืืช",
nextYear: "ืฉื ื ืืืื",
next12Years: 'ืขืืืจ 12 ืฉื ืื ืงืืืื',
prev12Years: 'ืขืืืจ 12 ืฉื ืื ืืืืจื',
nextLabel: "ืืื",
prevLabel: "ืืงืืื",
jumpYears: "ืืืจ ืฉื ื",
backTo: "ืืืืจ ื",
months: ["ืื ื'", "ืคืืจ'", "ืืจืฅ", "ืืคืจ'", "ืืื", "ืืื ื", "ืืืื", "ืืื'", "ืกืคื'", "ืืืง'", "ื ืื'", "ืืฆื'"]
}
});