VoxaJS provides an easy way to translate text between different languages using the Voxa Translation API. Convert your ideas into multiple languages with just a few lines of JavaScript!
Install the package using npm:
npm install voxa-js
Integrating VoxaJS into your project is straightforward:
const { Translator } = require('voxa-js');
const translator = new Translator('en', 'fr');
translator.translate('Hello').then(console.log); // Outputs: "Bonjour"
When creating a new Translator
instance, you can specify the following parameters:
Parameter | Description | Example |
---|---|---|
source |
The original language of the text (ISO 639-1 code). | en |
target |
The target language to which you want the text translated (ISO 639-1 code). | fr |
Note:
Happy Translating with VoxaJS! 🌍🎉