:doc:`Translate <../../translate>` / Client / list_languages

**************
list_languages
**************



.. py:method:: Translate.Client.list_languages(**kwargs)

  

  Provides a list of languages (RFC-5646 codes and names) that Amazon Translate supports.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/translate-2017-07-01/ListLanguages>`_  


  **Request Syntax**
  ::

    response = client.list_languages(
        DisplayLanguageCode='de'|'en'|'es'|'fr'|'it'|'ja'|'ko'|'pt'|'zh'|'zh-TW',
        NextToken='string',
        MaxResults=123
    )
    
  :type DisplayLanguageCode: string
  :param DisplayLanguageCode: 

    The language code for the language to use to display the language names in the response. The language code is ``en`` by default.

    

  
  :type NextToken: string
  :param NextToken: 

    Include the NextToken value to fetch the next group of supported languages.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return in each response.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Languages': [
              {
                  'LanguageName': 'string',
                  'LanguageCode': 'string'
              },
          ],
          'DisplayLanguageCode': 'de'|'en'|'es'|'fr'|'it'|'ja'|'ko'|'pt'|'zh'|'zh-TW',
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Languages** *(list) --* 

        The list of supported languages.

        
        

        - *(dict) --* 

          A supported language.

          
          

          - **LanguageName** *(string) --* 

            Language name of the supported language.

            
          

          - **LanguageCode** *(string) --* 

            Language code for the supported language.

            
      
    
      

      - **DisplayLanguageCode** *(string) --* 

        The language code passed in with the request.

        
      

      - **NextToken** *(string) --* 

        If the response does not include all remaining results, use the NextToken in the next request to fetch the next group of supported languages.

        
  
  **Exceptions**
  
  *   :py:class:`Translate.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Translate.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Translate.Client.exceptions.UnsupportedDisplayLanguageCodeException`

  
  *   :py:class:`Translate.Client.exceptions.InternalServerException`

  