mdehoog / Semantic-UI-Calendar

Calendar module for Semantic UI
MIT License
805 stars 127 forks source link

A localization possibility? #79

Open VipSaran opened 7 years ago

VipSaran commented 7 years ago

Example module.set extension:

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)?

lubber-de commented 5 years ago

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