/** Generated by make gen-cli-localization. Do not edit. */
import {
MESSAGE_171,
MESSAGE_172,
MESSAGE_173,
MESSAGE_174,
} from "std/cli/localization/messages/part_34"
import { MESSAGE_194 } from "std/cli/localization/messages/part_38"
import { MESSAGE_196 } from "std/cli/localization/messages/part_39"
import { MESSAGE_206, MESSAGE_209 } from "std/cli/localization/messages/part_41"
import { MESSAGE_211 } from "std/cli/localization/messages/part_42"
import { MESSAGE_217, MESSAGE_219 } from "std/cli/localization/messages/part_43"
import { MESSAGE_239 } from "std/cli/localization/messages/part_47"
import { MESSAGE_245, MESSAGE_248 } from "std/cli/localization/messages/part_49"
import { MESSAGE_250, MESSAGE_251 } from "std/cli/localization/messages/part_50"
import { MESSAGE_260 } from "std/cli/localization/messages/part_52"
import { MESSAGE_268, MESSAGE_269 } from "std/cli/localization/messages/part_53"
import { MESSAGE_292 } from "std/cli/localization/messages/part_58"
import { MESSAGE_295, MESSAGE_296, MESSAGE_297 } from "std/cli/localization/messages/part_59"
import { MESSAGE_305 } from "std/cli/localization/messages/part_61"
import { MESSAGE_314 } from "std/cli/localization/messages/part_62"
import { MESSAGE_316, MESSAGE_318 } from "std/cli/localization/messages/part_63"
import { MessageTemplate, render_message } from "std/cli/message_template"
const MESSAGES: dict<string, MessageTemplate> = {
"--- Providers ---\n": MESSAGE_171,
"--- Stdlib capabilities ---\n": MESSAGE_172,
"--- Summary ---\n": MESSAGE_173,
"--- Targets ---\n": MESSAGE_174,
FAIL: MESSAGE_194,
"Harn doctor\n\n": MESSAGE_196,
OK: MESSAGE_206,
SKIP: MESSAGE_209,
WARN: MESSAGE_211,
buildable: MESSAGE_217,
configured: MESSAGE_219,
installed: MESSAGE_239,
missing: MESSAGE_245,
"no credentials": MESSAGE_248,
"not buildable": MESSAGE_250,
"not probed": MESSAGE_251,
probed: MESSAGE_260,
reachable: MESSAGE_268,
"reachable ({0}ms)": MESSAGE_269,
unreachable: MESSAGE_292,
"{0} blocks: {1}\n": MESSAGE_295,
"{0} docs: {1}\n": MESSAGE_296,
"{0} fix: {1}\n": MESSAGE_297,
"{0} {1} sandbox: {2}\n": MESSAGE_305,
"{0}--- Next step ---\n": MESSAGE_314,
"{0}OK={1} WARN={2} FAIL={3} SKIP={4}\n": MESSAGE_316,
"{0}blocked: {1}\n": MESSAGE_318,
}
/**
* 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)
}