{"id":13395448,"url":"https://github.com/aderyabin/localer","last_synced_at":"2025-10-10T16:29:29.107Z","repository":{"id":48972711,"uuid":"118658432","full_name":"aderyabin/localer","owner":"aderyabin","description":"Automatic detecting missing I18n translations tool.","archived":false,"fork":false,"pushed_at":"2023-07-25T15:14:18.000Z","size":277,"stargazers_count":216,"open_issues_count":12,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-08T01:53:21.768Z","etag":null,"topics":["cli-app","dependency-analysis","gem","i18n","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aderyabin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-01-23T19:27:58.000Z","updated_at":"2025-05-13T04:13:38.000Z","dependencies_parsed_at":"2024-01-13T17:11:48.511Z","dependency_job_id":"e942c164-ba68-49bb-b61c-873ea57d850f","html_url":"https://github.com/aderyabin/localer","commit_stats":{"total_commits":42,"total_committers":4,"mean_commits":10.5,"dds":0.0714285714285714,"last_synced_commit":"f3e535f0f8d8f4489115129c85a7204b2333837d"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aderyabin/localer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aderyabin%2Flocaler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aderyabin%2Flocaler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aderyabin%2Flocaler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aderyabin%2Flocaler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aderyabin","download_url":"https://codeload.github.com/aderyabin/localer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aderyabin%2Flocaler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002614,"owners_count":26083426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli-app","dependency-analysis","gem","i18n","ruby"],"created_at":"2024-07-30T17:01:59.135Z","updated_at":"2025-10-10T16:29:29.089Z","avatar_url":"https://github.com/aderyabin.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n\u003cimg title=\"Localer logo\" width=\"384\" height=\"100\" src=\"https://gist.githubusercontent.com/aderyabin/cb0512cbcd6cb4c79a4d84a4831109a5/raw/localer-logo.png\"\u003e\n\u003c/p\u003e\n\n[![Gem Version](https://badge.fury.io/rb/localer.svg)](https://rubygems.org/gems/localer) [![Build Status](https://github.com/aderyabin/localer/workflows/Build/badge.svg)](https://github.com/aderyabin/localer/actions)\n\nLocaler is a tool that automatically detects missing I18n translations.\n\nThe 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.\n\n\u003cp align=\"left\"\u003e\n  \u003cimg height=\"500\" src=\"https://gist.githubusercontent.com/aderyabin/cb0512cbcd6cb4c79a4d84a4831109a5/raw/localer2.png\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'localer'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install localer\n\n## Usage\n\nAt the root directory of a Rails app, run:\n\n    $ localer check .\n\nor for specific Rails path:\n\n    $ localer check /path/to/rails/application\n\n## CI integration\n\nLocaler is easy to integrate into your favorite CI workflow:\n```yml\n# .travis.yml\n\n# other configuration options\nscript:\n  - bundle exec bundle-audit\n  - bundle exec rubocop\n  - bundle exec rspec\n  - bundle exec localer\n```\n\nor\n\n```ruby\n# Rakefile\n\n# other requirements\nrequire 'localer/rake_task'\nLocaler::RakeTask.new()\n\ntask(:default).clear\ntask default: [:rubocop, :spec, :localer]\n```\n\n## Support\n\nLocaler supports\n* Ruby: 2.4, 2.5, 2.6, 2.7\n* Rails: 5.0, 5.1, 5.2, 6.0, 6.1\n\n## Configuration\n\nThe 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.\n\n#### Disable specific locale\n\nBy default, Localer enables all locales, but you can disable it:\n\n```yml\nLocale:\n  EN:\n    Enabled: false\n```\n\n#### Exclude keys globally\nBy default, Localer enables all keys, but you can disable keys started with specified string or by regex:\n\n```yml\nExclude:\n  - /population\\z/\n  - .countries.france\n```\n\n#### Exclude keys for specific locale\n```yml\nLocale:\n  EN:\n    Exclude:\n      - /population\\z/\n      - .countries.france\n```\n\n## Using Rake\n\nLocaler 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`:\n\n```ruby\nrequire 'rubygems'\nrequire 'localer'\nrequire 'localer/rake_task'\n\nLocaler::RakeTask.new(:localer)\n```\n\nWhen you now run:\n\n    $ rake -T\n\nyou should see\n\n```\nrake localer  # Run Localer\n```\n\n## Development\n\nAfter 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.\n\n## Built With\n\n* [Thor](https://github.com/erikhuda/thor) - Used for building  command-line interfaces.\n* [Appraisal](https://github.com/thoughtbot/appraisal) -  Used for testing against different versions of dependencies\n* [Cucumber](https://github.com/cucumber/cucumber) + [Aruba](https://github.com/cucumber/aruba) - Used for testing command-line commands\n\n## Acknowledge\nSpecial thanks to [Roman Shamin](https://www.facebook.com/romanshamin) for the logo.\n\n## Contributing\n\nBug 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](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Localer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/aderyabin/localer/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faderyabin%2Flocaler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faderyabin%2Flocaler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faderyabin%2Flocaler/lists"}