Duolith docs

Errors E0200 to E0299

E0282 Message is not valid

Message The message for "key" is not valid: problem

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

Messages use the ICU message syntax: name for a value, {count, plural, =0 {...} one {# item} other {# items}} for plurals (cases zero, one, two, few, many, other or =N), {kind, select, a {...} other {...}} to choose by value, and {n, number}, {d, date, short} and {t, time} to format. Every plural and select needs an other case. Quote a literal brace as '{'.

How to fix it

Close every brace, give every plural and select an other {...} case, and use only the cases and types above.

In a terminal

duolith explain E0282

Mentioned in