Skip to content
Playground(another site)

bynk.messages.missing_locale_dependency

Error A commons declaring messages doesn't uses bynk.locale and/or uses bynk.locale.types, which its generated render and the types its signature names need.

A commons that declares messages gets a generated render, whose signature names LocaleTag and Message and which falls back through bynk.locale. So that commons must uses both locale units, as the example shows; add whichever is missing. The context that uses the bundle should not uses bynk.locale itself: both export a render, which is bynk.uses.name_conflict.

Example

commons shop.messages
messages "en" @reference { … } // ✗ no `uses` of bynk.locale
uses bynk.locale // ✓ both lines are needed
uses bynk.locale.types
messages "en" @reference { … }

In the Book

See also

  • Every code in its category, Message bundles, on the diagnostic index.
  • bynk explain bynk.messages.missing_locale_dependency shows the same from the installed toolchain, without a network.