{"action":"created","issue":{"url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/44","labels_url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/44/comments","events_url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/44/events","html_url":"https://github.com/BenjaminMedia/bonnier-php-sdk/issues/44","id":106976229,"number":44,"title":"[QUESTION] locale - or _ ?","user":{"login":"phh","id":1304003,"avatar_url":"https://avatars.githubusercontent.com/u/1304003?v=3","gravatar_id":"","url":"https://api.github.com/users/phh","html_url":"https://github.com/phh","followers_url":"https://api.github.com/users/phh/followers","following_url":"https://api.github.com/users/phh/following{/other_user}","gists_url":"https://api.github.com/users/phh/gists{/gist_id}","starred_url":"https://api.github.com/users/phh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phh/subscriptions","organizations_url":"https://api.github.com/users/phh/orgs","repos_url":"https://api.github.com/users/phh/repos","events_url":"https://api.github.com/users/phh/events{/privacy}","received_events_url":"https://api.github.com/users/phh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T12:47:24Z","updated_at":"2015-09-17T16:09:27Z","closed_at":null,"body":"Locale example in the documentation are using `_` in locale `da_dk`:\r\n\r\nhttps://github.com/BenjaminMedia/bonnier-php-sdk/blob/master/indexsearch.md#save-single\r\n\r\nWhile every row I'm getting back from the IndexSearch service is using `-` in locale `da-dk`\r\n\r\n`public locale -> string(5) \"da-dk\"`\r\n\r\nShould I send/expect a `-` or `_` in locale?"},"comment":{"url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/comments/141135039","html_url":"https://github.com/BenjaminMedia/bonnier-php-sdk/issues/44#issuecomment-141135039","issue_url":"https://api.github.com/repos/BenjaminMedia/bonnier-php-sdk/issues/44","id":141135039,"user":{"login":"skipperbent","id":634762,"avatar_url":"https://avatars.githubusercontent.com/u/634762?v=3","gravatar_id":"","url":"https://api.github.com/users/skipperbent","html_url":"https://github.com/skipperbent","followers_url":"https://api.github.com/users/skipperbent/followers","following_url":"https://api.github.com/users/skipperbent/following{/other_user}","gists_url":"https://api.github.com/users/skipperbent/gists{/gist_id}","starred_url":"https://api.github.com/users/skipperbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skipperbent/subscriptions","organizations_url":"https://api.github.com/users/skipperbent/orgs","repos_url":"https://api.github.com/users/skipperbent/repos","events_url":"https://api.github.com/users/skipperbent/events{/privacy}","received_events_url":"https://api.github.com/users/skipperbent/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T16:09:27Z","updated_at":"2015-09-17T16:09:27Z","body":"The IndexSearch API was recently updated so it only support locales with underscore ```_```.\r\n\r\nSome of the content inside IndexSearch has not been updated and still contain ```-```. \r\n\r\nSo to answer your question, this would be the correct way of inserting data (it has to be a valid locale though).\r\n\r\n```$content->locale = 'en_gb';```\r\n\r\nHope it helts :) "}}