
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
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 !
$ yarn add react-native-languages
# -- OR --
npm i react-native-languages --save
# - THEN -
$ react-native link react-native-languages
Instead of using react-native link, you can use Cocoapods to manage your dependencies.
# 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…
});

FAQs
React Native properties and methods related to the language of the device
The npm package react-native-languages receives a total of 3,015 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.