Class DateInternationalizationHelper

java.lang.Object
io.jmix.flowui.component.DateInternationalizationHelper

public class DateInternationalizationHelper extends Object
Utility class for internationalizing date-related information such as month names, weekday names, short weekday names, and the first day of the week.
  • Constructor Details

    • DateInternationalizationHelper

      public DateInternationalizationHelper()
  • Method Details

    • getMonthNames

      public static List<String> getMonthNames(Locale locale)
      Returns a list of full month names for stand-alone use in the specified locale.
      Parameters:
      locale - the locale for which to retrieve month names
      Returns:
      a list of full month names
    • getWeekdayNames

      public static List<String> getWeekdayNames(Locale locale)
      Returns a list of weekday names in the specified locale.
      Parameters:
      locale - the locale for which to retrieve weekday names
      Returns:
      a list of weekday names
    • getShortWeekdayNames

      public static List<String> getShortWeekdayNames(Locale locale)
      Returns a list of short weekday names in the specified locale.
      Parameters:
      locale - the locale for which to retrieve short weekday names
      Returns:
      a list of short weekday names
    • getFirstDayOfWeek

      public static int getFirstDayOfWeek(Locale locale)
      Returns the first day of the week in the specified locale.
      Parameters:
      locale - the locale for which to retrieve the first day of the week
      Returns:
      the first day of the week as an integer (e.g., Calendar.SUNDAY)