
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Localer is a tool that automatically detects missing I18n translations.
The goal is to preserve the integrity of translations. Localer parses and merges all application locales’ keys. At the next step, it searches for missing translations among the calculated keys.
Add this line to your application's Gemfile:
gem 'localer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install localer
At the root directory of a Rails app, run:
$ localer check .
or for specific Rails path:
$ localer check /path/to/rails/application
Localer is easy to integrate into your favorite CI workflow:
# .travis.yml
# other configuration options
script:
- bundle exec bundle-audit
- bundle exec rubocop
- bundle exec rspec
- bundle exec localer
or
# Rakefile
# other requirements
require 'localer/rake_task'
Localer::RakeTask.new()
task(:default).clear
task default: [:rubocop, :spec, :localer]
Localer supports
The behavior of Localer can be controlled via the .localer.yml
configuration file. It makes it possible to disable locales and keys. The file can be placed in your project directory.
By default, Localer enables all locales, but you can disable it:
Locale:
EN:
Enabled: false
By default, Localer enables all keys, but you can disable keys started with specified string or by regex:
Exclude:
- /population\z/
- .countries.france
Locale:
EN:
Exclude:
- /population\z/
- .countries.france
Localer ships with a rake task. To use Localer's rake task you simply need to require the task file and define a task with it. Below is a rake task that will run localer
:
require 'rubygems'
require 'localer'
require 'localer/rake_task'
Localer::RakeTask.new(:localer)
When you now run:
$ rake -T
you should see
rake localer # Run Localer
After checking out the repo, run bundle exec appraisal install
to install dependencies for each appraisal. Then, run bundle exec appraisal rake
to run the tests.
Special thanks to Roman Shamin for the logo.
Bug reports and pull requests are welcome on GitHub at https://github.com/aderyabin/localer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Localer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that localer 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
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.