{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/comments/213680754","pull_request_review_id":150562644,"id":213680754,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzY4MDc1NA==","diff_hunk":"@@ -1,13 +1,20 @@\n+using System.Globalization;\n using Microsoft.AspNetCore.Mvc;\n+using Microsoft.AspNetCore.Mvc.Localization;\n \n namespace training_net.Controllers\n {\n     public class HelloWorldController : Controller\n     {\n+        private readonly IHtmlLocalizer<HelloWorldController> _localizer;\n+        public HelloWorldController(IHtmlLocalizer<HelloWorldController> localizer)\n+        {\n+            this._localizer = localizer;\n+        }\n         public IActionResult Index()\n         {\n-            ViewData[\"firstTitle\"] = \"This title was generated by the CONTROLLER\";\n-            ViewData[\"firstParagraph\"] = \"...and this paragraph too...\";\n+            ViewData[\"Title\"] = _localizer[\"HelloWorldTitle\"].Value;            ","path":"training-net/src/Controllers/HelloWorldController.cs","position":18,"original_position":18,"commit_id":"e9d21bd4a4dcfb153aba8ba3aebf14fd09bb695e","original_commit_id":"1759ebaf7f979643b202e6fb94f4d98e261d893e","user":{"login":"truccomarcos","id":16925524,"node_id":"MDQ6VXNlcjE2OTI1NTI0","avatar_url":"https://avatars0.githubusercontent.com/u/16925524?v=4","gravatar_id":"","url":"https://api.github.com/users/truccomarcos","html_url":"https://github.com/truccomarcos","followers_url":"https://api.github.com/users/truccomarcos/followers","following_url":"https://api.github.com/users/truccomarcos/following{/other_user}","gists_url":"https://api.github.com/users/truccomarcos/gists{/gist_id}","starred_url":"https://api.github.com/users/truccomarcos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truccomarcos/subscriptions","organizations_url":"https://api.github.com/users/truccomarcos/orgs","repos_url":"https://api.github.com/users/truccomarcos/repos","events_url":"https://api.github.com/users/truccomarcos/events{/privacy}","received_events_url":"https://api.github.com/users/truccomarcos/received_events","type":"User","site_admin":false},"body":"Try using the localizer as a property (same way we did we UnitOfWork)","created_at":"2018-08-29T13:40:08Z","updated_at":"2018-08-29T13:48:11Z","html_url":"https://github.com/wolox-training/mp-net-core/pull/20#discussion_r213680754","pull_request_url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/comments/213680754"},"html":{"href":"https://github.com/wolox-training/mp-net-core/pull/20#discussion_r213680754"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20","id":210528335,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwNTI4MzM1","html_url":"https://github.com/wolox-training/mp-net-core/pull/20","diff_url":"https://github.com/wolox-training/mp-net-core/pull/20.diff","patch_url":"https://github.com/wolox-training/mp-net-core/pull/20.patch","issue_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues/20","number":20,"state":"open","locked":false,"title":"08 - Internationalisation","user":{"login":"mar7in91Wolox","id":41923143,"node_id":"MDQ6VXNlcjQxOTIzMTQz","avatar_url":"https://avatars2.githubusercontent.com/u/41923143?v=4","gravatar_id":"","url":"https://api.github.com/users/mar7in91Wolox","html_url":"https://github.com/mar7in91Wolox","followers_url":"https://api.github.com/users/mar7in91Wolox/followers","following_url":"https://api.github.com/users/mar7in91Wolox/following{/other_user}","gists_url":"https://api.github.com/users/mar7in91Wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mar7in91Wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mar7in91Wolox/subscriptions","organizations_url":"https://api.github.com/users/mar7in91Wolox/orgs","repos_url":"https://api.github.com/users/mar7in91Wolox/repos","events_url":"https://api.github.com/users/mar7in91Wolox/events{/privacy}","received_events_url":"https://api.github.com/users/mar7in91Wolox/received_events","type":"User","site_admin":false},"body":"# Summary\r\n- I added the .json of three languages (es-AR, fr-FR and en-US)\r\n- **REMEMBER**: the folder _Resources_ must be in _src_ folder.\r\n\r\n# Trello Card\r\nhttps://trello.com/c/bJ33Sxor\r\n\r\n# Screenshots\r\n![image](https://user-images.githubusercontent.com/41923143/44542806-437fbf80-a6e4-11e8-9c07-6664db627ef2.png)\r\n![image](https://user-images.githubusercontent.com/41923143/44542955-a3766600-a6e4-11e8-85c6-491bd0da2a1d.png)\r\n![image](https://user-images.githubusercontent.com/41923143/44542979-b5580900-a6e4-11e8-8827-0ea93aafcfa2.png)\r\n","created_at":"2018-08-23T17:57:20Z","updated_at":"2018-08-29T13:48:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64d66c56bdafa0836360c01e490ea4dd61ffb4df","assignee":{"login":"mar7in91Wolox","id":41923143,"node_id":"MDQ6VXNlcjQxOTIzMTQz","avatar_url":"https://avatars2.githubusercontent.com/u/41923143?v=4","gravatar_id":"","url":"https://api.github.com/users/mar7in91Wolox","html_url":"https://github.com/mar7in91Wolox","followers_url":"https://api.github.com/users/mar7in91Wolox/followers","following_url":"https://api.github.com/users/mar7in91Wolox/following{/other_user}","gists_url":"https://api.github.com/users/mar7in91Wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mar7in91Wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mar7in91Wolox/subscriptions","organizations_url":"https://api.github.com/users/mar7in91Wolox/orgs","repos_url":"https://api.github.com/users/mar7in91Wolox/repos","events_url":"https://api.github.com/users/mar7in91Wolox/events{/privacy}","received_events_url":"https://api.github.com/users/mar7in91Wolox/received_events","type":"User","site_admin":false},"assignees":[{"login":"mar7in91Wolox","id":41923143,"node_id":"MDQ6VXNlcjQxOTIzMTQz","avatar_url":"https://avatars2.githubusercontent.com/u/41923143?v=4","gravatar_id":"","url":"https://api.github.com/users/mar7in91Wolox","html_url":"https://github.com/mar7in91Wolox","followers_url":"https://api.github.com/users/mar7in91Wolox/followers","following_url":"https://api.github.com/users/mar7in91Wolox/following{/other_user}","gists_url":"https://api.github.com/users/mar7in91Wolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mar7in91Wolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mar7in91Wolox/subscriptions","organizations_url":"https://api.github.com/users/mar7in91Wolox/orgs","repos_url":"https://api.github.com/users/mar7in91Wolox/repos","events_url":"https://api.github.com/users/mar7in91Wolox/events{/privacy}","received_events_url":"https://api.github.com/users/mar7in91Wolox/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"gussiciliano","id":19696200,"node_id":"MDQ6VXNlcjE5Njk2MjAw","avatar_url":"https://avatars0.githubusercontent.com/u/19696200?v=4","gravatar_id":"","url":"https://api.github.com/users/gussiciliano","html_url":"https://github.com/gussiciliano","followers_url":"https://api.github.com/users/gussiciliano/followers","following_url":"https://api.github.com/users/gussiciliano/following{/other_user}","gists_url":"https://api.github.com/users/gussiciliano/gists{/gist_id}","starred_url":"https://api.github.com/users/gussiciliano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gussiciliano/subscriptions","organizations_url":"https://api.github.com/users/gussiciliano/orgs","repos_url":"https://api.github.com/users/gussiciliano/repos","events_url":"https://api.github.com/users/gussiciliano/events{/privacy}","received_events_url":"https://api.github.com/users/gussiciliano/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20/commits","review_comments_url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20/comments","review_comment_url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues/20/comments","statuses_url":"https://api.github.com/repos/wolox-training/mp-net-core/statuses/e9d21bd4a4dcfb153aba8ba3aebf14fd09bb695e","head":{"label":"wolox-training:internationalisation","ref":"internationalisation","sha":"e9d21bd4a4dcfb153aba8ba3aebf14fd09bb695e","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":142882106,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4ODIxMDY=","name":"mp-net-core","full_name":"wolox-training/mp-net-core","owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/mp-net-core","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/mp-net-core","forks_url":"https://api.github.com/repos/wolox-training/mp-net-core/forks","keys_url":"https://api.github.com/repos/wolox-training/mp-net-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/mp-net-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/mp-net-core/teams","hooks_url":"https://api.github.com/repos/wolox-training/mp-net-core/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/mp-net-core/events","assignees_url":"https://api.github.com/repos/wolox-training/mp-net-core/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/mp-net-core/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/mp-net-core/tags","blobs_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/mp-net-core/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/mp-net-core/languages","stargazers_url":"https://api.github.com/repos/wolox-training/mp-net-core/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/mp-net-core/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/mp-net-core/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/mp-net-core/subscription","commits_url":"https://api.github.com/repos/wolox-training/mp-net-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/mp-net-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/mp-net-core/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/mp-net-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/mp-net-core/merges","archive_url":"https://api.github.com/repos/wolox-training/mp-net-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/mp-net-core/downloads","issues_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/mp-net-core/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/mp-net-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/mp-net-core/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/mp-net-core/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/mp-net-core/deployments","created_at":"2018-07-30T13:50:54Z","updated_at":"2018-08-28T17:36:45Z","pushed_at":"2018-08-29T13:48:10Z","git_url":"git://github.com/wolox-training/mp-net-core.git","ssh_url":"git@github.com:wolox-training/mp-net-core.git","clone_url":"https://github.com/wolox-training/mp-net-core.git","svn_url":"https://github.com/wolox-training/mp-net-core","homepage":null,"size":1888,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"wolox-training:repositories","ref":"repositories","sha":"ac79617f140f35a85eb9811b9c57d50ac68eb2b8","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":142882106,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI4ODIxMDY=","name":"mp-net-core","full_name":"wolox-training/mp-net-core","owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/mp-net-core","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/mp-net-core","forks_url":"https://api.github.com/repos/wolox-training/mp-net-core/forks","keys_url":"https://api.github.com/repos/wolox-training/mp-net-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/mp-net-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/mp-net-core/teams","hooks_url":"https://api.github.com/repos/wolox-training/mp-net-core/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/mp-net-core/events","assignees_url":"https://api.github.com/repos/wolox-training/mp-net-core/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/mp-net-core/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/mp-net-core/tags","blobs_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/mp-net-core/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/mp-net-core/languages","stargazers_url":"https://api.github.com/repos/wolox-training/mp-net-core/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/mp-net-core/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/mp-net-core/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/mp-net-core/subscription","commits_url":"https://api.github.com/repos/wolox-training/mp-net-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/mp-net-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/mp-net-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/mp-net-core/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/mp-net-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/mp-net-core/merges","archive_url":"https://api.github.com/repos/wolox-training/mp-net-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/mp-net-core/downloads","issues_url":"https://api.github.com/repos/wolox-training/mp-net-core/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/mp-net-core/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/mp-net-core/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/mp-net-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/mp-net-core/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/mp-net-core/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/mp-net-core/deployments","created_at":"2018-07-30T13:50:54Z","updated_at":"2018-08-28T17:36:45Z","pushed_at":"2018-08-29T13:48:10Z","git_url":"git://github.com/wolox-training/mp-net-core.git","ssh_url":"git@github.com:wolox-training/mp-net-core.git","clone_url":"https://github.com/wolox-training/mp-net-core.git","svn_url":"https://github.com/wolox-training/mp-net-core","homepage":null,"size":1888,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20"},"html":{"href":"https://github.com/wolox-training/mp-net-core/pull/20"},"issue":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/issues/20"},"comments":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/mp-net-core/statuses/e9d21bd4a4dcfb153aba8ba3aebf14fd09bb695e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"truccomarcos"}}