@serenity-is/corelib / Locale
Interface: Locale
Interface for a locale, similar to .NET's CultureInfo
Extends
Properties
amDesignator?
optionalamDesignator:string
AM designator
Inherited from
Defined in
currencySymbol?
optionalcurrencySymbol:string
Currency symbol
Inherited from
Defined in
dateFormat?
optionaldateFormat:string
Default date format string
Inherited from
Defined in
dateOrder?
optionaldateOrder:string
Date order, like dmy, or ymd
Inherited from
Defined in
dateSeparator?
optionaldateSeparator:string
Date separator
Inherited from
Defined in
dateTimeFormat?
optionaldateTimeFormat:string
Default date time format string
Inherited from
Defined in
dayNames?
optionaldayNames:string[]
Array of day names
Inherited from
Defined in
decimalDigits?
optionaldecimalDigits:number
Number of digits after decimal separator
Inherited from
Defined in
decimalSeparator
decimalSeparator:
string
Decimal separator
Inherited from
Defined in
firstDayOfWeek?
optionalfirstDayOfWeek:number
First day of week, 0 = Sunday, 1 = Monday
Inherited from
Defined in
groupSeparator?
optionalgroupSeparator:string
Group separator
Inherited from
Defined in
minimizedDayNames?
optionalminimizedDayNames:string[]
Array of two letter day names
Inherited from
Defined in
monthNames?
optionalmonthNames:string[]
Array of month names
Inherited from
Defined in
nanSymbol?
optionalnanSymbol:string
Zero symbol
Inherited from
Defined in
negativeSign?
optionalnegativeSign:string
Negative sign
Inherited from
Defined in
percentSymbol?
optionalpercentSymbol:string
Percentage symbol
Inherited from
Defined in
pmDesignator?
optionalpmDesignator:string
PM designator
Inherited from
Defined in
positiveSign?
optionalpositiveSign:string
Positive sign
Inherited from
Defined in
shortDayNames?
optionalshortDayNames:string[]
Array of short day names
Inherited from
Defined in
shortMonthNames?
optionalshortMonthNames:string[]
Array of short month names
Inherited from
Defined in
stringCompare()?
optionalstringCompare: (a,b) =>number
Locale string comparison function, similar to .NET's StringComparer
Parameters
a
string
b
string
Returns
number
Defined in
timeSeparator?
optionaltimeSeparator:string
Time separator
Inherited from
Defined in
toUpper()?
optionaltoUpper: (a) =>string
Locale string to upper case function
Parameters
a
string
Returns
string