{"action":"created","issue":{"url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms/issues/335","repository_url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms","labels_url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms/issues/335/comments","events_url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms/issues/335/events","html_url":"https://github.com/bootstrap-ruby/rails-bootstrap-forms/issues/335","id":239415208,"number":335,"title":"i18n translations for labels","user":{"login":"sekrett","id":264848,"avatar_url":"https://avatars6.githubusercontent.com/u/264848?v=4","gravatar_id":"","url":"https://api.github.com/users/sekrett","html_url":"https://github.com/sekrett","followers_url":"https://api.github.com/users/sekrett/followers","following_url":"https://api.github.com/users/sekrett/following{/other_user}","gists_url":"https://api.github.com/users/sekrett/gists{/gist_id}","starred_url":"https://api.github.com/users/sekrett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sekrett/subscriptions","organizations_url":"https://api.github.com/users/sekrett/orgs","repos_url":"https://api.github.com/users/sekrett/repos","events_url":"https://api.github.com/users/sekrett/events{/privacy}","received_events_url":"https://api.github.com/users/sekrett/received_events","type":"User","site_admin":false},"labels":[{"id":402819461,"url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms/labels/bug?","name":"bug?","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-06-29T09:18:21Z","updated_at":"2017-07-16T17:59:01Z","closed_at":"2017-07-16T17:59:01Z","body":"I don't understand why this does not work?\r\n\r\nRails 5.1.2\r\nbootstrap_form 2.7.0\r\n\r\n```yaml\r\nru:\r\n  activerecord:\r\n    attributes:\r\n      email_queue:\r\n        name: Название\r\n```\r\n\r\nWhen I replace `attributes` with `help` it works but it is a different thing, I need labels. Readme says \"bootstrap_form follows standard rails conventions so it's i18n-ready\" but it does not.\r\n\r\nOf course I could do:\r\n\r\n```= f.text_field :name, label: t('activerecord.attributes.email_queue.name')```\r\n\r\nbut it makes forms heavy."},"comment":{"url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms/issues/comments/315625722","html_url":"https://github.com/bootstrap-ruby/rails-bootstrap-forms/issues/335#issuecomment-315625722","issue_url":"https://api.github.com/repos/bootstrap-ruby/rails-bootstrap-forms/issues/335","id":315625722,"user":{"login":"mattbrictson","id":189693,"avatar_url":"https://avatars4.githubusercontent.com/u/189693?v=4","gravatar_id":"","url":"https://api.github.com/users/mattbrictson","html_url":"https://github.com/mattbrictson","followers_url":"https://api.github.com/users/mattbrictson/followers","following_url":"https://api.github.com/users/mattbrictson/following{/other_user}","gists_url":"https://api.github.com/users/mattbrictson/gists{/gist_id}","starred_url":"https://api.github.com/users/mattbrictson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattbrictson/subscriptions","organizations_url":"https://api.github.com/users/mattbrictson/orgs","repos_url":"https://api.github.com/users/mattbrictson/repos","events_url":"https://api.github.com/users/mattbrictson/events{/privacy}","received_events_url":"https://api.github.com/users/mattbrictson/received_events","type":"User","site_admin":false},"created_at":"2017-07-16T17:59:01Z","updated_at":"2017-07-16T17:59:01Z","body":"> activerecord/attributes also should work\r\n\r\nThat's what the documentation says, but I couldn't get it to work even with plain Rails (i.e. no `bootstrap_form`). The `helpers` approach definitely works.\r\n\r\nI'll close this because I don't believe it is a `bootstrap_form`-specific issue."}}
{"actor":{"display_login":"mattbrictson"}}