NepaliDateLocale

data class NepaliDateLocale(val language: NepaliDatePickerLang = NepaliDatePickerLang.ENGLISH, val dateFormat: NepaliDateFormatStyle = NepaliDateFormatStyle.LONG, val weekDayName: NameFormat = NameFormat.FULL, val monthName: NameFormat = NameFormat.FULL, val digitScript: DigitScript? = null)(source)

Represents locale settings for Nepali date display and formatting.

This data class holds information about the language, date format, and name formats for weekdays and months used when displaying and formatting Nepali dates.

Constructors

Link copied to clipboard
constructor(language: NepaliDatePickerLang = NepaliDatePickerLang.ENGLISH, dateFormat: NepaliDateFormatStyle = NepaliDateFormatStyle.LONG, weekDayName: NameFormat = NameFormat.FULL, monthName: NameFormat = NameFormat.FULL, digitScript: DigitScript? = null)

Properties

Link copied to clipboard

The style of date formatting to use. Defaults to LONG.

Link copied to clipboard

Explicit numeral script for digits. null (the default) means "follow the language" - see defaultDigitScript. Set this to render Nepali month names with Latin digits, or English month names with Devanagari digits.

Link copied to clipboard

The language to use for date-related text (English or Nepali). Defaults to English.

Link copied to clipboard

The format for displaying month names (FULL, MEDIUM, or SHORT). Defaults to FULL.

Link copied to clipboard

Concrete digit script to render numerals with. Returns digitScript when the consumer set it explicitly, otherwise falls back to language's default.

Link copied to clipboard

The format for displaying weekday names (FULL, MEDIUM, or SHORT). Defaults to FULL.