{"id":15405157,"url":"https://github.com/fnando/i18n-dot_lookup","last_synced_at":"2025-03-28T01:52:31.013Z","repository":{"id":36153069,"uuid":"40457105","full_name":"fnando/i18n-dot_lookup","owner":"fnando","description":"Allow interpolation to be performed on a object's attribute, e.g. %{user.name}","archived":false,"fork":false,"pushed_at":"2020-09-24T22:51:26.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-02T06:51:49.247Z","etag":null,"topics":["i18n","interpolation","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/fnando.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["fnando"],"custom":["https://www.paypal.me/nandovieira/🍕"]}},"created_at":"2015-08-10T01:31:35.000Z","updated_at":"2020-09-24T22:53:52.000Z","dependencies_parsed_at":"2022-07-22T19:31:07.337Z","dependency_job_id":null,"html_url":"https://github.com/fnando/i18n-dot_lookup","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fi18n-dot_lookup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fi18n-dot_lookup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fi18n-dot_lookup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnando%2Fi18n-dot_lookup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnando","download_url":"https://codeload.github.com/fnando/i18n-dot_lookup/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245955191,"owners_count":20699889,"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":["i18n","interpolation","ruby"],"created_at":"2024-10-01T16:15:16.717Z","updated_at":"2025-03-28T01:52:30.988Z","avatar_url":"https://github.com/fnando.png","language":"Ruby","funding_links":["https://github.com/sponsors/fnando","https://www.paypal.me/nandovieira/🍕"],"categories":[],"sub_categories":[],"readme":"# i18n-dot_lookup\n\n[![Travis-CI](https://travis-ci.org/fnando/i18n-dot_lookup.svg)](https://travis-ci.org/fnando/i18n-dot_lookup)\n[![Code Climate](https://codeclimate.com/github/fnando/i18n-dot_lookup/badges/gpa.svg)](https://codeclimate.com/github/fnando/i18n-dot_lookup)\n[![Gem](https://img.shields.io/gem/v/i18n-dot_lookup.svg)](https://rubygems.org/gems/i18n-dot_lookup)\n[![Gem](https://img.shields.io/gem/dt/i18n-dot_lookup.svg)](https://rubygems.org/gems/i18n-dot_lookup)\n\nEver wanted to get properties from an object, like `%{user.name}`? Now you can!\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem \"i18n-dot_lookup\"\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install i18n-dot_lookup\n\n## Usage\n\n```ruby\nrequire \"i18n-dot_lookup\"\nrequire \"ostruct\"\n\n# You don't need to do this, but can use it to test on your console.\nI18n.backend.store_translations :en, {hello: \"hello %{user.name}\"}\n\n# The user object will probably come from your database\nI18n.t :hello, user: OpenStruct.new(name: \"john\")\n#=\u003e hello john\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`rake test` to run the tests. You can also run `bin/console` for an interactive\nprompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To\nrelease a new version, update the version number in `version.rb`, and then run\n`bundle exec rake release`, which will create a git tag for the version, push\ngit commits and tags, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/fnando/i18n-dot_lookup. This project is intended to be a\nsafe, welcoming space for collaboration, and contributors are expected to adhere\nto 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\n[MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fi18n-dot_lookup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnando%2Fi18n-dot_lookup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnando%2Fi18n-dot_lookup/lists"}