
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
@flyskywhy/react-native-locale-detector
Advanced tools
Detects the locale of a user's phone. Based on react-native-i18n, but this just exports the device's locale. This isn't particularly useful on it's own and you'll probably want to use it with an i18n library like i18next.
npm install @flyskywhy/react-native-locale-detector --save
For RN < 0.60
react-native link
If got
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR: node_modules/@flyskywhy/react-native-locale-detector/android/build/intermediates/merged_res/release/values-v26/values-v26.xml:7: AAPT: error: resource android:attr/colorError not found.
you may need add below into YOUR_APP/android/build.gradle
:
subprojects {
afterEvaluate {
project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion = rootProject.compileSdkVersion
buildToolsVersion = rootProject.buildToolsVersion
}
}
}
}
// Import the locale.
import locale from '@flyskywhy/react-native-locale-detector'
// We could log it. Maybe it's en-US...
console.log(locale)
// Or if you're using a localization library.
yourLocalizationLibrary.setLocale(locale)
FAQs
Detects the locale of a user's phone.
The npm package @flyskywhy/react-native-locale-detector receives a total of 4 weekly downloads. As such, @flyskywhy/react-native-locale-detector popularity was classified as not popular.
We found that @flyskywhy/react-native-locale-detector 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 npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.