{"action":"created","issue":{"url":"https://api.github.com/repos/Happyr/TranslationBundle/issues/27","repository_url":"https://api.github.com/repos/Happyr/TranslationBundle","labels_url":"https://api.github.com/repos/Happyr/TranslationBundle/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Happyr/TranslationBundle/issues/27/comments","events_url":"https://api.github.com/repos/Happyr/TranslationBundle/issues/27/events","html_url":"https://github.com/Happyr/TranslationBundle/pull/27","id":139312815,"number":27,"title":"Handle hierarchy parent in flattening Loco resp","user":{"login":"damienalexandre","id":225704,"avatar_url":"https://avatars.githubusercontent.com/u/225704?v=3","gravatar_id":"","url":"https://api.github.com/users/damienalexandre","html_url":"https://github.com/damienalexandre","followers_url":"https://api.github.com/users/damienalexandre/followers","following_url":"https://api.github.com/users/damienalexandre/following{/other_user}","gists_url":"https://api.github.com/users/damienalexandre/gists{/gist_id}","starred_url":"https://api.github.com/users/damienalexandre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienalexandre/subscriptions","organizations_url":"https://api.github.com/users/damienalexandre/orgs","repos_url":"https://api.github.com/users/damienalexandre/repos","events_url":"https://api.github.com/users/damienalexandre/events{/privacy}","received_events_url":"https://api.github.com/users/damienalexandre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-08T15:53:19Z","updated_at":"2016-03-08T16:13:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Happyr/TranslationBundle/pulls/27","html_url":"https://github.com/Happyr/TranslationBundle/pull/27","diff_url":"https://github.com/Happyr/TranslationBundle/pull/27.diff","patch_url":"https://github.com/Happyr/TranslationBundle/pull/27.patch"},"body":"When having keys like this:\r\n\r\n```\r\nnavigation.dropdown.rent\r\nnavigation.dropdown.rent.service\r\nnavigation.dropdown.rent.luxury\r\n```\r\n\r\nLoco return a response like this:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/225704/13606899/284c8978-e54e-11e5-88b8-96e71d18aa36.png)\r\n\r\nOne of the keys is zero, and my translation file is populated with `navigation.dropdown.rent.0`.\r\n\r\nThis PR fix this issue."},"comment":{"url":"https://api.github.com/repos/Happyr/TranslationBundle/issues/comments/193843433","html_url":"https://github.com/Happyr/TranslationBundle/pull/27#issuecomment-193843433","issue_url":"https://api.github.com/repos/Happyr/TranslationBundle/issues/27","id":193843433,"user":{"login":"Nyholm","id":1275206,"avatar_url":"https://avatars.githubusercontent.com/u/1275206?v=3","gravatar_id":"","url":"https://api.github.com/users/Nyholm","html_url":"https://github.com/Nyholm","followers_url":"https://api.github.com/users/Nyholm/followers","following_url":"https://api.github.com/users/Nyholm/following{/other_user}","gists_url":"https://api.github.com/users/Nyholm/gists{/gist_id}","starred_url":"https://api.github.com/users/Nyholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nyholm/subscriptions","organizations_url":"https://api.github.com/users/Nyholm/orgs","repos_url":"https://api.github.com/users/Nyholm/repos","events_url":"https://api.github.com/users/Nyholm/events{/privacy}","received_events_url":"https://api.github.com/users/Nyholm/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T16:13:17Z","updated_at":"2016-03-08T16:13:17Z","body":"Im.. But what if you have keys like\r\n```\r\nnavigation.dropdown.rent.0\r\nnavigation.dropdown.rent.1\r\nnavigation.dropdown.rent.2\r\n```\r\nWouldn't that break everything? Or are we sure that that will return string \"0\", \"1\" and \"2\"?\r\n\r\nAlso, if it not too much to ask, would you mind adding a small test for that function?"}}