
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
react-native-power-translator
Advanced tools
A no-hassle way to use Google and Microsoft cloud translation services in react native.
PowerTranslator gives you a no-hassle way to use Google and Microsoft cloud translation services in react native. It can be used as a component or as a service.
Get the demo file from here: Download Demo
npm i react-native-power-translator --save
import { PowerTranslator, ProviderTypes, TranslatorConfiguration, TranslatorFactory } from 'react-native-power-translator';
//Example
TranslatorConfiguration.setConfig('Provider_Type', 'Your_API_Key','Target_Language', 'Source_Language');
//Fill with your own details
TranslatorConfiguration.setConfig(ProviderTypes.Google, 'xxxx','fr');
Note: The source of the language is optional, if you are not passing it, the provider will detect the language for you.
<PowerTranslator text={'Engineering physics or engineering science refers to the study of the combined disciplines of physics'} />
You can also use it as a service. The return value will be a promise with a translated text.
const translator = TranslatorFactory.createTranslator();
translator.translate('Engineering physics or engineering science').then(translated => {
//Do something with the translated text
});
Here is the list of props:
A few use cases that you can use with this module.
To get Google translator api key, visit here To get Microsoft azure translator api key, visit here
The contribution document is still in progress. It will be ready soon.
FAQs
A no-hassle way to use Google and Microsoft cloud translation services in react native.
The npm package react-native-power-translator receives a total of 11 weekly downloads. As such, react-native-power-translator popularity was classified as not popular.
We found that react-native-power-translator 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.
Research
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.