harn-stdlib 0.10.189

Embedded Harn standard library source catalog
Documentation
/** Generated by scripts/generate_cli_localization.mjs. Do not edit. */
import { message_242 } from "std/cli/localization/messages/part_48"
import { message_297 } from "std/cli/localization/messages/part_59"
import { message_312 } from "std/cli/localization/messages/part_62"
import { message_319 } from "std/cli/localization/messages/part_63"
import { message_320 } from "std/cli/localization/messages/part_64"

/**
 * 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 {
  if source == "local provider recommendations\n" {
    return message_242(locale, values)
  }
  if source == "{0}   caveat: {1}\n" {
    return message_297(locale, values)
  }
  if source == "{0}(no local model outcomes found)\n" {
    return message_312(locale, values)
  }
  if source == "{0}source: {1}\n" {
    return message_319(locale, values)
  }
  if source == "{0}{1}. {2} {3} ({4}, selector {5}, tools {6})\n" {
    return message_320(locale, values)
  }
  throw "Unregistered CLI localization message"
}