{"action":"created","issue":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/213","labels_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/213/comments","events_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/213/events","html_url":"https://github.com/Textalk/angular-schema-form/issues/213","id":54343956,"number":213,"title":"Translation support?","user":{"login":"stramel","id":855184,"avatar_url":"https://avatars.githubusercontent.com/u/855184?v=3","gravatar_id":"","url":"https://api.github.com/users/stramel","html_url":"https://github.com/stramel","followers_url":"https://api.github.com/users/stramel/followers","following_url":"https://api.github.com/users/stramel/following{/other_user}","gists_url":"https://api.github.com/users/stramel/gists{/gist_id}","starred_url":"https://api.github.com/users/stramel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stramel/subscriptions","organizations_url":"https://api.github.com/users/stramel/orgs","repos_url":"https://api.github.com/users/stramel/repos","events_url":"https://api.github.com/users/stramel/events{/privacy}","received_events_url":"https://api.github.com/users/stramel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Textalk/angular-schema-form/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-14T16:37:54Z","updated_at":"2015-01-15T14:30:37Z","closed_at":null,"body":"I am having a hard time of figuring out how one would be able to use something like [Angular Translate][at] to translate titles, placeholders, validationMessages etc. I've thought about overriding all the templates but that would be a pain to upkeep. I have tried using a function to translate the fields needed before it hits the HTML form, but the data isn't always there by that point. I have also tried waiting until the data is in place, but the form has already been rendered at that point. \r\n\r\nAny thoughts and/or suggestions would be greatly appreciated!\r\n\r\n\r\n\r\n[at]: http://angular-translate.github.io/"},"comment":{"url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/comments/70092816","html_url":"https://github.com/Textalk/angular-schema-form/issues/213#issuecomment-70092816","issue_url":"https://api.github.com/repos/Textalk/angular-schema-form/issues/213","id":70092816,"user":{"login":"davidlgj","id":151694,"avatar_url":"https://avatars.githubusercontent.com/u/151694?v=3","gravatar_id":"","url":"https://api.github.com/users/davidlgj","html_url":"https://github.com/davidlgj","followers_url":"https://api.github.com/users/davidlgj/followers","following_url":"https://api.github.com/users/davidlgj/following{/other_user}","gists_url":"https://api.github.com/users/davidlgj/gists{/gist_id}","starred_url":"https://api.github.com/users/davidlgj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidlgj/subscriptions","organizations_url":"https://api.github.com/users/davidlgj/orgs","repos_url":"https://api.github.com/users/davidlgj/repos","events_url":"https://api.github.com/users/davidlgj/events{/privacy}","received_events_url":"https://api.github.com/users/davidlgj/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T14:30:37Z","updated_at":"2015-01-15T14:30:37Z","body":"Adding an empty directive and filter is a possible solution. But it will\r\nneed a service as well for those times when you need to translate a sting\r\nin a add-on.\r\n\r\nI guess we could do that but what I really don't get is why you just don't\r\nwait for the translations to be loaded before you add schema and form to\r\nscope?\r\n\r\nThat way you can translate schema and form definition beforehand or safely\r\ndo it in a `postProcess`\r\n\r\nThu Jan 15 2015 at 15:13:16 skrev Michael Stramel <notifications@github.com\r\n>:\r\n\r\n@davidlgj <https://github.com/davidlgj> @Dervisevic\r\n> <https://github.com/Dervisevic> I have been trying to do the postProcess\r\n> function that translates every title but since the data is coming from the\r\n> server asynchronously. The data isn't necessarily there at the time.\r\n>\r\n> I was wondering if it would make sense to add a | translate/ translate\r\n> directive to all existing templates. Then during initialization check if\r\n> the translate filter/directive is defined, if not define them as pass\r\n> through functions? This would allow users to take advantage of their\r\n> defined translate functionality and the other users wouldn't have to worry\r\n> about it.\r\n>\r\n> Also, I had seen gettext, but not Jed, thanks for sharing!\r\n>\r\n> —\r\n> Reply to this email directly or view it on GitHub\r\n> <https://github.com/Textalk/angular-schema-form/issues/213#issuecomment-70090467>\r\n> .\r\n>"}}