
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
react-native-languages
Advanced tools
React Native properties and methods related to the language of the device
Get the user preferred languages and use the library of your choice to translate your app !
| Version | React Native Support |
|---|---|
| 3.0.0 | 0.56.0+ |
| 2.0.1 | 0.48.0 - 0.55.0 |
$ npm install --save react-native-languages
# --- or ---
$ yarn add react-native-languages
$ react-native link react-native-languages
NB: If you use a Cocoapods and have a Podfile, react-native link will only add this library as a dependency, and you'll need to run pod install.
# add this line in your Podfile
pod 'RNLanguages', :path => '../node_modules/react-native-languages'
$ pod install
Add Files to <...>node_modules ➜ react-native-languages ➜ ios ➜ select RNLanguages.xcodeprojRNLanguages.a to Build Phases -> Link Binary With Librariesandroid/settings.gradle:include ':react-native-languages'
project(':react-native-languages').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-languages/android')
android/app/build.gradle:dependencies {
// ...
compile project(':react-native-languages')
}
MainApplication.java:import com.reactcommunity.rnlanguages.RNLanguagesPackage; // <-- Add the RNLanguages import
public class MainApplication extends Application implements ReactApplication {
// ...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
// ...
new RNLanguagesPackage() // <-- Add it to the packages list
);
}
// ...
}
import RNLanguages from 'react-native-languages';
// Current device language
console.log('language', RNLanguages.language);
// User preferred languages (in order)
console.log('languages', RNLanguages.languages);
// Listening for languages changes (on Android)
RNLanguages.addEventListener('change', ({ language, languages }) => {
// Do languages related things…
});

Browse the files in the /example directory.
FAQs
React Native properties and methods related to the language of the device
The npm package react-native-languages receives a total of 1,266 weekly downloads. As such, react-native-languages popularity was classified as popular.
We found that react-native-languages 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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.