Skip to content

Commit

Permalink
Editorial: Add mention to RelativeTimeFormat to Api Overview (#613)
Browse files Browse the repository at this point in the history
* Update overview.html

* Update overview.html

Add `locale selection and operation`

* Update spec/overview.html

Co-authored-by: Richard Gibson <[email protected]>

Co-authored-by: Richard Gibson <[email protected]>
  • Loading branch information
romulocintra and gibson042 authored Dec 15, 2021
1 parent 896ba11 commit 7473509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1>API Overview</h1>
The ECMAScript 2022 Internationalization API Specification is designed to complement the ECMAScript 2022 Language Specification by providing key language-sensitive functionality. The API can be added to an implementation of the ECMAScript 2022 Language Specification (ECMA-262 13<sup>th</sup> Edition, or successor).
</p>
<p>
The ECMAScript 2022 Internationalization API Specification provides several key pieces of language-sensitive functionality that are required in most applications: String comparison (collation), number formatting, date and time formatting, display names, list formatting, pluralization rules, and case conversion. While the ECMAScript 2022 Language Specification provides functions for this basic functionality (on <emu-xref href="#sec-array.prototype">Array.prototype</emu-xref>: `toLocaleString`; on <emu-xref href="#sec-string.prototype">String.prototype</emu-xref>: `localeCompare`, `toLocaleLowerCase`, `toLocaleUpperCase`; on <emu-xref href="#sec-number.prototype">Number.prototype</emu-xref>: `toLocaleString`; on <emu-xref href="#sec-date.prototype">Date.prototype</emu-xref>: `toLocaleString`, `toLocaleDateString`, and `toLocaleTimeString`), it leaves the actual behaviour of these functions largely up to implementations to define. The ECMAScript 2022 Internationalization API Specification provides additional functionality, control over the language and over details of the behaviour to be used, and a more complete specification of required functionality.
The ECMAScript 2022 Internationalization API Specification provides several key pieces of language-sensitive functionality that are required in most applications: String comparison (collation), number formatting, date and time formatting, relative time formatting, display names, list formatting, locale selection and operation, pluralization rules, and case conversion. While the ECMAScript 2022 Language Specification provides functions for this basic functionality (on <emu-xref href="#sec-array.prototype">Array.prototype</emu-xref>: `toLocaleString`; on <emu-xref href="#sec-string.prototype">String.prototype</emu-xref>: `localeCompare`, `toLocaleLowerCase`, `toLocaleUpperCase`; on <emu-xref href="#sec-number.prototype">Number.prototype</emu-xref>: `toLocaleString`; on <emu-xref href="#sec-date.prototype">Date.prototype</emu-xref>: `toLocaleString`, `toLocaleDateString`, and `toLocaleTimeString`), it leaves the actual behaviour of these functions largely up to implementations to define. The ECMAScript 2022 Internationalization API Specification provides additional functionality, control over the language and over details of the behaviour to be used, and a more complete specification of required functionality.
</p>

<p>Applications can use the API in two ways:</p>
Expand Down

0 comments on commit 7473509

Please sign in to comment.