
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
= Merb R18n
A plugin for the Merb framework that provides i18n support to translate your site in several languages.
It is just a wrap for R18n core library. See R18n documentation for more information.
== Features
== How To
=== Merb App
Add merb_r18n to your merb application in config/dependencies.rb:
dependency 'merb_r18n'
Add route to set locale manually in your config/router.rb. For example set available translations:
Merb::Router.prepare do match('(/:locale)', :locale => /(en|ru)/) do # Your application routers. default_routes end end
You may use another way, just set :locale param.
Create translations file in app/i18n/. For example app/i18n/en.yml:
post: add: Add post edit: Edit %1
comments: !!pl 0: No comments 1: One comment n: %1 comments
Use translation messages in view. For example:
<%= link_to i18n.post.add, 'posts/add' %> <%= link_to i18n.post.edit(post.title), "posts/edit/#{@post.id}" %> <%= link_to i18n.delete, "posts/delete/#{@post.id}" %>
Print localized time and numbers. For example:
<%= i18n.l @post.created_at, :date %>
Print available translations:
=== Merb Slice
Add merb_r18n to your merb slice in lib/YOUR_SLICE.rb:
dependency 'merb_r18n'
Create translations file in app/i18n/. For example app/i18n/en.yml:
post: add: Add post edit: Edit %1
comments: !!pl 0: No comments 1: One comment n: %1 comments
Use translation messages in view. For example:
Print localized time and numbers. For example:
<%= i18n.l @post.created_at, :date %>
In host application you can override translations. Just create files in app/i18n/ in application root. For example app/i18n/en.yml:
post: add: Write your idea
== License R18n is licensed under the GNU Lesser General Public License version 3. You can read it in LICENSE file or in http://www.gnu.org/licenses/lgpl.html.
== Author Andrey “A.I.” Sitnik andrey@sitnik.ru
FAQs
Unknown package
We found that merb_r18n 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.