Skip to content

Commit bf83362

Browse files
committed
Update README
1 parent da7b0a1 commit bf83362

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ spago install js-intl
1818

1919
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-js-intl).
2020

21-
See also: the official specification published [here](https://tc39.es/ecma402/), MDN documentation [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl).
21+
See also: the ECMA-402 specification published [here](https://tc39.es/ecma402/), MDN documentation for `Intl` [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl).
2222

2323
## How to use this library
2424

@@ -44,7 +44,6 @@ import JS.Intl.NumberFormat as NumberFormat
4444
import JS.Intl.Options.Notation as Notation
4545
import JS.Intl.Options.NumberFormatStyle as NumberFormatStyle
4646
import JS.Intl.Options.PluralCategory (PluralCategory(..))
47-
import JS.Intl.Options.PluralCategory as PluralCategory
4847
import JS.Intl.Options.UnitDisplay as UnitDisplay
4948
import JS.Intl.PluralRules as PluralRules
5049
import JS.Intl.Segmenter as Segmenter
@@ -183,13 +182,13 @@ constructors.
183182
pluralRules <- PluralRules.new [ en_US ] { type: "ordinal" }
184183
185184
let
186-
numbers = [ 1, 2, 3, 81, 138 ]
185+
numbers = [ 1, 2, 3, 8, 21 ]
187186
formattedOrdinals = numbers <#> \number -> do
188187
let
189188
suffix = ordinalSuffix (PluralRules.select pluralRules number)
190189
show number <> suffix
191190
192-
Console.logShow formattedOrdinals -- ["1st","2nd","3rd","81st","138th"]
191+
Console.logShow formattedOrdinals -- ["1st","2nd","3rd","8th","21st"]
193192
```
194193

195194
### Type safety and overloaded API

example/Example.purs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import JS.Intl.NumberFormat as NumberFormat
1818
import JS.Intl.Options.Notation as Notation
1919
import JS.Intl.Options.NumberFormatStyle as NumberFormatStyle
2020
import JS.Intl.Options.PluralCategory (PluralCategory(..))
21-
import JS.Intl.Options.PluralCategory as PluralCategory
2221
import JS.Intl.Options.UnitDisplay as UnitDisplay
2322
import JS.Intl.PluralRules as PluralRules
2423
import JS.Intl.Segmenter as Segmenter
@@ -141,13 +140,13 @@ main = do
141140
pluralRules <- PluralRules.new [ en_US ] { type: "ordinal" }
142141

143142
let
144-
numbers = [ 1, 2, 3, 81, 138 ]
143+
numbers = [ 1, 2, 3, 8, 21 ]
145144
formattedOrdinals = numbers <#> \number -> do
146145
let
147146
suffix = ordinalSuffix (PluralRules.select pluralRules number)
148147
show number <> suffix
149148

150-
Console.logShow formattedOrdinals -- ["1st","2nd","3rd","81st","138th"]
149+
Console.logShow formattedOrdinals -- ["1st","2nd","3rd","8th","21st"]
151150
--
152151
-- ### Type safety and overloaded API
153152
--

example/README.template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spago install js-intl
1616

1717
Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-js-intl).
1818

19-
See also: the official specification published [here](https://tc39.es/ecma402/), MDN documentation [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl).
19+
See also: the ECMA-402 specification published [here](https://tc39.es/ecma402/), MDN documentation for `Intl` [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl).
2020

2121
## How to use this library
2222

0 commit comments

Comments
 (0)