{"id":2278,"date":"2013-03-05T11:33:19","date_gmt":"2013-03-05T11:33:19","guid":{"rendered":"http:\/\/www.w3.org\/blog\/International\/?p=2278"},"modified":"2013-03-05T11:35:24","modified_gmt":"2013-03-05T11:35:24","slug":"ecmascript-internationalization-api-specification-approved-in-december","status":"publish","type":"post","link":"https:\/\/www.w3.org\/blog\/International\/2013\/03\/05\/ecmascript-internationalization-api-specification-approved-in-december\/","title":{"rendered":"ECMAScript Internationalization API Specification approved in December"},"content":{"rendered":"<p>We omitted to mention, back in December, that ECMAScript announced a new standard that better supports a user\u2019s language and culture for applications written in JavaScript (standardized as ECMAScript).<\/p>\n<p>Until now, it has been very difficult for web application designers to do something as simple as sort names correctly according to the user\u2019s language. The new standard ECMA-402 changes this. It provides:<\/p>\n<ul>\n<li>string comparison for sorting (such as for Swedish, where \u201c\u00f6\u201d is a separate letter that sorts after \u201cz\u201d),\n<\/li>\n<li>number and currency formatting (such as \u201c1.234,56 \u20ac\u201d for a German language euro presentation, or the following choices for a Serbian language USD presentation: 12.345,12 US$, 12.345,12 USD or 12.345,12 \u0430\u043c\u0435\u0440\u0438\u0447\u043a\u0438\u0445 \u0434\u043e\u043b\u0430\u0440\u0430),\n<\/li>\n<li>date and time formatting capabilities (such as 2012\u5e7412\u670812\u65e5 for a Japanese language date, or for a French date: mercredi 12 d\u00e9cembre 2012).\n<\/li>\n<\/ul>\n<p>For the first time, applications can choose the language and tailor the functionality to their needs. The standard complements the ECMAScript Language Specification, also published by Ecma as ECMA-262, which defines the core of JavaScript in web browsers, servers, and other software systems.<\/p>\n<p>ECMA-402, ECMAScript Internationalization API Specification, is <a href=\"http:\/\/www.ecma-international.org\/publications\/standards\/Ecma-402.htm\">available free of charge from the Ecma International website<\/a>. See also  <a href=\"http:\/\/norbertlindenberg.com\/2012\/12\/ecmascript-internationalization-api\/index.html\">An introduction to the standard<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We omitted to mention, back in December, that ECMAScript announced a new standard that better supports a user\u2019s language and culture for applications written in JavaScript (standardized as ECMAScript). Until now, it has been very difficult for web application designers &hellip; <a href=\"https:\/\/www.w3.org\/blog\/International\/2013\/03\/05\/ecmascript-internationalization-api-specification-approved-in-december\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":79,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[137,3,5,19],"tags":[158,159],"class_list":["post-2278","post","type-post","status-publish","format-standard","hentry","category-announcements","category-highlight","category-w3cwebdesign","category-w3cwebuseragents","tag-ecmascript","tag-javascript"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts\/2278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/users\/79"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/comments?post=2278"}],"version-history":[{"count":3,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts\/2278\/revisions"}],"predecessor-version":[{"id":2281,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/posts\/2278\/revisions\/2281"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/media?parent=2278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/categories?post=2278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/blog\/International\/wp-json\/wp\/v2\/tags?post=2278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}