{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/2558","repository_url":"https://api.github.com/repos/select2/select2","labels_url":"https://api.github.com/repos/select2/select2/issues/2558/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/2558/comments","events_url":"https://api.github.com/repos/select2/select2/issues/2558/events","html_url":"https://github.com/select2/select2/issues/2558","id":38614578,"number":2558,"title":"Choose language init option","user":{"login":"loostro","id":1419884,"avatar_url":"https://avatars.githubusercontent.com/u/1419884?v=3","gravatar_id":"","url":"https://api.github.com/users/loostro","html_url":"https://github.com/loostro","followers_url":"https://api.github.com/users/loostro/followers","following_url":"https://api.github.com/users/loostro/following{/other_user}","gists_url":"https://api.github.com/users/loostro/gists{/gist_id}","starred_url":"https://api.github.com/users/loostro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loostro/subscriptions","organizations_url":"https://api.github.com/users/loostro/orgs","repos_url":"https://api.github.com/users/loostro/repos","events_url":"https://api.github.com/users/loostro/events{/privacy}","received_events_url":"https://api.github.com/users/loostro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/select2/select2/labels/enhancement","name":"enhancement","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-07-24T10:09:53Z","updated_at":"2016-04-15T07:49:27Z","closed_at":"2015-03-27T22:02:02Z","body":"Right now, to translate select2 you have to include the right locale JS file.\r\n\r\nIt would be useful if we could load ALL locale files, and control which language is used with initialisation option. This way we could have two select2 widgets (on the same page) with diffrent languages.\r\n\r\nAlso (optional) it would be nice, if we could change the language after the initialisation."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/210341995","html_url":"https://github.com/select2/select2/issues/2558#issuecomment-210341995","issue_url":"https://api.github.com/repos/select2/select2/issues/2558","id":210341995,"user":{"login":"hdwills","id":1472924,"avatar_url":"https://avatars.githubusercontent.com/u/1472924?v=3","gravatar_id":"","url":"https://api.github.com/users/hdwills","html_url":"https://github.com/hdwills","followers_url":"https://api.github.com/users/hdwills/followers","following_url":"https://api.github.com/users/hdwills/following{/other_user}","gists_url":"https://api.github.com/users/hdwills/gists{/gist_id}","starred_url":"https://api.github.com/users/hdwills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hdwills/subscriptions","organizations_url":"https://api.github.com/users/hdwills/orgs","repos_url":"https://api.github.com/users/hdwills/repos","events_url":"https://api.github.com/users/hdwills/events{/privacy}","received_events_url":"https://api.github.com/users/hdwills/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T07:49:27Z","updated_at":"2016-04-15T07:49:27Z","body":"@Lutex set default language:\r\n```\r\n<script>\r\n  $('.my-select').select2({\r\n    language: 'pt-BR'\r\n  })\r\n</script>\r\n```"}}