🔀 Merge pull request #1192 from BhasherBEL/master
Add lang option for public holidays
This commit is contained in:
@@ -90,7 +90,7 @@ export default {
|
||||
const formatType = (ht) => capitalize(ht.replaceAll('_', ' '));
|
||||
holidays.forEach((holiday) => {
|
||||
results.push({
|
||||
name: holiday.name[0].text,
|
||||
name: holiday.name.filter(p => p.lang == this.options.lang)[0].text || holiday.name[0].text,
|
||||
date: makeDate(holiday.date),
|
||||
type: formatType(holiday.holidayType),
|
||||
observed: holiday.observedOn ? makeDate(holiday.observedOn) : '',
|
||||
|
||||
Reference in New Issue
Block a user