harn-stdlib 0.10.182

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) != 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_1(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 "  Adapter-Bindung: " + (values[0] ?? "")
  }
  if locale == "es" {
    return "  enlace del adaptador: " + (values[0] ?? "")
  }
  if locale == "fr" {
    return "  liaison de l’adaptateur : " + (values[0] ?? "")
  }
  if locale == "it" {
    return "  binding dell'adapter: " + (values[0] ?? "")
  }
  if locale == "ja" {
    return "  アダプタのバインディング: " + (values[0] ?? "")
  }
  if locale == "ko" {
    return "  어댑터 바인딩: " + (values[0] ?? "")
  }
  if locale == "pt-BR" {
    return "  vinculação do adapter: " + (values[0] ?? "")
  }
  if locale == "zh-Hans" {
    return "  适配器绑定:" + (values[0] ?? "")
  }
  return "  adapter binding: " + (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_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 "  Adapter-Präzision: " + (values[0] ?? "")
  }
  if locale == "es" {
    return "  precisión del adaptador: " + (values[0] ?? "")
  }
  if locale == "fr" {
    return "  précision de l’adaptateur : " + (values[0] ?? "")
  }
  if locale == "it" {
    return "  precisione dell'adapter: " + (values[0] ?? "")
  }
  if locale == "ja" {
    return "  アダプタの精度: " + (values[0] ?? "")
  }
  if locale == "ko" {
    return "  어댑터 정밀도: " + (values[0] ?? "")
  }
  if locale == "pt-BR" {
    return "  precisão do adapter: " + (values[0] ?? "")
  }
  if locale == "zh-Hans" {
    return "  适配器精度:" + (values[0] ?? "")
  }
  return "  adapter precision: " + (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) != 0 {
    throw "CLI localization argument count does not match its registered template"
  }
  if locale == "de" {
    return "  Backend-argv: erforderlich"
  }
  if locale == "es" {
    return "  argv del backend: required"
  }
  if locale == "fr" {
    return "  argv du backend : requis"
  }
  if locale == "it" {
    return "  argv backend: obbligatorio"
  }
  if locale == "ja" {
    return "  backend argv: 必須"
  }
  if locale == "ko" {
    return "  백엔드 argv: 필요"
  }
  if locale == "pt-BR" {
    return "  argv do backend: obrigatório"
  }
  if locale == "zh-Hans" {
    return "  后端 argv:必需"
  }
  return "  backend argv: required"
}

/**
 * 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 "  Backend-Exitcode: " + (values[0] ?? "")
  }
  if locale == "es" {
    return "  código de salida del backend: " + (values[0] ?? "")
  }
  if locale == "fr" {
    return "  code de sortie du backend : " + (values[0] ?? "")
  }
  if locale == "it" {
    return "  codice di uscita backend: " + (values[0] ?? "")
  }
  if locale == "ja" {
    return "  backend 終了コード: " + (values[0] ?? "")
  }
  if locale == "ko" {
    return "  백엔드 종료 코드: " + (values[0] ?? "")
  }
  if locale == "pt-BR" {
    return "  código de saída do backend: " + (values[0] ?? "")
  }
  if locale == "zh-Hans" {
    return "  后端退出码:" + (values[0] ?? "")
  }
  return "  backend exit code: " + (values[0] ?? "")
}