function getDateTimeTranslations(localeData) {
  const dayNames = localeData.main(`dates/calendars/gregorian/days`);
  const monthNames = localeData.main(`dates/calendars/gregorian/months`);
  const erasNames = localeData.main(`dates/calendars/gregorian/eras`);
  const dayPeriods = getDayPeriodsAmPm(localeData);

  const dayPeriodsFormat = removeDuplicates([
    objectValues(dayPeriods.format.narrow),
    objectValues(dayPeriods.format.abbreviated),
    objectValues(dayPeriods.format.wide)
  ]);

  const dayPeriodsStandalone = removeDuplicates([
    objectValues(dayPeriods['stand-alone'].narrow),
    objectValues(dayPeriods['stand-alone'].abbreviated),
    objectValues(dayPeriods['stand-alone'].wide)
  ]);

  const daysFormat = removeDuplicates([
    objectValues(dayNames.format.narrow),
    objectValues(dayNames.format.abbreviated),
    objectValues(dayNames.format.wide),
    objectValues(dayNames.format.short)
  ]);

  const daysStandalone = removeDuplicates([
    objectValues(dayNames['stand-alone'].narrow),
    objectValues(dayNames['stand-alone'].abbreviated),
    objectValues(dayNames['stand-alone'].wide),
    objectValues(dayNames['stand-alone'].short)
  ]);

  const monthsFormat = removeDuplicates([
    objectValues(monthNames.format.narrow),
    objectValues(monthNames.format.abbreviated),
    objectValues(monthNames.format.wide)
  ]);

  const monthsStandalone = removeDuplicates([
    objectValues(monthNames['stand-alone'].narrow),
    objectValues(monthNames['stand-alone'].abbreviated),
    objectValues(monthNames['stand-alone'].wide)
  ]);

  const eras = removeDuplicates([
    [erasNames.eraNarrow['0'], erasNames.eraNarrow['1']],
    [erasNames.eraAbbr['0'], erasNames.eraAbbr['1']],
    [erasNames.eraNames['0'], erasNames.eraNames['1']]
  ]);

  const dateTimeTranslations = [
    ...removeDuplicates([dayPeriodsFormat, dayPeriodsStandalone]),
    ...removeDuplicates([daysFormat, daysStandalone]),
    ...removeDuplicates([monthsFormat, monthsStandalone]),
    eras
  ];

  return dateTimeTranslations;
}
function getDateTimeTranslations(localeData) {
  const dayNames = localeData.main(`dates/calendars/gregorian/days`);
  const monthNames = localeData.main(`dates/calendars/gregorian/months`);
  const erasNames = localeData.main(`dates/calendars/gregorian/eras`);
  const dayPeriods = getDayPeriodsAmPm(localeData);

  const dayPeriodsFormat = removeDuplicates([
    objectValues(dayPeriods.format.narrow),
    objectValues(dayPeriods.format.abbreviated),
    objectValues(dayPeriods.format.wide)
  ]);

  const dayPeriodsStandalone = removeDuplicates([
    objectValues(dayPeriods['stand-alone'].narrow),
    objectValues(dayPeriods['stand-alone'].abbreviated),
    objectValues(dayPeriods['stand-alone'].wide)
  ]);

  const daysFormat = removeDuplicates([
    objectValues(dayNames.format.narrow),
    objectValues(dayNames.format.abbreviated),
    objectValues(dayNames.format.wide),
    objectValues(dayNames.format.short)
  ]);

  const daysStandalone = removeDuplicates([
    objectValues(dayNames['stand-alone'].narrow),
    objectValues(dayNames['stand-alone'].abbreviated),
    objectValues(dayNames['stand-alone'].wide),
    objectValues(dayNames['stand-alone'].short)
  ]);

  const monthsFormat = removeDuplicates([
    objectValues(monthNames.format.narrow),
    objectValues(monthNames.format.abbreviated),
    objectValues(monthNames.format.wide)
  ]);

  const monthsStandalone = removeDuplicates([
    objectValues(monthNames['stand-alone'].narrow),
    objectValues(monthNames['stand-alone'].abbreviated),
    objectValues(monthNames['stand-alone'].wide)
  ]);

  const eras = removeDuplicates([
    [erasNames.eraNarrow['0'], erasNames.eraNarrow['1']],
    [erasNames.eraAbbr['0'], erasNames.eraAbbr['1']],
    [erasNames.eraNames['0'], erasNames.eraNames['1']]
  ]);

  const dateTimeTranslations = [
    ...removeDuplicates([dayPeriodsFormat, dayPeriodsStandalone]),
    ...removeDuplicates([daysFormat, daysStandalone]),
    ...removeDuplicates([monthsFormat, monthsStandalone]),
    eras
  ];

  return dateTimeTranslations;
}
function getDateTimeTranslations ( localeData ) { const dayNames = localeData . main ( ` ` ) ; const monthNames = localeData . main ( ` ` ) ; const erasNames = localeData . main ( ` ` ) ; const dayPeriods = getDayPeriodsAmPm ( localeData ) ; const dayPeriodsFormat = removeDuplicates ( [ objectValues ( dayPeriods . format . narrow ) , objectValues ( dayPeriods . format . abbreviated ) , objectValues ( dayPeriods . format . wide ) ] ) ; const dayPeriodsStandalone = removeDuplicates ( [ objectValues ( dayPeriods [ 'stand-alone' ] . narrow ) , objectValues ( dayPeriods [ 'stand-alone' ] . abbreviated ) , objectValues ( dayPeriods [ 'stand-alone' ] . wide ) ] ) ; const daysFormat = removeDuplicates ( [ objectValues ( dayNames . format . narrow ) , objectValues ( dayNames . format . abbreviated ) , objectValues ( dayNames . format . wide ) , objectValues ( dayNames . format . short ) ] ) ; const daysStandalone = removeDuplicates ( [ objectValues ( dayNames [ 'stand-alone' ] . narrow ) , objectValues ( dayNames [ 'stand-alone' ] . abbreviated ) , objectValues ( dayNames [ 'stand-alone' ] . wide ) , objectValues ( dayNames [ 'stand-alone' ] . short ) ] ) ; const monthsFormat = removeDuplicates ( [ objectValues ( monthNames . format . narrow ) , objectValues ( monthNames . format . abbreviated ) , objectValues ( monthNames . format . wide ) ] ) ; const monthsStandalone = removeDuplicates ( [ objectValues ( monthNames [ 'stand-alone' ] . narrow ) , objectValues ( monthNames [ 'stand-alone' ] . abbreviated ) , objectValues ( monthNames [ 'stand-alone' ] . wide ) ] ) ; const eras = removeDuplicates ( [ [ erasNames . eraNarrow [ '0' ] , erasNames . eraNarrow [ '1' ] ] , [ erasNames . eraAbbr [ '0' ] , erasNames . eraAbbr [ '1' ] ] , [ erasNames . eraNames [ '0' ] , erasNames . eraNames [ '1' ] ] ] ) ; const dateTimeTranslations = [ ... removeDuplicates ( [ dayPeriodsFormat , dayPeriodsStandalone ] ) , ... removeDuplicates ( [ daysFormat , daysStandalone ] ) , ... removeDuplicates ( [ monthsFormat , monthsStandalone ] ) , eras ] ; return dateTimeTranslations ; }
Returns date-related translations for a locale
@returns [ dayPeriodsFormat, dayPeriodsStandalone, daysFormat, dayStandalone, monthsFormat, monthsStandalone, eras ]
each value: [ narrow, abbreviated, wide, short? ]
Returns date - related translations for a locale
Get the translations for the given locale