{"action":"opened","issue":{"url":"https://api.github.com/repos/mashpie/i18n-node/issues/271","repository_url":"https://api.github.com/repos/mashpie/i18n-node","labels_url":"https://api.github.com/repos/mashpie/i18n-node/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/mashpie/i18n-node/issues/271/comments","events_url":"https://api.github.com/repos/mashpie/i18n-node/issues/271/events","html_url":"https://github.com/mashpie/i18n-node/issues/271","id":179244497,"number":271,"title":"Expose applyAPItoObject?","user":{"login":"misterdai","id":209023,"avatar_url":"https://avatars.githubusercontent.com/u/209023?v=3","gravatar_id":"","url":"https://api.github.com/users/misterdai","html_url":"https://github.com/misterdai","followers_url":"https://api.github.com/users/misterdai/followers","following_url":"https://api.github.com/users/misterdai/following{/other_user}","gists_url":"https://api.github.com/users/misterdai/gists{/gist_id}","starred_url":"https://api.github.com/users/misterdai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/misterdai/subscriptions","organizations_url":"https://api.github.com/users/misterdai/orgs","repos_url":"https://api.github.com/users/misterdai/repos","events_url":"https://api.github.com/users/misterdai/events{/privacy}","received_events_url":"https://api.github.com/users/misterdai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-26T14:28:52Z","updated_at":"2016-09-26T14:28:52Z","closed_at":null,"body":"Hi.  I'm currently using the Sequelize ORM for Node.js, along this fantastic i18n module.  However, I've got validation messages against my database models that need translating but at that depth I don't have access to the req / res scopes.\r\n\r\nMy idea is to at least set the locale against the model, so it has the awareness to translate the messages.  The problem I'm running into is I don't want to use the global i18n as I'm worried it's state may be changed by other requests, mid translation (unlikely but just in case).  After seeing how it's handled for express with the internal `applyAPItoObject` function, I was curious if there's any chance of this being exposed?  That was I can easily create a sort term instance based off the main i18n one, and set it to the correct locale for translation."}}
{"actor":{"display_login":"misterdai"}}