
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@botonic/plugin-google-translation
Advanced tools
## What does this plugin do? This plugin uses [Google Cloud Translation API](https://cloud.google.com/translate) to translate the user input text and detect its language.
This plugin uses Google Cloud Translation API to translate the user input text and detect its language.
To install this plugin, you only need to execute the following command:
npm i @botonic/plugin-google-translation
Before using this plugin, you need a project that has the Cloud Translation API enabled and its credentials. See Cloud Translation Set Up Guide.
You need to add the following configuration to your bot's plugins:
export const plugins = [
{
id: 'google-translation',
resolve: require('@botonic/plugin-google-translation'),
options: {
credentials: {
privateKeyId: '',
privateKey: '',
projectId: '',
clientEmail: '',
},
translateTo: ['ca', 'it', 'ro'],
whitelist: ['en', 'es'],
},
},
]
Note: Credentials definition is case-sensitive: make sure you correctly define them.
This plugin has two parameters:
translateTo
: languages we want to translate the input text to.whitelist
: optional parameter that defines the allowed languages for language detection. If the detected language is not included in the whitelist, the session.__locale
is used.Important: all languages are specified using its ISO 639-1 code.
Once the plugin has translated the input text and detected the language, this information will be available in the input object.
FAQs
## What does this plugin do? This plugin uses [Google Cloud Translation API](https://cloud.google.com/translate) to translate the user input text and detect its language.
We found that @botonic/plugin-google-translation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.