bynk.resolve.duplicate_message_locale
Error Two messages blocks in one bundle declare the same locale tag.
A messages block holds the templates for one locale, and render(tag, msg) picks the block by its tag. Two blocks for one tag leave it two sets of templates to choose from, so the second is refused. Merge them into one block, or correct the tag of the one meant for another language. A code repeated inside a block is bynk.resolve.duplicate_message_code.
Example
messages "en" @reference { … }messages "en" { … } // ✗ `en` is already declared
messages "en" @reference { … }messages "fr" { … } // ✓ one block for each localeIn the Book
See also
- Every code in its category, Resolution, on the diagnostic index.
bynk explain bynk.resolve.duplicate_message_localeshows the same from the installed toolchain, without a network.