bynk.messages.invalid_locale_tag
Error A messages block's locale tag is not a valid LocaleTag (e.g. messages "xx" where xx doesn't match the tag pattern).
A messages block's tag must be a LocaleTag: a well-formed BCP-47 tag in its canonical casing, such as en, fr, pt-BR or zh-Hans-CN. The compiler checks it because the runtime hands the tag to Intl, which throws on a malformed one, and render must never fail. So pt-br is refused where pt-BR is accepted, and so is a bare word such as klingon. Rewrite the tag in canonical form.
Example
messages "pt-br" @reference { // ✗ a region is upper-case "cart.empty" => "A sua cesta está vazia."}
messages "pt-BR" @reference { // ✓ "cart.empty" => "A sua cesta está vazia."}In the Book
See also
- Every code in its category, Message bundles, on the diagnostic index.
bynk explain bynk.messages.invalid_locale_tagshows the same from the installed toolchain, without a network.