/** Generated by make gen-cli-localization. Do not edit. */
import { MESSAGE_308 } from "std/cli/localization/messages/part_61"
import { MESSAGE_311 } from "std/cli/localization/messages/part_62"
import { MessageTemplate, render_message } from "std/cli/message_template"
const MESSAGES: dict<string, MessageTemplate> = {
"{0} {1}: {2} ok={3} reason={4}\n": MESSAGE_308,
"{0} {1} format={2} fallback={3} native={4} text={5} streaming_native={6}\n": MESSAGE_311,
}
/**
* 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)
}