{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/858","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/858/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/858/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/858/events","html_url":"https://github.com/rust-lang/rfcs/issues/858","id":57740559,"node_id":"MDU6SXNzdWU1Nzc0MDU1OQ==","number":858,"title":"Investigate implementing an ECMA 402-based internationalization library","user":{"login":"steveklabnik","id":27786,"node_id":"MDQ6VXNlcjI3Nzg2","avatar_url":"https://avatars2.githubusercontent.com/u/27786?v=4","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"labels":[{"id":211667901,"node_id":"MDU6TGFiZWwyMTE2Njc5MDE=","url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-libs","name":"T-libs","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":50,"created_at":"2015-02-15T18:40:18Z","updated_at":"2018-10-12T06:33:16Z","closed_at":null,"author_association":"MEMBER","body":"<a href=\"https://github.com/alexcrichton\"><img src=\"https://avatars.githubusercontent.com/u/64996?v=3\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [alexcrichton](https://github.com/alexcrichton)**\n_Wednesday May 28, 2014 at 18:11 GMT_\n\n_For earlier discussion, see https://github.com/rust-lang/rust/issues/14494_\n\n_This issue was labelled with: A-libs, P-high in the Rust repository_\n\n---\n\nWe have been told that internationalization is pretty standardized at this point on the web and many languages are starting to follow along. The authoritative spec for this is located [here](http://www.ecma-international.org/ecma-402/1.0/), and it sounds like we shouldn't deviate from that spec much (as it's what everyone is expecting).\n\nNominating, but I do not believe this is a 1.0 issue.\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/429219407","html_url":"https://github.com/rust-lang/rfcs/issues/858#issuecomment-429219407","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/858","id":429219407,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTIxOTQwNw==","user":{"login":"behnam","id":37169,"node_id":"MDQ6VXNlcjM3MTY5","avatar_url":"https://avatars2.githubusercontent.com/u/37169?v=4","gravatar_id":"","url":"https://api.github.com/users/behnam","html_url":"https://github.com/behnam","followers_url":"https://api.github.com/users/behnam/followers","following_url":"https://api.github.com/users/behnam/following{/other_user}","gists_url":"https://api.github.com/users/behnam/gists{/gist_id}","starred_url":"https://api.github.com/users/behnam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/behnam/subscriptions","organizations_url":"https://api.github.com/users/behnam/orgs","repos_url":"https://api.github.com/users/behnam/repos","events_url":"https://api.github.com/users/behnam/events{/privacy}","received_events_url":"https://api.github.com/users/behnam/received_events","type":"User","site_admin":false},"created_at":"2018-10-12T06:33:16Z","updated_at":"2018-10-12T06:33:16Z","author_association":"NONE","body":"Okay, some updates are coming soon to UNIC, but it will take longer to build the `Locale` crate. To start, I'm first making a `Territory` model, which will be responsible for the `region` part of BCP-47 codes, as well as the `sd` extension. See https://github.com/open-i18n/rust-unic/issues/234 for more details.\r\n\r\nHaving the Territory model, then the next focus will be the `Language` model. And then building `Locale` on top of those.\r\n\r\nThe general idea is to *not* use &str/String for representing i18n data. The top reason is to not hide all the problems under the rug. For example, if a country code goes out of use, the code having conditions against that country code should get compile errors. IMHO, this is necessary for getting a solid i18n library that doesn't require playing whack a mole with bugs down the road.\r\n\r\nAs we have mentioned over the past year or so, UNIC is still experimenting with how to improve i18n architecture. For any application that doesn't want to get into this experiment, I would recommend using ICU-based solutions, which would work with all of these as strings.\r\n\r\nWhat do you think?"}}
{"actor":{"display_login":"behnam"}}