/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { MESSAGE_80 } from "std/cli/localization/messages/part_16"
import { MESSAGE_112 } from "std/cli/localization/messages/part_22"
import { MESSAGE_119 } from "std/cli/localization/messages/part_23"
import { MESSAGE_120, MESSAGE_122, MESSAGE_124 } from "std/cli/localization/messages/part_24"
import { MESSAGE_139 } from "std/cli/localization/messages/part_27"
import { MESSAGE_144 } from "std/cli/localization/messages/part_28"
import { MESSAGE_161, MESSAGE_164 } from "std/cli/localization/messages/part_32"
import { MESSAGE_210 } from "std/cli/localization/messages/part_42"
import { MessageTemplate, render_message } from "std/cli/message_template"
const MESSAGES: dict<string, MessageTemplate> = {
" messages ({0}):": MESSAGE_80,
" refused: {0}": MESSAGE_112,
" route: {0}/{1} tool_format={2}": MESSAGE_119,
" run: {0}": MESSAGE_120,
" schema: {0}": MESSAGE_122,
" session: {0}": MESSAGE_124,
" terminal status: {0}": MESSAGE_139,
" tool catalog: {0} schemas, hash {1}": MESSAGE_144,
" usage: {0} provider calls, {1} in / {2} out": MESSAGE_161,
" wrote: {0}": MESSAGE_164,
"Training example export from {0}": MESSAGE_210,
}
/**
* 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)
}