Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zbraniecki/intl-string-format-spec

`Intl.StringFormat` specification [draft] https://rawgit.com/zbraniecki/intl-string-format-spec/master/index.html
https://github.com/zbraniecki/intl-string-format-spec

Last synced: about 2 months ago
JSON representation

`Intl.StringFormat` specification [draft] https://rawgit.com/zbraniecki/intl-string-format-spec/master/index.html

Awesome Lists containing this project

README

        

## Intl.StringFormat API Specification [draft]

### Status

__Stage 0__

Implementation Progress

* Polyfill: https://github.com/zbraniecki/IntlStringFormat

Backpointers

* https://groups.google.com/forum/#!topic/javascript-globalization/3nFDf5al5hU

### Authors

* Zibi Braniecki (@zbraniecki)

### Reviewers

TBD

### Informative

This proposal is based on the LDML spec, C.11 Language Plural Rules:

### Prior Art

### Usage

```javascript
let o = new Intl.StringFormat("en", {
style: "regular" // default style
});
console.log(o.truncate('Lorem ipsum dolor sit amet', {
maxLength: 10
}); // "Lorem ips…"
```

### Render Spec

```bash
npm install
npm run build
open index.html
```