Interface LanguageApi

  • All Known Implementing Classes:
    LanguageApiImpl

    public interface LanguageApi

    Service allows to get a list of translation directions.
    The service translates between any of the languages in the list of supported languages. To get this information, set the ui parameter when calling methods.

    Official REST API documentation
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Languages all()
      Gets a list of translation directions and available languages supported by the service.
      Languages all​(Language ui)
      Gets a list of translation directions and available languages supported by the service.
      Languages all​(java.lang.String ui)
      Gets a list of translation directions and available languages supported by the service.
    • Method Detail

      • all

        @Nonnull
        Languages all()
        Gets a list of translation directions and available languages supported by the service. In this case, language names (Language.name()) are not fetched from the Yandex.Translate service.
        Returns:
        information about available languages and directions of translation
      • all

        @Nonnull
        Languages all​(@Nullable
                      Language ui)
        Gets a list of translation directions and available languages supported by the service.
        Parameters:
        ui - if set, the response contains explanations of language codes
        Returns:
        information about available languages and directions of translation
      • all

        @Nonnull
        Languages all​(@Nullable
                      java.lang.String ui)
        Gets a list of translation directions and available languages supported by the service.
        Parameters:
        ui - if set, the response contains explanations of language codes
        Returns:
        information about available languages and directions of translation