protected function addSpoonLocale(&$json, $language)
{
// get months
$monthsLong = \SpoonLocale::getMonths($language, false);
$monthsShort = \SpoonLocale::getMonths($language, true);
// get days
$daysLong = \SpoonLocale::getWeekDays($language, false, 'sunday');
$daysShort = \SpoonLocale::getWeekDays($language, true, 'sunday');
// build labels
foreach ($monthsLong as $key => $value) {
$json['loc']['MonthLong' . \SpoonFilter::ucfirst($key)] = $value;
}
foreach ($monthsShort as $key => $value) {
$json['loc']['MonthShort' . \SpoonFilter::ucfirst($key)] = $value;
}
foreach ($daysLong as $key => $value) {
$json['loc']['DayLong' . \SpoonFilter::ucfirst($key)] = $value;
}
foreach ($daysShort as $key => $value) {
$json['loc']['DayShort' . \SpoonFilter::ucfirst($key)] = $value;
}
}