unsplash / intlc

Compile ICU messages into code. Supports TypeScript and JSX. No runtime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ordinal plural fails to parse without at least one non-wildcard case

samhh opened this issue · comments

Failing example:

{n, selectordinal, =1 {} other {}}

I think it's a bug? Or were we being more strict here? I don't think we happen to use this type very much.

I think this might actually be intentional:

-- | This is simpler than its cardinal counterpart. Here we need only validate

In which case this should possibly succeed parsing but be linted against. Bonus points that the lint warning will give better output than "unknown parse error". 👀

This was fixed in #158 and #159.