{"action":"created","issue":{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/124","repository_url":"https://api.github.com/repos/AliSoftware/SwiftGen","labels_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/124/comments","events_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/124/events","html_url":"https://github.com/AliSoftware/SwiftGen/pull/124","id":158112928,"number":124,"title":"Add strings template for compatibility with genstrings workflow","user":{"login":"akaralar","id":309655,"avatar_url":"https://avatars.githubusercontent.com/u/309655?v=3","gravatar_id":"","url":"https://api.github.com/users/akaralar","html_url":"https://github.com/akaralar","followers_url":"https://api.github.com/users/akaralar/followers","following_url":"https://api.github.com/users/akaralar/following{/other_user}","gists_url":"https://api.github.com/users/akaralar/gists{/gist_id}","starred_url":"https://api.github.com/users/akaralar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaralar/subscriptions","organizations_url":"https://api.github.com/users/akaralar/orgs","repos_url":"https://api.github.com/users/akaralar/repos","events_url":"https://api.github.com/users/akaralar/events{/privacy}","received_events_url":"https://api.github.com/users/akaralar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/labels/status:%20awaiting%20input","name":"status: awaiting input","color":"fbca04"},{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/labels/type:%20enhancement","name":"type: enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/milestones/9","html_url":"https://github.com/AliSoftware/SwiftGen/milestones/2.1.0","labels_url":"https://api.github.com/repos/AliSoftware/SwiftGen/milestones/9/labels","id":1853537,"number":9,"title":"2.1.0","description":"","creator":{"login":"AliSoftware","id":216089,"avatar_url":"https://avatars.githubusercontent.com/u/216089?v=3","gravatar_id":"","url":"https://api.github.com/users/AliSoftware","html_url":"https://github.com/AliSoftware","followers_url":"https://api.github.com/users/AliSoftware/followers","following_url":"https://api.github.com/users/AliSoftware/following{/other_user}","gists_url":"https://api.github.com/users/AliSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/AliSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliSoftware/subscriptions","organizations_url":"https://api.github.com/users/AliSoftware/orgs","repos_url":"https://api.github.com/users/AliSoftware/repos","events_url":"https://api.github.com/users/AliSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/AliSoftware/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":1,"state":"open","created_at":"2016-06-28T19:37:49Z","updated_at":"2016-07-10T19:42:51Z","due_on":"2016-07-16T22:00:00Z","closed_at":null},"comments":7,"created_at":"2016-06-02T10:53:07Z","updated_at":"2016-07-10T19:44:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/pulls/124","html_url":"https://github.com/AliSoftware/SwiftGen/pull/124","diff_url":"https://github.com/AliSoftware/SwiftGen/pull/124.diff","patch_url":"https://github.com/AliSoftware/SwiftGen/pull/124.patch"},"body":"Hey,\r\n\r\nThanks for this great tool and support for the fonts! I added a strings template to support a particular workflow regarding strings.\r\n\r\n`genstrings` tool extracts all strings in `NSLocalizedString` calls into a `Localizable.strings` file.\r\nWith the current templates, the created strings file doesn't list `NSLocalizedString`s for each case, therefore we can not use `genstrings` for `Localizable.strings` creation, hence we need to update it manually ourselves each time we add a new string to the app.\r\n\r\nWith this template, the default template is modified only slightly so that each case makes a call to `NSLocalizedString`. \r\nTherefore we can work like this: \r\n\r\n- When coding, enter your new string as a call to `NSLocalizedString` ie. `self.titleLabel.text = NSLocalizedString(\"new string\")`\r\n- run `genstrings`\r\n- run `swiftgen`\r\n- replace the `NSLocalizedString(\"new string\")` with the newly created string enum case.\r\n"},"comment":{"url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/comments/231607032","html_url":"https://github.com/AliSoftware/SwiftGen/pull/124#issuecomment-231607032","issue_url":"https://api.github.com/repos/AliSoftware/SwiftGen/issues/124","id":231607032,"user":{"login":"AliSoftware","id":216089,"avatar_url":"https://avatars.githubusercontent.com/u/216089?v=3","gravatar_id":"","url":"https://api.github.com/users/AliSoftware","html_url":"https://github.com/AliSoftware","followers_url":"https://api.github.com/users/AliSoftware/followers","following_url":"https://api.github.com/users/AliSoftware/following{/other_user}","gists_url":"https://api.github.com/users/AliSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/AliSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliSoftware/subscriptions","organizations_url":"https://api.github.com/users/AliSoftware/orgs","repos_url":"https://api.github.com/users/AliSoftware/repos","events_url":"https://api.github.com/users/AliSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/AliSoftware/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T19:44:50Z","updated_at":"2016-07-10T19:44:50Z","body":"@akaralar any news on this? I'm planning on releasing 2.1.0 in a few days (probably next week-end), it would be awesome if I could include your template in it!"}}
{"actor":{"display_login":"AliSoftware"}}