Neural machine translation powered by Google Cloud Translation. Add translation capabilities to your app—translate documents, communications, and evidence across 100+ languages with automatic language detection.
import Casedev from 'casedev';const client = new Casedev({ apiKey: process.env.CASEDEV_API_KEY });// Translate text to Spanishconst result = await client.translate.v1.translate({ q: 'The deposition will be held on Monday at 10:00 AM.', target: 'es'});console.log(result.data.translations[0].translatedText);// "La deposición se llevará a cabo el lunes a las 10:00 AM."