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) != 1 {
    throw "CLI localization argument count does not match its registered template"
  }
  if locale == "de" {
    return "  erstellen  " + (values[0] ?? "")
  }
  if locale == "es" {
    return "  crear  " + (values[0] ?? "")
  }
  if locale == "fr" {
    return "  créer  " + (values[0] ?? "")
  }
  if locale == "it" {
    return "  crea  " + (values[0] ?? "")
  }
  if locale == "ja" {
    return "  作成  " + (values[0] ?? "")
  }
  if locale == "ko" {
    return "  생성  " + (values[0] ?? "")
  }
  if locale == "pt-BR" {
    return "  criar  " + (values[0] ?? "")
  }
  if locale == "zh-Hans" {
    return "  创建  " + (values[0] ?? "")
  }
  return "  create  " + (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_1(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 "  harn doctor              # lokale Umgebung überprüfen"
  }
  if locale == "es" {
    return "  harn doctor              # verifica el entorno local"
  }
  if locale == "fr" {
    return "  harn doctor              # vérifier l'environnement local"
  }
  if locale == "it" {
    return "  harn doctor              # verifica l'ambiente locale"
  }
  if locale == "ja" {
    return "  harn doctor              # ローカル環境を確認する"
  }
  if locale == "ko" {
    return "  harn doctor              # 로컬 환경 확인"
  }
  if locale == "pt-BR" {
    return "  harn doctor              # verificar o ambiente local"
  }
  if locale == "zh-Hans" {
    return "  harn doctor              # 验证本地环境"
  }
  return "  harn doctor              # verify the local environment"
}

/**
 * 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) != 0 {
    throw "CLI localization argument count does not match its registered template"
  }
  if locale == "de" {
    return "  harn fmt main.harn       # Code formatieren"
  }
  if locale == "es" {
    return "  harn fmt main.harn       # formatea el código"
  }
  if locale == "fr" {
    return "  harn fmt main.harn       # mettre en forme le code"
  }
  if locale == "it" {
    return "  harn fmt main.harn       # formatta il codice"
  }
  if locale == "ja" {
    return "  harn fmt main.harn       # コードを整形する"
  }
  if locale == "ko" {
    return "  harn fmt main.harn       # 코드 포맷"
  }
  if locale == "pt-BR" {
    return "  harn fmt main.harn       # formatar o código"
  }
  if locale == "zh-Hans" {
    return "  harn fmt main.harn       # 格式化代码"
  }
  return "  harn fmt main.harn       # format code"
}

/**
 * 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 "  harn lint main.harn      # Code linten"
  }
  if locale == "es" {
    return "  harn lint main.harn      # ejecuta lint del código"
  }
  if locale == "fr" {
    return "  harn lint main.harn      # analyser le code"
  }
  if locale == "it" {
    return "  harn lint main.harn      # esegui il lint del codice"
  }
  if locale == "ja" {
    return "  harn lint main.harn      # コードを lint する"
  }
  if locale == "ko" {
    return "  harn lint main.harn      # 코드 린트"
  }
  if locale == "pt-BR" {
    return "  harn lint main.harn      # verificar o código"
  }
  if locale == "zh-Hans" {
    return "  harn lint main.harn      # 检查代码风格"
  }
  return "  harn lint main.harn      # lint code"
}

/**
 * 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) != 0 {
    throw "CLI localization argument count does not match its registered template"
  }
  if locale == "de" {
    return "  harn package docs        # API-Dokumentation generieren"
  }
  if locale == "es" {
    return "  harn package docs        # genera documentación de API"
  }
  if locale == "fr" {
    return "  harn package docs        # générer la documentation de API"
  }
  if locale == "it" {
    return "  harn package docs        # genera la documentazione di API"
  }
  if locale == "ja" {
    return "  harn package docs        # API のドキュメントを生成する"
  }
  if locale == "ko" {
    return "  harn package docs        # API 문서 생성"
  }
  if locale == "pt-BR" {
    return "  harn package docs        # gerar documentação de API"
  }
  if locale == "zh-Hans" {
    return "  harn package docs        # 生成 API 文档"
  }
  return "  harn package docs        # generate API docs"
}