Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
I18n backend for loading remote locales via HTTP.
Put the following in your Gemfile:
gem 'i18n-remote_backend', require: 'i18n/remote_backend', git: 'git@github.com:mudasirraza/i18n-remote_backend.git'
After updating your bundle, run the installer
$ rails g i18n:remote_backend:install
It generates a new file in config/initializers
named i18n_remote_backend.rb
with the following content.
require 'i18n/backend/remote_backend'
I18n.backend = I18n::Backend::Chain.new(I18n::Backend::RemoteBackend.new, I18n::Backend::Simple.new)
I18n::Backend::RemoteBackend.configure do |config|
# config.http_url = ''
end
Set the http_url accordingly. e.g https://example-url/locales
The corresponding generated requests will look like: https://example-url/locales/en
or https://example-url/locales/fr
etc.
And it should respond back with the yaml file content.
If a remote translation is unavailable, it will fall back to a local translation.
You can then use I18n.t('text')
.
Bug reports and pull requests are welcome on GitHub at https://github.com/mudasirraza/i18n-remote_backend.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that i18n-remote_backend 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.