{"action":"closed","issue":{"url":"https://api.github.com/repos/ptaoussanis/tempura/issues/17","repository_url":"https://api.github.com/repos/ptaoussanis/tempura","labels_url":"https://api.github.com/repos/ptaoussanis/tempura/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/ptaoussanis/tempura/issues/17/comments","events_url":"https://api.github.com/repos/ptaoussanis/tempura/issues/17/events","html_url":"https://github.com/ptaoussanis/tempura/issues/17","id":273419139,"number":17,"title":"Selmer integration/tag?","user":{"login":"Sgoettschkes","id":628796,"avatar_url":"https://avatars1.githubusercontent.com/u/628796?v=4","gravatar_id":"","url":"https://api.github.com/users/Sgoettschkes","html_url":"https://github.com/Sgoettschkes","followers_url":"https://api.github.com/users/Sgoettschkes/followers","following_url":"https://api.github.com/users/Sgoettschkes/following{/other_user}","gists_url":"https://api.github.com/users/Sgoettschkes/gists{/gist_id}","starred_url":"https://api.github.com/users/Sgoettschkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sgoettschkes/subscriptions","organizations_url":"https://api.github.com/users/Sgoettschkes/orgs","repos_url":"https://api.github.com/users/Sgoettschkes/repos","events_url":"https://api.github.com/users/Sgoettschkes/events{/privacy}","received_events_url":"https://api.github.com/users/Sgoettschkes/received_events","type":"User","site_admin":false},"labels":[{"id":389537306,"url":"https://api.github.com/repos/ptaoussanis/tempura/labels/question/usage","name":"question/usage","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-13T12:53:25Z","updated_at":"2018-03-11T12:04:14Z","closed_at":"2018-03-11T12:04:14Z","author_association":"NONE","body":"I'm trying to add i18n to an existing app which was build with compojure and selmer as the templating engine. My current approach is to pass a (big) hashmap of variables to selmer representing the translated resources.\r\n\r\nThere would be two easier solutions:\r\n\r\n1. Pass all resources to selmer by preparing a hashmap of all resources using the keys from the dictionary\r\n2. Using a selmer tag which calls the tr function.\r\n\r\nI believe 2 would be easier to understand and would translate well to places where html/variables need to be injected into the resource."}}
{"actor":{"display_login":"ptaoussanis"}}