@serenity-is/corelib / Locale
Interface: Locale
Interface for a locale, similar to .NET's CultureInfo
Hierarchy
-
↳
Locale
Table of contents
Properties
- amDesignator
- currencySymbol
- dateFormat
- dateOrder
- dateSeparator
- dateTimeFormat
- dayNames
- decimalDigits
- decimalSeparator
- firstDayOfWeek
- groupSeparator
- minimizedDayNames
- monthNames
- nanSymbol
- negativeSign
- percentSymbol
- pmDesignator
- positiveSign
- shortDayNames
- shortMonthNames
- stringCompare
- timeSeparator
- toUpper
Properties
amDesignator
• Optional
amDesignator: string
AM designator
Inherited from
Defined in
currencySymbol
• Optional
currencySymbol: string
Currency symbol
Inherited from
Defined in
dateFormat
• Optional
dateFormat: string
Default date format string
Inherited from
Defined in
dateOrder
• Optional
dateOrder: string
Date order, like dmy, or ymd
Inherited from
Defined in
dateSeparator
• Optional
dateSeparator: string
Date separator
Inherited from
Defined in
dateTimeFormat
• Optional
dateTimeFormat: string
Default date time format string
Inherited from
Defined in
dayNames
• Optional
dayNames: string
[]
Array of day names
Inherited from
Defined in
decimalDigits
• Optional
decimalDigits: number
Number of digits after decimal separator
Inherited from
Defined in
decimalSeparator
• decimalSeparator: string
Decimal separator
Inherited from
Defined in
firstDayOfWeek
• Optional
firstDayOfWeek: number
First day of week, 0 = Sunday, 1 = Monday
Inherited from
Defined in
groupSeparator
• Optional
groupSeparator: string
Group separator
Inherited from
Defined in
minimizedDayNames
• Optional
minimizedDayNames: string
[]
Array of two letter day names
Inherited from
Defined in
monthNames
• Optional
monthNames: string
[]
Array of month names
Inherited from
Defined in
nanSymbol
• Optional
nanSymbol: string
Zero symbol
Inherited from
Defined in
negativeSign
• Optional
negativeSign: string
Negative sign
Inherited from
Defined in
percentSymbol
• Optional
percentSymbol: string
Percentage symbol
Inherited from
Defined in
pmDesignator
• Optional
pmDesignator: string
PM designator
Inherited from
Defined in
positiveSign
• Optional
positiveSign: string
Positive sign
Inherited from
Defined in
shortDayNames
• Optional
shortDayNames: string
[]
Array of short day names
Inherited from
Defined in
shortMonthNames
• Optional
shortMonthNames: string
[]
Array of short month names
Inherited from
Defined in
stringCompare
• Optional
stringCompare: (a
: string
, b
: string
) => number
Locale string comparison function, similar to .NET's StringComparer
Type declaration
▸ (a
, b
): number
Parameters
Name | Type |
---|---|
a |
string |
b |
string |
Returns
number
Defined in
timeSeparator
• Optional
timeSeparator: string
Time separator
Inherited from
Defined in
toUpper
• Optional
toUpper: (a
: string
) => string
Locale string to upper case function
Type declaration
▸ (a
): string
Parameters
Name | Type |
---|---|
a |
string |
Returns
string