Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zbraniecki/intl-string-format-spec
- Owner: zbraniecki
- Created: 2015-10-25T16:20:54.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-25T16:23:02.000Z (about 9 years ago)
- Last Synced: 2024-10-14T16:14:39.901Z (3 months ago)
- Language: HTML
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 2
- 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
```