
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
./languages folder in the same path as ./node_modules.default.js file in ./languages.
g-lang supports autocompletion in vs code../node_modules.와 같은 경로에 ./languages 폴더를 생성해야합니다../languages 폴더에는 반드시 default.js(기본 언어) 파일을 생성해야합니다.npm install g-lang
const { lang, getLanguage, setLanguage, setLanguages, onChangeLanguage } = require('g-lang');
setLanguages({
en: require('./languages/default'),
kor: require('./languages/kor')
})
onChangeLanguage(function (nextLang, prevLang) {
console.log('lang changed !!', `${nextLang} => ${prevLang}`)
})
// .remove() // This code will remove the event listener above.(위 이벤트 리스너를 제거하는 코드입니다.)
// Download the 'Download Example ZIP' above and see the folder and JS file structure.
setLanguage('kor')
console.log(getLanguage(), lang.channel.name_label)
console.log(getLanguage(), lang.video.title)
setLanguage('en')
console.log(getLanguage(), lang.channel.name_label)
console.log(getLanguage(), lang.video.title)
import { lang, createObject } from 'g-lang'
const langs = createObject( function () {
return {
title: lang.title,
}
})
console.log(langs.title)
FAQs
Multi Language Module / 가장 편리한 다국어 모듈(자동완성 지원)
The npm package g-lang receives a total of 22 weekly downloads. As such, g-lang popularity was classified as not popular.
We found that 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
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.