Popularity
8.1
Stable
Activity
0.0
Stable
51
2
6
Monthly Downloads: 23
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
google-translate alternatives and similar packages
Based on the "Google" category.
Alternatively, view google-translate alternatives based on common mentions on social networks and blogs.
-
google-mail-filters
Write GMail filters and output to importable XML -
google-oauth2-for-cli
Hackage: http://hackage.haskell.org/package/google-oauth2-for-cli
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Promo
www.influxdata.com
Do you think we are missing an alternative of google-translate or a related project?
README
google-translate
High-level, up-to-date bindings to the Google Translate API.
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad
import qualified Data.Text.IO as T
import Network.HTTP.Client
import Network.HTTP.Client.TLS
import Web.Google.Translate
main :: IO ()
main = do
Right TranslationResponse { translations = xs } <-
newManager tlsManagerSettings >>= \mgr ->
translate mgr (Key "<API-Key>") (Just srcLang) trgLang (Body "Hello")
forM_ xs $ \Translation { translatedText = TranslatedText txt } ->
T.putStrLn txt
where
srcLang = Source English
trgLang = Target Russian
-- >>> Здравствуйте
*Note that all licence references and agreements mentioned in the google-translate README section above
are relevant to that project's source code only.