Intl::Format::List
NAME
Intl::Format::List
AUTHOR
Matthew Stephen Stuckwisch
VERSION
0.6
Localized list formatting
To format lists using this module, use the provided sub format-list
:
format-list @list
There are three named options available:
:language
(may be abbreviated to:lang
)The language to use for formatting. Should be a valid BCP-47 language code. Defaults to whatever value
Intl::UserLanguage
'suser-language
returns (which defaults to 'en' if undetectable).:type
There are three types possible: and, or, unit. The and type indicates a list of collective values (e.g. 'apples, oranges, and peaches'). The or type indicates a list of alternate values (e.g. 'apples, oranges, or peaches'). The unit type is for listing multiple units together (e.g. '2lb 8oz') Defaults to and.
:length
There are three lengths possible: standard, short, narrow. Many languages do not distinguish standard and short, perhaps only omitting spaces if they do. Narrow is designed for minimal contexts, but may be ambiguous between the forms and should have additional context provided if used. Defaults to standard.