Skip to content
Playground(another site)

bynk.messages.incomplete

Error A locale is missing a code the reference locale declares.

Every locale is held to the reference locale: it must supply each code the reference declares, so that no locale silently lacks a message the reference has. The diagnostic is reported once per missing code, at the locale's block. Add the missing code to the locale. When you add a code to the reference, every other locale must follow. A code that is present with different placeholders is bynk.messages.placeholder_mismatch.

Example

messages "en" @reference {
"cart.empty" => "Your basket is empty."
"cart.greeting" => "Hello, {name}!"
}
messages "fr" { // ✗ lacks "cart.greeting"
"cart.empty" => "Votre panier est vide."
"cart.greeting" => "Bonjour, {name} !" // ✓ the code added
}

In the Book

See also

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