
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
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 6 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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.