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: 10 months ago
JSON representation
`Intl.StringFormat` specification [draft] https://rawgit.com/zbraniecki/intl-string-format-spec/master/index.html
- Host: GitHub
- URL: https://github.com/zbraniecki/intl-string-format-spec
- Owner: zbraniecki
- Created: 2015-10-25T16:20:54.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-25T16:23:02.000Z (over 10 years ago)
- Last Synced: 2025-03-20T05:16:33.752Z (about 1 year ago)
- Language: HTML
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```