{"id":23744971,"url":"https://github.com/wheeyls/rails-locale-sorting","last_synced_at":"2025-09-04T19:32:17.753Z","repository":{"id":2358054,"uuid":"3321440","full_name":"wheeyls/Rails-Locale-Sorting","owner":"wheeyls","description":"Manage and Sort the Locale yml files in a rails project","archived":false,"fork":false,"pushed_at":"2012-04-09T18:48:57.000Z","size":117,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-08T19:11:57.348Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wheeyls.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-01T03:07:59.000Z","updated_at":"2024-04-08T19:11:57.349Z","dependencies_parsed_at":"2022-08-26T16:00:15.196Z","dependency_job_id":null,"html_url":"https://github.com/wheeyls/Rails-Locale-Sorting","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2FRails-Locale-Sorting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2FRails-Locale-Sorting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2FRails-Locale-Sorting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wheeyls%2FRails-Locale-Sorting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wheeyls","download_url":"https://codeload.github.com/wheeyls/Rails-Locale-Sorting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231987772,"owners_count":18456475,"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":[],"created_at":"2024-12-31T12:51:27.992Z","updated_at":"2024-12-31T12:51:30.372Z","avatar_url":"https://github.com/wheeyls.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rails Locale Sorter\n===================\nThis is a small utility to assist in handling your I18n YAML files in a Ruby on Rails project.\n\nInstallation\n============\n```\n$ gem install rails_locale_sorter\n```\n\nCreating/Applying Patches\n=========================\nTo create a patch, just provide input and output directories, and a \"source of truth\" locale that will be the template for the other languages.\n\n```\n$ locale_patch path/to/locales path/to/output en.yml\n```\n\nThe output directory will now contain a list of YAML files containing missing translations.\n\nOnce the strings have been translated, they can be applied back into your project:\n\n```\n$ locale_apply path/to/translated_patches path/to/locales\n```\nThe patching process also sorts the file's content alphabetically.\n\nDefaults\n========\nThese commands default to \"locales/\", \"new-locales/\", and \"en.yml\". Meaning that all you need to do to run through the entire process is:\n\n```\n$ cd my_rails_app/config\n$ locale_patch\n$ locale_apply\n```\n\nOr use the handy, descriptive aliases:\n\n```\n$ cd my_rails_app/config\n$ poop\n$ scoop\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwheeyls%2Frails-locale-sorting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwheeyls%2Frails-locale-sorting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwheeyls%2Frails-locale-sorting/lists"}