fluent.Locale
The formatting data of the locale.
Date and time patterns contain {token} placeholders:
{d},{dd}- the day,{dd}is zero padded;{M},{MM}- the month number,{MM}is zero padded;{MMM},{MMMM}- the short and full month name;{y},{yy}- the full and two-digit year;{E},{EEEE}- the short and full weekday name;{H},{HH}- the 24-hour hour,{HH}is zero padded;{h},{hh}- the 12-hour hour,{hh}is zero padded;{mm},{ss}- the zero padded minute and second;{a}- the day period,amorpm.
Fields
| Name | Type | Description |
|---|---|---|
tag | string | The locale tag, e.g. "pt-BR". |
decimal | string | The decimal separator. |
group | string | The grouping separator. |
minus | string | The minus sign. |
minimum_grouping | integer | The minimum number of digits in the leading group, 2 means 1000 is not grouped. |
primary_group | integer | The size of the lowest group of the integer digits. |
secondary_group | integer | nil | The size of higher groups, primary_group if nil. |
percent | string | The percent pattern, # is the number, e.g. "# %". |
currency | string | The currency pattern, # is the number, ¤ is the currency, e.g. "¤#". |
cardinal | fluent.PluralRule | The cardinal plural rule, 1 file, 2 files. |
ordinal | fluent.PluralRule | The ordinal plural rule, 1st, 2nd. |
date | table<string, string> | The date patterns by styles, short is required, missing styles fall back to short. |
time | table<string, string> | The time patterns by styles, short and medium are required. |
datetime | string | The pattern joining the date and the time, {date} and {time} are the patterns. |
months | string[] | The full month names, used by {MMMM}. |
months_short | string[] | The short month names, used by {MMM}. |
weekdays | string[] | The full weekday names, Sunday first, used by {EEEE}. |
weekdays_short | string[] | The short weekday names, Sunday first, used by {E}. |
am | string | The before noon day period. |
pm | string | The after noon day period. |