Skip to content

Support quantify in icu::message2 #183

@grhoten

Description

@grhoten

The MessageFormat integration should include integration with CommonConceptFactory::quantify. Here are some possible examples of what that may look like.

en_US (US English)

Example Number Printed Result Spoken Result
{$number :quantify unit=|new message|} 101 101 new messages one hundred one new messages
{$number :quantify unit=|megaparsec|} 101 101 megaparsecs one hundred one megaparsecs
{$number :quantify unit=$unit} 101 101 kilometers one hundred one dogs

de (German)

Example Number Printed Result Spoken Result
{$number :quantify unit=|Film| case=dative} 1 1 Film einem Film
{$number :quantify unit=|Film| case=dative} 2 2 Filmen zwei Filmen

The German case would be invalid for English, and it should be marked as invalid in some way. I'm not sure how to support the formattedNumber argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions