Skip to content

Commit

Permalink
Merge pull request #192 from iLib-js/disjunction
Browse files Browse the repository at this point in the history
Support disjunction style in the list formatter
  • Loading branch information
ehoogerbeets authored Jul 4, 2019
2 parents b7269ea + 1a3c6c5 commit 9c91a1f
Show file tree
Hide file tree
Showing 104 changed files with 1,488 additions and 479 deletions.
2 changes: 2 additions & 0 deletions docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Published as version 14.3.0

New Features:
* Now uses webpack4 to package up all of the classes and data
* Added style "disjunction" to the list formatter do you can now format lists with "or" as well:
* "One, Two, Three, or Four" vs. "One, Two, Three, and Four"

Bug Fixes:
* Updated to IANA time zone data version 2019a
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/af/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} en {1}",
"end": "{0} en {1}"
},
"or": {
"2": "{0} of {1}",
"end": "{0} of {1}"
},
"unit": {
"2": "{0} en {1}",
"end": "{0} en {1}"
Expand Down
6 changes: 6 additions & 0 deletions js/data/locale/am/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"middle": "{0}፣ {1}",
"end": "{0}, እና {1}"
},
"or": {
"2": "{0} ወይም {1}",
"start": "{0}፣ {1}",
"middle": "{0}፣ {1}",
"end": "{0} ወይም {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
6 changes: 6 additions & 0 deletions js/data/locale/ar/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"end": "{0}، و{1}"
}
},
"or": {
"2": "{0} أو {1}",
"start": "{0} و{1}",
"middle": "{0} و{1}",
"end": "{0} أو {1}"
},
"unit": {
"short": {
"2": "{0}، {1}",
Expand Down
36 changes: 36 additions & 0 deletions js/data/locale/as/list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"standard": {
"2": "{0} আৰু {1}",
"end": "{0} আৰু {1}"
},
"or": {
"2": "{0} বা {1}",
"end": "{0} বা {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
"start": "{0} {1}",
"middle": "{0} {1}",
"end": "{0} {1}"
},
"medium": {
"2": "{0}, {1}",
"start": "{0}, {1}",
"middle": "{0}, {1}",
"end": "{0}, {1}"
},
"long": {
"2": "{0}, {1}",
"start": "{0}, {1}",
"middle": "{0}, {1}",
"end": "{0}, {1}"
},
"full": {
"2": "{0}, {1}",
"start": "{0}, {1}",
"middle": "{0}, {1}",
"end": "{0}, {1}"
}
}
}
4 changes: 4 additions & 0 deletions js/data/locale/ast/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} y {1}",
"end": "{0} y {1}"
},
"or": {
"2": "{0} o {1}",
"end": "{0} o {1}"
},
"unit": {
"2": "{0} y {1}",
"end": "{0} y {1}"
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/az/Cyrl/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"standard": {
"2": "{0}, {1}",
"end": "{0}, {1}"
},
"or": {
"2": "{0} or {1}",
"end": "{0}, or {1}"
}
}
4 changes: 4 additions & 0 deletions js/data/locale/az/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"standard": {
"2": "{0} və {1}",
"end": "{0} və {1}"
},
"or": {
"2": "{0} yaxud {1}",
"end": "{0}, yaxud {1}"
}
}
4 changes: 4 additions & 0 deletions js/data/locale/be/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} і {1}",
"end": "{0} і {1}"
},
"or": {
"2": "{0} ці {1}",
"end": "{0} ці {1}"
},
"unit": {
"2": "{0} {1}",
"start": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/bg/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
"end": "{0} и {1}"
}
},
"or": {
"2": "{0} или {1}",
"end": "{0} или {1}"
},
"unit": {
"short": {
"2": "{0} и {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/bn/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"standard": {
"2": "{0} এবং {1}",
"end": "{0} এবং {1}"
},
"or": {
"2": "{0} বা {1}",
"end": "{0}, বা {1}"
}
}
6 changes: 6 additions & 0 deletions js/data/locale/br/list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"or": {
"2": "{0} pe {1}",
"end": "{0}, pe {1}"
}
}
4 changes: 4 additions & 0 deletions js/data/locale/bs/Cyrl/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} и {1}",
"end": "{0} и {1}"
},
"or": {
"2": "{0} or {1}",
"end": "{0}, or {1}"
},
"unit": {
"2": "{0} и {1}",
"end": "{0} и {1}"
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/bs/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} i {1}",
"end": "{0} i {1}"
},
"or": {
"2": "{0} ili {1}",
"end": "{0} ili {1}"
},
"unit": {
"2": "{0} i {1}",
"end": "{0} i {1}"
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/ca/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} i {1}",
"end": "{0} i {1}"
},
"or": {
"2": "{0} o {1}",
"end": "{0} o {1}"
},
"unit": {
"2": "{0} i {1}",
"end": "{0} i {1}"
Expand Down
6 changes: 6 additions & 0 deletions js/data/locale/ccp/list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"standard": {
"2": "{0} 𑄃𑄳𑄃 {1}",
"end": "{0} 𑄃𑄳𑄃 {1}"
}
}
6 changes: 5 additions & 1 deletion js/data/locale/chr/list.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"standard": {
"2": "{0} ᎠᎴ {1}",
"end": "{0} ᎠᎴ {1}"
"end": "{0}, ᎠᎴ {1}"
},
"or": {
"2": "{0} ᎠᎴᏱᎩ {1}",
"end": "{0}, ᎠᎴᏱᎩ {1}"
},
"unit": {
"short": {
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/cs/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} a {1}",
"end": "{0} a {1}"
},
"or": {
"2": "{0} nebo {1}",
"end": "{0} nebo {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/cy/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@
"standard": {
"2": "{0} a(c) {1}",
"end": "{0}, a(c) {1}"
},
"or": {
"2": "{0} neu {1}",
"end": "{0} neu {1}"
}
}
4 changes: 4 additions & 0 deletions js/data/locale/da/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} og {1}",
"end": "{0} og {1}"
},
"or": {
"2": "{0} eller {1}",
"end": "{0} eller {1}"
},
"unit": {
"2": "{0} og {1}",
"end": "{0} og {1}"
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/de/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} und {1}",
"end": "{0} und {1}"
},
"or": {
"2": "{0} oder {1}",
"end": "{0} oder {1}"
},
"unit": {
"end": "{0} und {1}"
}
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/el/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} και {1}",
"end": "{0} και {1}"
},
"or": {
"2": "{0} ή {1}",
"end": "{0} ή {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
3 changes: 3 additions & 0 deletions js/data/locale/en/AU/list.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"standard": {
"end": "{0} and {1}"
},
"or": {
"end": "{0} or {1}"
}
}
3 changes: 3 additions & 0 deletions js/data/locale/en/GB/list.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"standard": {
"end": "{0} and {1}"
},
"or": {
"end": "{0} or {1}"
}
}
4 changes: 4 additions & 0 deletions js/data/locale/es/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} y {1}",
"end": "{0} y {1}"
},
"or": {
"2": "{0} o {1}",
"end": "{0} o {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/et/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} ja {1}",
"end": "{0} ja {1}"
},
"or": {
"2": "{0} või {1}",
"end": "{0} või {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/eu/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} eta {1}",
"end": "{0} eta {1}"
},
"or": {
"2": "{0} edo {1}",
"end": "{0} edo {1}"
},
"unit": {
"2": "{0} eta {1}",
"end": "{0} eta {1}"
Expand Down
6 changes: 6 additions & 0 deletions js/data/locale/fa/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"middle": "{0}،‏ {1}",
"end": "{0}، و {1}"
},
"or": {
"2": "{0} یا {1}",
"start": "{0}، {1}",
"middle": "{0}، {1}",
"end": "{0}، یا {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/fi/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} ja {1}",
"end": "{0} ja {1}"
},
"or": {
"2": "{0} tai {1}",
"end": "{0} tai {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/fil/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} at {1}",
"end": "{0}, at {1}"
},
"or": {
"2": "{0} o {1}",
"end": "{0}, o {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/fo/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} og {1}",
"end": "{0} og {1}"
},
"or": {
"2": "{0} ella {1}",
"end": "{0}, ella {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/fr/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} et {1}",
"end": "{0} et {1}"
},
"or": {
"2": "{0} ou {1}",
"end": "{0} ou {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
4 changes: 4 additions & 0 deletions js/data/locale/ga/list.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"2": "{0} agus {1}",
"end": "{0}, agus {1}"
},
"or": {
"2": "{0} nó {1}",
"end": "{0}, nó {1}"
},
"unit": {
"short": {
"2": "{0} {1}",
Expand Down
Loading

0 comments on commit 9c91a1f

Please sign in to comment.