Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

translate

Package Overview
Dependencies
Maintainers
0
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

translate

translate text from one language to another on node.js and the browser. 30+ languages supported, simple as cake.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.7K
increased by25.43%
Maintainers
0
Weekly downloads
 
Created
Source

translate.js - translates text to different languages, simple as cake

usage

    var translate = require('./translate');
    
    // set the input language 
    translate.input('Spanish');

    // set the output language 
    translate.output('English');
    
    // note: if you don't specify an input or output language, translate.js will attempt to autodetect your input and set your output to English
    translate.text('yo quero tacos por favor', function(text){
      sys.puts(text); // outputs : i want tacos please
    }); 
    

languages

Afrikaans
Albanian
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bulgarian
Catalan
Chinese
Croatian
Czech
Danish
Dutch
English
Estonian
Filipino
Finnish
French
Galician
Georgian
German
Greek
Haitian Creole
Hebrew
Hindi
Hungarian
Icelandic
Indonesian
Irish
Italian
Japanese
Korean
Latvian
Lithuanian
Macedonian
Malay
Maltese
Norwegian
Persian
Polish
Portuguese
Romanian
Russian
Serbian
Slovak
Slovenian
Spanish
Swahili
Swedish
Thai
Turkish
Ukrainian
Urdu
Vietnamese
Welsh
Yiddish

fun facts

translate.js uses the google api and requires an internet connection
if you want to actually hear the translated text as audio you could use say.js

Authors

Andrew Lunny (alunny), Marak Squires, Google

FAQs

Package last updated on 25 Jan 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc