getPartTranslate static method

String getPartTranslate(
  1. HeaderOptions options,
  2. dynamic format,
  3. dynamic index
)

Implementation

static String getPartTranslate(HeaderOptions options, format, index) {
  switch (format) {
    case PartFormat.MONTH:
      return _getMonthName(options.monthStringType, index);
    default:
      return '';
  }
}