Duolith docs

Errors E0200 to E0299

E0281 Catalogue is not an object of messages

Message catalogue is not a JSON object of messages

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

Why

A catalogue in locales/ is one JSON object. Each value is a message (text) or an object of more keys, joined with dots: { "feed": { "title": "Feed" } } is the key feed.title. Numbers, lists and true or false are not messages.

How to fix it

Write the catalogue as { "key": "message" }, and write numbers in a message as text.

In a terminal

duolith explain E0281

Mentioned in