Duolith docs

Errors E0200 to E0299

E0283 Catalogue not named after a locale

Message catalogue is not named after a locale

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

Why

Each file in locales/ is named after the locale it holds, as a language tag: en.json, ar.json, pt-BR.json or zh-Hant.json. The name is how the runtime matches the person's preferred languages.

How to fix it

Rename the file after its locale, such as locales/en.json.

In a terminal

duolith explain E0283

Mentioned in