Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
styleMap[TextStyle.FULL] = data;
data = {};
data[1] = monthsData.narrow[1];
data[2] = monthsData.narrow[2];
data[3] = monthsData.narrow[3];
data[4] = monthsData.narrow[4];
data[5] = monthsData.narrow[5];
data[6] = monthsData.narrow[6];
data[7] = monthsData.narrow[7];
data[8] = monthsData.narrow[8];
data[9] = monthsData.narrow[9];
data[10] = monthsData.narrow[10];
data[11] = monthsData.narrow[11];
data[12] = monthsData.narrow[12];
styleMap[TextStyle.NARROW] = data;
data = {};
data[1] = monthsData.abbreviated[1];
data[2] = monthsData.abbreviated[2];
data[3] = monthsData.abbreviated[3];
data[4] = monthsData.abbreviated[4];
data[5] = monthsData.abbreviated[5];
data[6] = monthsData.abbreviated[6];
data[7] = monthsData.abbreviated[7];
data[8] = monthsData.abbreviated[8];
data[9] = monthsData.abbreviated[9];
data[10] = monthsData.abbreviated[10];
data[11] = monthsData.abbreviated[11];
data[12] = monthsData.abbreviated[12];
styleMap[TextStyle.SHORT] = data;
return this._createLocaleStore(styleMap);
data[3] = daysData.wide.wed;
data[4] = daysData.wide.thu;
data[5] = daysData.wide.fri;
data[6] = daysData.wide.sat;
data[7] = daysData.wide.sun;
styleMap[TextStyle.FULL] = data;
data = {};
data[1] = daysData.narrow.mon;
data[2] = daysData.narrow.tue;
data[3] = daysData.narrow.wed;
data[4] = daysData.narrow.thu;
data[5] = daysData.narrow.fri;
data[6] = daysData.narrow.sat;
data[7] = daysData.narrow.sun;
styleMap[TextStyle.NARROW] = data;
data = {};
data[1] = daysData.abbreviated.mon;
data[2] = daysData.abbreviated.tue;
data[3] = daysData.abbreviated.wed;
data[4] = daysData.abbreviated.thu;
data[5] = daysData.abbreviated.fri;
data[6] = daysData.abbreviated.sat;
data[7] = daysData.abbreviated.sun;
styleMap[TextStyle.SHORT] = data;
return this._createLocaleStore(styleMap);
}
if (field === ChronoField.AMPM_OF_DAY) {
const dayPeriodsData = cldr.main('dates/calendars/gregorian/dayPeriods/format');
const styleMap = {};
let data = {};