Skip to main content
Version: 1.5.1

ListPatternType

Syntax

'and' | 'and-short' | 'or' | 'unit-long' |
'unit-narrow' | 'unit-short'

Example

const cldr = framework.get('en');
log(cldr.General.formatList(['one', 'two', 'three'], 'and'));
one, two, and three
const cldr = framework.get('en');
log(cldr.General.formatList(['12ft', '9in'], 'unit-short'));
12ft, 9in

References