{"action":"created","issue":{"url":"https://api.github.com/repos/mac-cain13/R.swift/issues/294","repository_url":"https://api.github.com/repos/mac-cain13/R.swift","labels_url":"https://api.github.com/repos/mac-cain13/R.swift/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/mac-cain13/R.swift/issues/294/comments","events_url":"https://api.github.com/repos/mac-cain13/R.swift/issues/294/events","html_url":"https://github.com/mac-cain13/R.swift/issues/294","id":194457481,"number":294,"title":"Localized strings with named parameters from .strings file","user":{"login":"SpacyRicochet","id":904596,"avatar_url":"https://avatars.githubusercontent.com/u/904596?v=3","gravatar_id":"","url":"https://api.github.com/users/SpacyRicochet","html_url":"https://github.com/SpacyRicochet","followers_url":"https://api.github.com/users/SpacyRicochet/followers","following_url":"https://api.github.com/users/SpacyRicochet/following{/other_user}","gists_url":"https://api.github.com/users/SpacyRicochet/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacyRicochet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacyRicochet/subscriptions","organizations_url":"https://api.github.com/users/SpacyRicochet/orgs","repos_url":"https://api.github.com/users/SpacyRicochet/repos","events_url":"https://api.github.com/users/SpacyRicochet/events{/privacy}","received_events_url":"https://api.github.com/users/SpacyRicochet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T22:07:00Z","updated_at":"2016-12-09T08:56:02Z","closed_at":null,"body":"Instead of only generating named parameters for localised string functions if they're taken from a stringsdict file, you could also add a rule/option that generates named functions from keys as well.\r\n\r\nFor example;\r\n\r\n```\"test_string_amount%@\" = \"A test string with amount '%@'\";```\r\n\r\nCould be used like this;\r\n\r\n```R.string.localizable.testString(amount: \"3\")```"},"comment":{"url":"https://api.github.com/repos/mac-cain13/R.swift/issues/comments/265964659","html_url":"https://github.com/mac-cain13/R.swift/issues/294#issuecomment-265964659","issue_url":"https://api.github.com/repos/mac-cain13/R.swift/issues/294","id":265964659,"user":{"login":"mac-cain13","id":618233,"avatar_url":"https://avatars.githubusercontent.com/u/618233?v=3","gravatar_id":"","url":"https://api.github.com/users/mac-cain13","html_url":"https://github.com/mac-cain13","followers_url":"https://api.github.com/users/mac-cain13/followers","following_url":"https://api.github.com/users/mac-cain13/following{/other_user}","gists_url":"https://api.github.com/users/mac-cain13/gists{/gist_id}","starred_url":"https://api.github.com/users/mac-cain13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mac-cain13/subscriptions","organizations_url":"https://api.github.com/users/mac-cain13/orgs","repos_url":"https://api.github.com/users/mac-cain13/repos","events_url":"https://api.github.com/users/mac-cain13/events{/privacy}","received_events_url":"https://api.github.com/users/mac-cain13/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T08:56:02Z","updated_at":"2016-12-09T08:56:02Z","body":"Interesting idea, thanks for the suggestion! \r\n\r\nWe should describe how this behaviour works and it shouldn't be confusing for users, but the example looks quite elegant.\r\n\r\n@tomlokhorst what do you think?\r\n"}}
{"actor":{"display_login":"mac-cain13"}}