
Security News
pnpm 11.10 Hardens Registry Authentication to Block Token Redirection
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.
react-g-lang
Advanced tools
npm install react-g-lang
import React from 'react';
import { SafeAreaView, Text,TouchableOpacity } from 'react-native';
// required
import { setLanguages, setLanguage, createObject } from 'g-lang'
import LangReloader, { lang } from 'react-g-lang'
// './languages' must be the same path as './node_modules'
// Please download 'https://github.com/lendland/g-lang/raw/master/g-lang-example.zip' and refer to directory/file structure.
setLanguages({
en: require('./languages/en'),
kor: require('./languages/default'),
})
const langObject = createObject(function (){
return {
content: lang.content
}
})
class App extends React.Component {
render(){
return (
<SafeAreaView style={{ flex: 1 }}>
<TouchableOpacity style={{ padding:20 }} onPress={()=>{
setLanguage('en')
}}>
<Text>to EN</Text>
</TouchableOpacity>
<TouchableOpacity style={{ padding:20 }} onPress={()=>{
setLanguage('kor')
}}>
<Text>to KOR</Text>
</TouchableOpacity>
<Text>{lang.title}</Text>
<Text>{langObject.content}</Text>
</SafeAreaView>
)
}
};
// Be sure to wrap your app with LangReloader.
export default LangReloader(App);
FAQs
Multi Language Module / 가장 편리한 다국어 모듈(자동완성 지원)
The npm package react-g-lang receives a total of 14 weekly downloads. As such, react-g-lang popularity was classified as not popular.
We found that react-g-lang 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.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.

Security News
/Research
Socket uncovered 17 malicious npm and PyPI packages typosquatting Paysafe, Skrill, and Neteller SDKs to steal developer secrets.

Security News
Node.js is debating whether AI-driven security report volume warrants moving more vulnerability reports into public workflows.