/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { MESSAGE_77 } from "std/cli/localization/messages/part_15"
import { MESSAGE_85 } from "std/cli/localization/messages/part_17"
import { MESSAGE_159 } from "std/cli/localization/messages/part_31"
import { MESSAGE_184 } from "std/cli/localization/messages/part_36"
import { MESSAGE_267 } from "std/cli/localization/messages/part_53"
import { MESSAGE_31 } from "std/cli/localization/messages/part_6"
import { MESSAGE_48 } from "std/cli/localization/messages/part_9"
import { MessageTemplate, render_message } from "std/cli/message_template"
const MESSAGES: dict<string, MessageTemplate> = {
" consumable: {0}": MESSAGE_31,
" duplicate: {0}": MESSAGE_48,
" matched: {0}": MESSAGE_77,
" missing: {0}": MESSAGE_85,
" unexpected: {0}": MESSAGE_159,
"Batch result rejoin: {0}": MESSAGE_184,
quarantine: MESSAGE_267,
}
/**
* Select a registered CLI template without interpreting argument text.
* @effects: []
* @errors: ["Unregistered CLI localization message", "CLI localization argument count does not match its registered template"]
*/
pub fn cli_message(locale: string, source: string, values: list<string>) -> string {
const template = MESSAGES[source]
guard template != nil else {
throw "Unregistered CLI localization message"
}
return render_message(template, locale, values)
}