letmonthYearString=i18nc("%1 is month name, %2 is year","<b>%1</b> %2",locale.standaloneMonthName(root.date.getMonth()),String(root.date.getFullYear()));
letendRangeMonthYearString=i18nc("%1 is month name, %2 is year","<b>%1</b> %2",locale.standaloneMonthName(root.lastDate.getMonth()),String(root.lastDate.getFullYear()));
constlocale=Qt.locale();
constmonthYearString=i18nc("%1 is month name, %2 is year","<b>%1</b> %2",locale.standaloneMonthName(root.date.getMonth()),String(root.date.getFullYear()));
if(!root.range){
returnmonthYearString;
}else{
constendRangeMonthYearString=i18nc("%1 is month name, %2 is year","<b>%1</b> %2",locale.standaloneMonthName(root.lastDate.getMonth()),String(root.lastDate.getFullYear()));
returni18nc("%1 is month of range start, %2 is month + year of range end","<b>%1</b> - %2",locale.standaloneMonthName(root.date.getMonth()),endRangeMonthYearString);