{"id":21539831,"url":"https://github.com/richardvenneman/rails_admin_json_translate","last_synced_at":"2025-04-10T03:26:37.520Z","repository":{"id":56890406,"uuid":"84736506","full_name":"richardvenneman/rails_admin_json_translate","owner":"richardvenneman","description":":books: Integrate json_translate into rails_admin","archived":false,"fork":false,"pushed_at":"2020-01-15T15:15:32.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T04:43:39.035Z","etag":null,"topics":["admin","i18n","json","jsonb","rails","rails-admin","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/richardvenneman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-12T15:33:50.000Z","updated_at":"2017-03-12T16:48:29.000Z","dependencies_parsed_at":"2022-08-20T15:20:49.465Z","dependency_job_id":null,"html_url":"https://github.com/richardvenneman/rails_admin_json_translate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardvenneman%2Frails_admin_json_translate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardvenneman%2Frails_admin_json_translate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardvenneman%2Frails_admin_json_translate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardvenneman%2Frails_admin_json_translate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardvenneman","download_url":"https://codeload.github.com/richardvenneman/rails_admin_json_translate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248150055,"owners_count":21055851,"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":["admin","i18n","json","jsonb","rails","rails-admin","ruby"],"created_at":"2024-11-24T04:16:30.514Z","updated_at":"2025-04-10T03:26:37.496Z","avatar_url":"https://github.com/richardvenneman.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RailsAdminJsonTranslate\nThis gem integrates [json_translate](https://github.com/cfabianski/json_translate) into [rails_admin](https://github.com/sferik/rails_admin). It aims to provide a reasonably good interface for managing translations. It does so by grouping translations into a tabbed interface, having full language names and accompanying [country flags](https://github.com/richardvenneman/emoji_flag) allowing for good scannability.\n\n[![Travis](https://img.shields.io/travis/richardvenneman/rails_admin_json_translate.svg?style=flat-square)](https://travis-ci.org/richardvenneman/rails_admin_json_translate)\n[![Gem](https://img.shields.io/gem/v/rails_admin_json_translate.svg?style=flat-square)](https://rubygems.org/gems/rails_admin_json_translate)\n\n![screenshot](https://cloud.githubusercontent.com/assets/75705/23833356/7c448ddc-0744-11e7-83fc-22eb1851d060.png)\n\n## Usage\nFirst make sure you've setup [json_translate](https://github.com/cfabianski/json_translate) for your models. You'll then need update your rails_admin configuration:\n\n```ruby\nRailsAdmin.config do |config|\n  ...\n\n  config.model 'Post' do\n    configure :title_translations, :json_translate\n\n    # Overriding locales\n    configure :body_translations, :json_translate do\n      locales [:nl, :zh]\n    end\n  end\nend\n```\n\nBy default, rails_admin_json_translate uses the `I18n.available_locales` locales to create the tabbed interface. However you can specify the locales to use on a per-field basis as shown above.\n\n## Installation\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rails_admin_json_translate'\n```\n\nAnd then execute:\n```bash\n$ bundle\n```\n\n## License\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardvenneman%2Frails_admin_json_translate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardvenneman%2Frails_admin_json_translate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardvenneman%2Frails_admin_json_translate/lists"}