# translate

Type: object

Schema: [translate](https://sourcey-libretranslate.pages.dev/it/api/models/translate/index.md)

- `alternatives` (optional)
  Type: unknown
  
  Alternative translations
  
  oneOf:
    Type: array
    
    Items:
      Type: string
  
    Type: array
    
    Items:
      Type: array
      
      Items:
        Type: string

- `detectedLanguage` (optional)
  Type: unknown
  
  oneOf:
    Type: object
    
    - `confidence` (optional)
      Type: number, float
      
      Confidence value
      
      minimum: 0
      
      maximum: 100
      
      Example:
      
      ```json
      100
      ```
    
    - `language` (optional)
      Type: string
      
      Language code
  
    Type: array
    
    Items:
      Type: object
      
      - `confidence` (optional)
        Type: number, float
        
        Confidence value
        
        minimum: 0
        
        maximum: 100
        
        Example:
        
        ```json
        100
        ```
      
      - `language` (optional)
        Type: string
        
        Language code

- `translatedText` (required)
  Type: unknown
  
  Translated text(s)
  
  oneOf:
    Type: string
  
    Type: array
    
    Items:
      Type: unknown