Open VipSaran opened 7 years ago
Example module.set extension:
module.set
text: function (key, value, refreshCalendar) { settings.text[key] = value; if (refreshCalendar) { module.create.calendar(); } }
Example usage:
$('#daypicker').calendar('set text', 'months', months_hr_HR, true);
Works but probably needs some sanity checks (at least for existence and lengths).
Could something like this be added to allow for easy on-the-fly localization (changes)?
The calendar has been merged into https://github.com/fomantic/Fomantic-UI/ You can specify translated strings at initialization See here https://fomantic-ui.com/modules/calendar.html#language
Example
module.set
extension:Example usage:
Works but probably needs some sanity checks (at least for existence and lengths).
Could something like this be added to allow for easy on-the-fly localization (changes)?