LibreTranslate · Schema

Language

A supported language entry returned by the /languages endpoint

TranslationMachine TranslationNatural Language ProcessingOpen SourceSelf-Hosted

Properties

Name Type Description
code string BCP 47 language code
name string Human-readable language name in English
targets array Language codes this language can be translated into
View JSON Schema on GitHub

JSON Schema

language.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://libretranslate.com/schemas/language",
  "title": "Language",
  "description": "A supported language entry returned by the /languages endpoint",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "BCP 47 language code",
      "example": "en"
    },
    "name": {
      "type": "string",
      "description": "Human-readable language name in English",
      "example": "English"
    },
    "targets": {
      "type": "array",
      "description": "Language codes this language can be translated into",
      "items": {
        "type": "string"
      },
      "example": ["es", "fr", "de", "it", "pt"]
    }
  }
}