{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/3943","labels_url":"https://api.github.com/repos/select2/select2/issues/3943/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/3943/comments","events_url":"https://api.github.com/repos/select2/select2/issues/3943/events","html_url":"https://github.com/select2/select2/pull/3943","id":117763279,"number":3943,"title":"Add sr-Cyrl language.","user":{"login":"limonte","id":6059356,"avatar_url":"https://avatars.githubusercontent.com/u/6059356?v=3","gravatar_id":"","url":"https://api.github.com/users/limonte","html_url":"https://github.com/limonte","followers_url":"https://api.github.com/users/limonte/followers","following_url":"https://api.github.com/users/limonte/following{/other_user}","gists_url":"https://api.github.com/users/limonte/gists{/gist_id}","starred_url":"https://api.github.com/users/limonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limonte/subscriptions","organizations_url":"https://api.github.com/users/limonte/orgs","repos_url":"https://api.github.com/users/limonte/repos","events_url":"https://api.github.com/users/limonte/events{/privacy}","received_events_url":"https://api.github.com/users/limonte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/select2/select2/labels/4.x","name":"4.x","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T08:10:45Z","updated_at":"2015-11-20T05:00:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/select2/select2/pulls/3943","html_url":"https://github.com/select2/select2/pull/3943","diff_url":"https://github.com/select2/select2/pull/3943.diff","patch_url":"https://github.com/select2/select2/pull/3943.patch"},"body":"As discussed in #3936 \r\n\r\n>\r\n>Select2 uses the ISO 639-1 language code to name the language file. In cases where there are variants for a language (pt-PT and pt-BR, for example), we keep the main language file as the dominant language (pt-PT becomes pt) when needed, or separate the two (zh-CN and zh-TW) when there is no dominant language.\r\n>\r\n>In this case, the ISO language code for Serbian is sr. The IANA Language Subtag Registry defines subtags for script variants (Latin is Latn and Cyrillic is Cyrl) which we can use to differentiate between the two. So the existing translation would be sr-Latn and the new translation would be sr-Cyrl. For backwards compatibility, I'd rather keep sr-Latn as sr, just so people don't have to change that on a minor update (even if it might not be the dominant or official script, backwards compatibility is important)."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/158280334","html_url":"https://github.com/select2/select2/pull/3943#issuecomment-158280334","issue_url":"https://api.github.com/repos/select2/select2/issues/3943","id":158280334,"user":{"login":"kevin-brown","id":1991850,"avatar_url":"https://avatars.githubusercontent.com/u/1991850?v=3","gravatar_id":"","url":"https://api.github.com/users/kevin-brown","html_url":"https://github.com/kevin-brown","followers_url":"https://api.github.com/users/kevin-brown/followers","following_url":"https://api.github.com/users/kevin-brown/following{/other_user}","gists_url":"https://api.github.com/users/kevin-brown/gists{/gist_id}","starred_url":"https://api.github.com/users/kevin-brown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevin-brown/subscriptions","organizations_url":"https://api.github.com/users/kevin-brown/orgs","repos_url":"https://api.github.com/users/kevin-brown/repos","events_url":"https://api.github.com/users/kevin-brown/events{/privacy}","received_events_url":"https://api.github.com/users/kevin-brown/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T05:00:47Z","updated_at":"2015-11-20T05:00:47Z","body":"I'm just going to pull this comment on in\r\n\r\n> Side note: We are also missing [the `errorLoading` translation](https://github.com/select2/select2/blob/7e2ade09652f66f3a70787f6f0e2918d171a6dcb/src/js/select2/i18n/en.js#L4-L6) for these files. Is anyone interested in adding it?\r\n\r\nRight now this will default back to the English translation if there are any issues when loading the results."}}