Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
This is a set of tools that make your life easier if you have lots of translations in a Rails project.
To use the utils in Rails 2.x, add to your environment.rb
:
config.gem "i18n-verify"
If using Rails 3.x, add to your Gemfile (perhaps in the :development group)
gem "i18n-verify"
and run 'bundle install'.
i18n-verify is a set of rake tasks:
rake i18n:find_key
for finding keysrake i18n:is_complete
for checking if translations are completerake i18n:duplicates
for finding keys with more than one translation for any given localerake i18n:spell
for checking translation misspellingsAll of them will automatically pick up translation files configured for i18n (both yml and rb).
It looks for keys that match regexp.
Syntax:
rake i18n:find_key[regexp,group_by_filename]
Beware with regexp
: escape your period ('.') characters. Output format is defined by group_by_filename
.
Examples:
rake i18n:find_key[models]
rake i18n:find_key[\.models\.attributes,true]
It checks pairs of locales for keys that are defined in one but not in the other.
Syntax:
rake i18n:is_complete [locales=<list>]
locales
defaults to all and should be a comma separated list with no spaces.
Examples:
rake i18n:is_complete
rake i18n:is_complete locales=en,fr,es
It checks for keys that appear more than once in the translations for any given locale. This is a nasty mistake because you can never be sure which one loads last thus becoming 'the' one in your app.
rake i18n:duplicates [locales=<list>]
locales
defaults to all and should be a comma separated list with no spaces.
Examples:
rake i18n:duplicates
rake i18n:duplicates locales=en
It checks for translation misspellings.
rake i18n:spell [locales=<list>]
locales
defaults to all and should be a comma separated list with no spaces.
Please note that spelling requires aspell to be installed with all the dictionaries spelling is requested for.
Examples:
rake i18n:spell
rake i18n:spell locales=en,fr
Copyright (c) 2011 fastcatch. See the LICENSE file for further details.
FAQs
Unknown package
We found that i18n-verify 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.