
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
vue-localez
Advanced tools
Vue-localez is an addon to add support for multiple languages.
Installing Vue Localization is a pretty simple process
npm install vue-localez
yarn add vue-localez
var Vue = require('vue');
var vueLocalez = require('vue-localez');
vueLocalez.requireAll(require.context(`./lang`, true, /\.json$/))
Vue.use(vueLocalez, { // Options
lang: 'en', // lang
extension: 'json', // language resource
})
└── lang
├── en
| ├──error.json
| └──messages.json
├── id
| ├──error.json
| └──messages.json
└── fr
├──error.json
└──messages.json
lang/id/messages.json
{
"greeting": "Halo {name}"
}
lang/en/messages.json
{
"greeting": "Hello {name}"
}
lang/fr/messages.json
{
"greeting": "Bonjour {name}"
}
$locale.message('message.greeting', { name : "Waldi Irawan" })
// returns
// id -> Halo Waldi Irawan
// en -> Hello Waldi Irawan
// fr -> Bonjour Waldi Irawan
yourcomponent.vue
<h1>{{ $locale.message('message.greeting', { name : "Waldi Irawan" }) }}</h1>
Results :
<!-- id -->
<h1>Halo Waldi Irawan</h1>
<!-- en -->
<h1>Halo Waldi Irawan</h1>
<!-- fr -->
<h1>Halo Waldi Irawan</h1>
// inside vue instance
this.$locale.for('id') // 'id' is iso code country
v0.0.3 (2017-03-12)
FAQs
Localization support for VueJS
The npm package vue-localez receives a total of 0 weekly downloads. As such, vue-localez popularity was classified as not popular.
We found that vue-localez 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.