{"action":"opened","issue":{"url":"https://api.github.com/repos/AaronLasseigne/active_interaction/issues/452","repository_url":"https://api.github.com/repos/AaronLasseigne/active_interaction","labels_url":"https://api.github.com/repos/AaronLasseigne/active_interaction/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/AaronLasseigne/active_interaction/issues/452/comments","events_url":"https://api.github.com/repos/AaronLasseigne/active_interaction/issues/452/events","html_url":"https://github.com/AaronLasseigne/active_interaction/issues/452","id":394055029,"node_id":"MDU6SXNzdWUzOTQwNTUwMjk=","number":452,"title":"Is there a way to prevent error strings from localizing?","user":{"login":"arianf","id":7397857,"node_id":"MDQ6VXNlcjczOTc4NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/7397857?v=4","gravatar_id":"","url":"https://api.github.com/users/arianf","html_url":"https://github.com/arianf","followers_url":"https://api.github.com/users/arianf/followers","following_url":"https://api.github.com/users/arianf/following{/other_user}","gists_url":"https://api.github.com/users/arianf/gists{/gist_id}","starred_url":"https://api.github.com/users/arianf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arianf/subscriptions","organizations_url":"https://api.github.com/users/arianf/orgs","repos_url":"https://api.github.com/users/arianf/repos","events_url":"https://api.github.com/users/arianf/events{/privacy}","received_events_url":"https://api.github.com/users/arianf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-25T23:15:01Z","updated_at":"2018-12-25T23:15:01Z","closed_at":null,"author_association":"NONE","body":"This is cool and all if you are bubbling up the error to the user\r\n\r\n```ruby\r\nclass I18nInteraction < ActiveInteraction::Base\r\n  string :name\r\nend\r\n\r\nI18nInteraction.run(name: false).errors.messages[:name]\r\n# => [\"is not a valid string\"]\r\n\r\nI18n.locale = :hsilgne\r\nI18nInteraction.run(name: false).errors.messages[:name]\r\n# => [\"gnirts dilav a ton si\"]\r\n```\r\n\r\nBut is there a way to turn this off, if you plan to raise the error? Doesn't make sense just because the user was using French, for the error message to be in French when all the code we write is in English lol especially since we use Sentry to aggregate our error messages.\r\n\r\n```ruby\r\nI18n.locale = :fr\r\nI18nInteraction.run!(name: false)\r\nActiveInteraction::InvalidInteractionError (Name a un type invalide (chaîne de caractères))\r\n```\r\n"}}
{"actor":{"display_login":"arianf"}}