harn-stdlib 0.10.191

Embedded Harn standard library source catalog
Documentation
/**
 * Generated by scripts/generate_cli_localization.mjs. Do not edit.
 * Render one registered CLI message from literal argument values.
 * @effects: []
 * @errors: ["CLI localization argument count does not match its registered template"]
 */
pub fn message_0(locale: string, values: list<string>) -> string {
  if len(values) != 5 {
    throw "CLI localization argument count does not match its registered template"
  }
  return "    - " + (values[0] ?? "") + " line=" + (values[1] ?? "") + " approx_tokens="
    + (values[2] ?? "")
    + " "
    + (values[3] ?? "")
    + "/"
    + (values[4] ?? "")
}

/**
 * Render one registered CLI message from literal argument values.
 * @effects: []
 * @errors: ["CLI localization argument count does not match its registered template"]
 */
pub fn message_1(locale: string, values: list<string>) -> string {
  if len(values) != 4 {
    throw "CLI localization argument count does not match its registered template"
  }
  return "    - " + (values[0] ?? "") + " line=" + (values[1] ?? "") + " " + (values[2] ?? "")
    + ": "
    + (values[3] ?? "")
}

/**
 * Render one registered CLI message from literal argument values.
 * @effects: []
 * @errors: ["CLI localization argument count does not match its registered template"]
 */
pub fn message_2(locale: string, values: list<string>) -> string {
  if len(values) != 1 {
    throw "CLI localization argument count does not match its registered template"
  }
  if locale == "de" {
    return "  LoRA-Vertrag: " + (values[0] ?? "")
  }
  if locale == "es" {
    return "  contrato LoRA: " + (values[0] ?? "")
  }
  if locale == "fr" {
    return "  contrat LoRA : " + (values[0] ?? "")
  }
  if locale == "it" {
    return "  Contratto LoRA: " + (values[0] ?? "")
  }
  if locale == "ja" {
    return "  LoRA 契約: " + (values[0] ?? "")
  }
  if locale == "ko" {
    return "  LoRA 계약: " + (values[0] ?? "")
  }
  if locale == "pt-BR" {
    return "  Contrato LoRA: " + (values[0] ?? "")
  }
  if locale == "ru" {
    return "  контракт LoRA: " + (values[0] ?? "")
  }
  if locale == "zh-Hans" {
    return "  LoRA 合约:" + (values[0] ?? "")
  }
  return "  LoRA contract: " + (values[0] ?? "")
}

/**
 * Render one registered CLI message from literal argument values.
 * @effects: []
 * @errors: ["CLI localization argument count does not match its registered template"]
 */
pub fn message_3(locale: string, values: list<string>) -> string {
  if len(values) != 3 {
    throw "CLI localization argument count does not match its registered template"
  }
  if locale == "de" {
    return "  LoRA-Hyperparameter: rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "")
      + " dropout="
      + (values[2] ?? "")
  }
  if locale == "es" {
    return "  parámetros h LoRA: rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "")
      + " dropout="
      + (values[2] ?? "")
  }
  if locale == "fr" {
    return "  paramètres LoRA : rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "")
      + " dropout="
      + (values[2] ?? "")
  }
  if locale == "it" {
    return "  Parametri iper LoRA: rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "")
      + " dropout="
      + (values[2] ?? "")
  }
  if locale == "ja" {
    return "  LoRA ハイパーパラメータ: rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "")
      + " dropout="
      + (values[2] ?? "")
  }
  if locale == "ko" {
    return "  LoRA 하이퍼파라미터: rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "")
      + " dropout="
      + (values[2] ?? "")
  }
  if locale == "pt-BR" {
    return "  hparams LoRA: rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "") + " dropout="
      + (values[2] ?? "")
  }
  if locale == "zh-Hans" {
    return "  LoRA 超参数:rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "") + " dropout="
      + (values[2] ?? "")
  }
  return "  LoRA hparams: rank=" + (values[0] ?? "") + " alpha=" + (values[1] ?? "") + " dropout="
    + (values[2] ?? "")
}

/**
 * Render one registered CLI message from literal argument values.
 * @effects: []
 * @errors: ["CLI localization argument count does not match its registered template"]
 */
pub fn message_4(locale: string, values: list<string>) -> string {
  if len(values) != 1 {
    throw "CLI localization argument count does not match its registered template"
  }
  if locale == "de" {
    return "  LoRA-Modulformat: " + (values[0] ?? "")
  }
  if locale == "es" {
    return "  formato del módulo LoRA: " + (values[0] ?? "")
  }
  if locale == "fr" {
    return "  format du module LoRA : " + (values[0] ?? "")
  }
  if locale == "it" {
    return "  Formato modulo LoRA: " + (values[0] ?? "")
  }
  if locale == "ja" {
    return "  LoRA モジュール形式: " + (values[0] ?? "")
  }
  if locale == "ko" {
    return "  LoRA 모듈 형식: " + (values[0] ?? "")
  }
  if locale == "pt-BR" {
    return "  formato do módulo LoRA: " + (values[0] ?? "")
  }
  if locale == "ru" {
    return "  формат модуля LoRA: " + (values[0] ?? "")
  }
  if locale == "zh-Hans" {
    return "  LoRA 模块格式:" + (values[0] ?? "")
  }
  return "  LoRA module format: " + (values[0] ?? "")
}