{"id":19575058,"url":"https://github.com/chief/tools_for_locales","last_synced_at":"2025-04-27T06:30:45.272Z","repository":{"id":2313660,"uuid":"3273464","full_name":"chief/tools_for_locales","owner":"chief","description":"A collection of tools for handling locales in a rails project","archived":false,"fork":false,"pushed_at":"2014-01-02T13:21:09.000Z","size":107,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T15:16:42.863Z","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/chief.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-01-26T11:59:20.000Z","updated_at":"2014-01-02T13:21:12.000Z","dependencies_parsed_at":"2022-08-26T22:30:53.558Z","dependency_job_id":null,"html_url":"https://github.com/chief/tools_for_locales","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chief%2Ftools_for_locales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chief%2Ftools_for_locales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chief%2Ftools_for_locales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chief%2Ftools_for_locales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chief","download_url":"https://codeload.github.com/chief/tools_for_locales/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251098531,"owners_count":21536083,"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-11-11T06:45:36.102Z","updated_at":"2025-04-27T06:30:45.005Z","avatar_url":"https://github.com/chief.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ToolsForLocales\n\n## Description\n\nA small collection of tools for locales wannabe project. Currently supports only\nsort_tokens.\n\n## Sort Tokens\n\nWhen working with lot of tokens it's best practice to arrange the keys in\nalphabetical order. That is what this task does.\n\nGive a yaml file like this:\n\n```ruby\n  en:\n    admin:\n      menu:\n        company: \"Company\"\n        about_us: \"About Us\"\n      flashes:\n        success: \"Success\"\n        failure: \"Failure\"\n```\n\nThe result will be:\n\n```ruby\n  en:\n    admin:\n      flashes:\n        failure: Failure\n        success: Success\n      menu:\n        about_us: About Us\n        company: Company\n```\n\nThis method uses the default `to_yaml` formatting options.\n\n## Install\n\n```ruby\n  gem 'tools_for_locales'\n```\n\n## Usage\n\n```ruby\n  rake tools_for_locales:sort_tokens\n```\n\n*WARNING*:\n\nAll locale files will be overwritten\n\n## Tests\n\n```ruby\n  rspec spec/\n```\n\n## License\n\ntools_for_locales is released under the [MIT License](http://opensource.org/licenses/MIT)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchief%2Ftools_for_locales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchief%2Ftools_for_locales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchief%2Ftools_for_locales/lists"}