{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Localization/issues/153","labels_url":"https://api.github.com/repos/aspnet/Localization/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Localization/issues/153/comments","events_url":"https://api.github.com/repos/aspnet/Localization/issues/153/events","html_url":"https://github.com/aspnet/Localization/issues/153","id":118966674,"number":153,"title":"Localization no longer works after updating to rc1","user":{"login":"JoeOM","id":16026395,"avatar_url":"https://avatars.githubusercontent.com/u/16026395?v=3","gravatar_id":"","url":"https://api.github.com/users/JoeOM","html_url":"https://github.com/JoeOM","followers_url":"https://api.github.com/users/JoeOM/followers","following_url":"https://api.github.com/users/JoeOM/following{/other_user}","gists_url":"https://api.github.com/users/JoeOM/gists{/gist_id}","starred_url":"https://api.github.com/users/JoeOM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoeOM/subscriptions","organizations_url":"https://api.github.com/users/JoeOM/orgs","repos_url":"https://api.github.com/users/JoeOM/repos","events_url":"https://api.github.com/users/JoeOM/events{/privacy}","received_events_url":"https://api.github.com/users/JoeOM/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T03:48:35Z","updated_at":"2015-11-26T05:12:32Z","closed_at":null,"body":"Hi\r\n\r\nI had localization working perfectly with beta8 but in RC1 it is not working.\r\n\r\nI have two resource files under Resources folder:\r\n\r\n1. Example.Resources.Example.Startup.en-AU.resx\r\n2. Example.Resources.Example.Startup.zh-CHS.resx\r\n\r\nI also have the following resource related configured in Startup:\r\n\r\nservices.AddLocalization(l => l.ResourcesPath = \"Resources\");\r\n\r\n...\r\n\r\nvar requestLocalizationOptions = new RequestLocalizationOptions \r\n            {   \r\n                SupportedCultures = new List<CultureInfo> \r\n                { \r\n                    new CultureInfo(\"en-AU\"),\r\n                    new CultureInfo(\"zh-CHS\")\r\n                }, \r\n                SupportedUICultures = new List<CultureInfo> \r\n                {\r\n                    new CultureInfo(\"en-AU\"),\r\n                    new CultureInfo(\"zh-CHS\")\r\n                } \r\n            }; \r\n\r\napp.UseRequestLocalization(requestLocalizationOptions,  new RequestCulture(\"en-AU\"));\r\n\r\nI only use IStringLocalizer<Startup> injected into my views / controllers but it just show me the Key and not the Value even though my request header accept language is en-AU, however if I add a third resource file (Example.Resources.Example.Startup.resx) to Resources folder without the culture at the end it works by providing a Value instead of the Key.\r\n\r\nI use the very odd weird pattern of having to have a class to use shared resources (shared resources across files types etc are the way it works in the real world), so I am forced to use Startup or create an EMPTY class! It seems that the designer of how the new localization works has never worked with multicultural applications...\r\n\r\nWhy not make it possible to pass in a resource name instead of making it type specific!? Really really odd and really limiting. I think there will be a lot of people complaining in the future when this is RTM!\r\n\r\nPlease guys test it and fix it!\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/aspnet/Localization/issues/comments/159808147","html_url":"https://github.com/aspnet/Localization/issues/153#issuecomment-159808147","issue_url":"https://api.github.com/repos/aspnet/Localization/issues/153","id":159808147,"user":{"login":"damienbod","id":3442158,"avatar_url":"https://avatars.githubusercontent.com/u/3442158?v=3","gravatar_id":"","url":"https://api.github.com/users/damienbod","html_url":"https://github.com/damienbod","followers_url":"https://api.github.com/users/damienbod/followers","following_url":"https://api.github.com/users/damienbod/following{/other_user}","gists_url":"https://api.github.com/users/damienbod/gists{/gist_id}","starred_url":"https://api.github.com/users/damienbod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienbod/subscriptions","organizations_url":"https://api.github.com/users/damienbod/orgs","repos_url":"https://api.github.com/users/damienbod/repos","events_url":"https://api.github.com/users/damienbod/events{/privacy}","received_events_url":"https://api.github.com/users/damienbod/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T05:12:32Z","updated_at":"2015-11-26T05:12:32Z","body":"I agree with Joe.\r\n\r\nThis should be fixed. A good solution for shared resources is required.\r\n\r\nGreetings Damien"}}