Skip to main content Link Search Menu Expand Document (external link)

ParseOptions interface

Options for the parser

Signature:

export interface ParseOptions 

Properties

Property Modifiers Type Description
cardinal?   PluralCategory[] <p>(Optional) Array of valid plural categories for the current locale, used to validate plural keys.</p><p>If undefined, the full set of valid PluralCategory keys is used. To disable this check, pass in an empty array.</p>
ordinal?   PluralCategory[] <p>(Optional) Array of valid plural categories for the current locale, used to validate selectordinal keys.</p><p>If undefined, the full set of valid PluralCategory keys is used. To disable this check, pass in an empty array.</p>
strict?   boolean (Optional) By default, the parsing applies a few relaxations to the ICU MessageFormat spec. Setting strict: true will disable these relaxations.