
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
aws-translate-json
Advanced tools
Translate object values into other languages using the AWS translate API
Translate object values into other languages using the AWS translate API
npm install aws-translate-json
There is a free tier to use the translation API that you can check here.
Users
tabAdd User
buttonUser
with access to the Translation API onlyaccess key
and the secret
in a secure placeconst { AWSTranslateJSON } = require('aws-translate-json');
const awsConfig = {
accessKeyId: process.env.AWS_TRANSLATE_ID,
secretAccessKey: process.env.AWS_TRANSLATE_SECRET,
region: process.env.AWS_TRANSLATE_REGION,
}
const source = "en";
const taget = ["pt", "it", "es"];
const { translateJSON } = new AWSTranslateJSON(awsConfig, source, taget);
translateJSON({
key1: "my text here",
key2: "other text",
key3: {
key4: "nested text"
}
}).then(console.log);
/* OUTPUT:
{
pt: {
key1: 'meu texto aqui',
key2: 'outro texto',
key3: {
key4: 'texto aninhado'
}
},
it: {
key1: 'il mio testo qui',
key2: 'altro testo',
key3: {
key4: 'testo nidificato'
}
},
es: {
key1: 'mi texto aquí',
key2: 'otro texto',
key3: {
key4: 'texto anidado'
}
}
}
*/
FAQs
Translate object values into other languages using the AWS translate API
We found that aws-translate-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.