{"id":25687167,"url":"https://github.com/holyshared/i18n-checker","last_synced_at":"2026-06-17T15:32:15.220Z","repository":{"id":56877107,"uuid":"83857490","full_name":"holyshared/i18n-checker","owner":"holyshared","description":"Verification of translation of Ruby source and Haml template","archived":false,"fork":false,"pushed_at":"2020-07-27T18:26:11.000Z","size":374,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T13:45:18.494Z","etag":null,"topics":["checker","haml","i18n","locale","ruby"],"latest_commit_sha":null,"homepage":"","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/holyshared.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-04T01:57:24.000Z","updated_at":"2024-03-21T12:48:54.000Z","dependencies_parsed_at":"2022-08-20T11:31:08.312Z","dependency_job_id":null,"html_url":"https://github.com/holyshared/i18n-checker","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fi18n-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fi18n-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fi18n-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holyshared%2Fi18n-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holyshared","download_url":"https://codeload.github.com/holyshared/i18n-checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240549397,"owners_count":19819139,"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","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":["checker","haml","i18n","locale","ruby"],"created_at":"2025-02-24T20:08:17.228Z","updated_at":"2026-06-17T15:32:10.199Z","avatar_url":"https://github.com/holyshared.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# i18n-checker\n\n[![Build Status](https://travis-ci.org/holyshared/i18n-checker.svg?branch=master)](https://travis-ci.org/holyshared/i18n-checker)\n[![Coverage Status](https://coveralls.io/repos/github/holyshared/i18n-checker/badge.svg?branch=master)](https://coveralls.io/github/holyshared/i18n-checker?branch=master)\n\n![Screen shot](https://github.com/holyshared/i18n-checker/blob/master/screenshot.png?raw=true)\n\nThis gem provides a **Rake task** to check translation file mistakes and translated text references from template files etc.\n\nCurrent version supports Ruby source code, Haml template file.\n\n* Ruby source\n* Haml template\n\n## Basic usage\n\nDetected out of reference text, Delete unused translation text at once.  \nAdd the following tasks to your **Rakefile**.\n\n```ruby\nrequire 'i18n_checker/rake_task'\n\nI18nChecker::RakeTask::ReferenceCheck.new do |task|\n  task.source_paths = FileList['app/models/*', 'app/views/*'] # haml templates, ruby sources\n  task.locale_file_paths = FileList['config/locales/*'] # locale file paths\nend\n\nI18nChecker::RakeTask::UnusedCheck do |task|\n  task.source_paths = FileList['app/models/*', 'app/views/*'] # haml templates, ruby sources\n  task.locale_file_paths = FileList['config/locales/*'] # locale file paths\nend\n```\n\nAfter that we just execute the task.\n\n```shell\nbundle exec rake locale_reference_check\nbundle exec rake locale_unused_check\n```\n\n## Check translation of translated text\n\nDetect translated text references that are broken.  \nIt is useful for detecting text that is not in the translation file of a particular language.\n\n```ruby\nrequire 'i18n_checker/rake_task'\n\nI18nChecker::RakeTask::ReferenceCheck.new do |task|\n  task.source_paths = FileList['app/models/*', 'app/views/*'] # haml templates, ruby sources\n  task.locale_file_paths = FileList['config/locales/*'] # locale file paths\nend\n```\n\nAfter that we just execute the task.\n\n```shell\nbundle exec rake locale_reference_check\n```\n\n## Delete unused translated text\n\nUsing the **locale_clean** task you can delete unused translated text from the file.  \nSince you can delete translated text that you do not use safely, you can reduce the maintenance cost by running it periodically.\n\n```ruby\nrequire 'i18n_checker/rake_task'\n\nI18nChecker::RakeTask::UnusedClean do |task|\n  task.source_paths = FileList['app/models/*', 'app/views/*'] # haml templates, ruby sources\n  task.locale_file_paths = FileList['config/locales/*'] # locale file paths\nend\n```\n\nAfter that we just execute the task.\n\n```shell\nbundle exec rake locale_unused_clean\n```\n\n## Run the test\n\n```shell\nbundle install\nbundle exec rake spec\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Fi18n-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholyshared%2Fi18n-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholyshared%2Fi18n-checker/lists"}