{"action":"created","issue":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/493","labels_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/493/comments","events_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/493/events","html_url":"https://github.com/bridgedotnet/Bridge/issues/493","id":108322796,"number":493,"title":"Linq exception (\"Sequence contains no matching element\") when using locales sample from docs","user":{"login":"DanTup","id":1078012,"avatar_url":"https://avatars.githubusercontent.com/u/1078012?v=3","gravatar_id":"","url":"https://api.github.com/users/DanTup","html_url":"https://github.com/DanTup","followers_url":"https://api.github.com/users/DanTup/followers","following_url":"https://api.github.com/users/DanTup/following{/other_user}","gists_url":"https://api.github.com/users/DanTup/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTup/subscriptions","organizations_url":"https://api.github.com/users/DanTup/orgs","repos_url":"https://api.github.com/users/DanTup/repos","events_url":"https://api.github.com/users/DanTup/events{/privacy}","received_events_url":"https://api.github.com/users/DanTup/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-25T13:07:04Z","updated_at":"2015-09-25T18:11:16Z","closed_at":null,"body":"When I add this to my `bridge.json`:\r\n\r\n    \"locales\": \"en_GB\"\r\n\r\nThe build fails with:\r\n\r\n```\r\nBridge.targets(12,5): error : Error: Sequence contains no matching element    at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)\r\nBridge.targets(12,5): error :    at Bridge.Translator.Translator.ExtractCore(String outputPath, Boolean nodebug)\r\nBridge.targets(12,5): error :    at Bridge.Build.GenerateScript.Execute()\r\n```\r\n\r\nChanging it to `en-GB` fixes the issue but [the docs](http://bridge.net/kb/global-configuration/#locales) have underscores in their examples. I presume this the docs are wrong though I think the compiler shouldn't crash with a vague error for bad config."},"comment":{"url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/comments/143311466","html_url":"https://github.com/bridgedotnet/Bridge/issues/493#issuecomment-143311466","issue_url":"https://api.github.com/repos/bridgedotnet/Bridge/issues/493","id":143311466,"user":{"login":"fabriciomurta","id":10730372,"avatar_url":"https://avatars.githubusercontent.com/u/10730372?v=3","gravatar_id":"","url":"https://api.github.com/users/fabriciomurta","html_url":"https://github.com/fabriciomurta","followers_url":"https://api.github.com/users/fabriciomurta/followers","following_url":"https://api.github.com/users/fabriciomurta/following{/other_user}","gists_url":"https://api.github.com/users/fabriciomurta/gists{/gist_id}","starred_url":"https://api.github.com/users/fabriciomurta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabriciomurta/subscriptions","organizations_url":"https://api.github.com/users/fabriciomurta/orgs","repos_url":"https://api.github.com/users/fabriciomurta/repos","events_url":"https://api.github.com/users/fabriciomurta/events{/privacy}","received_events_url":"https://api.github.com/users/fabriciomurta/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T18:11:16Z","updated_at":"2015-09-25T18:11:16Z","body":"Hi DanTup! Somehow this changes were reverted in the Docs. In fact at a given time we had this mishap as underscore but it were fixed to hyphen. Don't really know the reason the underscore is back there but we'll fix this at once (again)!.. :)"}}