New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

microsoft-translator

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microsoft-translator

Yet another library for translation!

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

MicrosoftTranslatorJS

Yet another library for translation!

A powerful, free translation library supporting a wide range of languages—many of which other services don't offer. No need for an Azure API key; it's entirely free and hassle-free!

Installation:

npm install microsoft-translator

Usage:

ES Modules (ESM)

import { Translator, TranslatorLocale } from "microsoft-translator";

let translator = new Translator();

let text = "Bienvenido a MicrosoftTranslator!";

let from = TranslatorLocale.AUTO_DETECT;
let to = TranslatorLocale.EN;

translator.translate(text, from, to).then((translatedText) => {
  console.log(translatedText);
});

CommonJS

const { Translator, TranslatorLocale } = require("microsoft-translator");

let translator = new Translator();

let text = "Bienvenido a MicrosoftTranslator!";

let from = TranslatorLocale.AUTO_DETECT;
let to = TranslatorLocale.EN;

translator.translate(text, from, to).then((translatedText) => {
  console.log(translatedText);
});

Keywords

translator

FAQs

Package last updated on 06 Apr 2025

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