
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@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
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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.