Skip to content

Commit

Permalink
squash! WIP FrenchFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
rrouviere committed Sep 17, 2022
1 parent 1991ea1 commit 3b65c90
Show file tree
Hide file tree
Showing 137 changed files with 2,234 additions and 0 deletions.
129 changes: 129 additions & 0 deletions numbers/bin/main/config/en-us/date_time.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"decade_format": {
"1": {"match": "^\\d$", "format": "{x}"},
"2": {"match": "^1\\d$", "format": "{xx}"},
"3": {"match": "^\\d0$", "format": "{x0}"},
"4": {"match": "^[2-9]\\d$", "format": "{x0} {x}"},
"default": "{number}"
},
"hundreds_format": {
"1": {"match": "^\\d{3}$", "format": "{x_in_x00} hundred"},
"default": "{number}"
},
"thousand_format": {
"1": {"match": "^\\d00\\d$", "format": "{x_in_x000} thousand"},
"2": {"match": "^1\\d00$", "format": "{xx_in_xx00} hundred"},
"3": {"match": "^\\d{2}00$", "format": "{x0_in_x000} {x_in_x00} hundred"},
"4": {"match": "^(1\\d{3})|(\\d0\\d{2})$", "format": "{xx_in_xx00}"},
"5": {"match": "^\\d{4}$", "format": "{x0_in_x000} {x_in_x00}"},
"default": "{number}"
},
"year_format": {
"1": {"match": "^\\d\\d?$", "format": "{formatted_decade} {bc}"},
"2": {"match": "^\\d00$", "format": "{formatted_hundreds} {bc}"},
"3": {"match": "^\\d{3}$", "format": "{formatted_hundreds} {formatted_decade} {bc}"},
"4": {"match": "^\\d{2}00$", "format": "{formatted_thousand} {bc}"},
"5": {"match": "^\\d00\\d$", "format": "{formatted_thousand} {formatted_decade} {bc}"},
"6": {"match": "^\\d{2}0\\d$", "format": "{formatted_thousand} oh {formatted_decade} {bc}"},
"7": {"match": "^\\d{4}$", "format": "{formatted_thousand} {formatted_decade} {bc}"},
"default": "{number} {bc}",
"bc": "b.c."
},
"date_format": {
"date_full": "{weekday}, {month} {day}, {formatted_year}",
"date_full_no_year": "{weekday}, {month} {day}",
"date_full_no_year_month": "{weekday}, the {day}",
"today": "today",
"tomorrow": "tomorrow",
"yesterday": "yesterday"
},
"date_time_format": {
"date_time": "{formatted_date} at {formatted_time}"
},
"weekday": {
"0": "monday",
"1": "tuesday",
"2": "wednesday",
"3": "thursday",
"4": "friday",
"5": "saturday",
"6": "sunday"
},
"date": {
"1": "first",
"2": "second",
"3": "third",
"4": "fourth",
"5": "fifth",
"6": "sixth",
"7": "seventh",
"8": "eighth",
"9": "ninth",
"10": "tenth",
"11": "eleventh",
"12": "twelfth",
"13": "thirteenth",
"14": "fourteenth",
"15": "fifteenth",
"16": "sixteenth",
"17": "seventeenth",
"18": "eighteenth",
"19": "nineteenth",
"20": "twentieth",
"21": "twenty-first",
"22": "twenty-second",
"23": "twenty-third",
"24": "twenty-fourth",
"25": "twenty-fifth",
"26": "twenty-sixth",
"27": "twenty-seventh",
"28": "twenty-eighth",
"29": "twenty-ninth",
"30": "thirtieth",
"31": "thirty-first"
},
"month": {
"1": "january",
"2": "february",
"3": "march",
"4": "april",
"5": "may",
"6": "june",
"7": "july",
"8": "august",
"9": "september",
"10": "october",
"11": "november",
"12": "december"
},
"number": {
"0": "zero",
"1": "one",
"2": "two",
"3": "three",
"4": "four",
"5": "five",
"6": "six",
"7": "seven",
"8": "eight",
"9": "nine",
"10": "ten",
"11": "eleven",
"12": "twelve",
"13": "thirteen",
"14": "fourteen",
"15": "fifteen",
"16": "sixteen",
"17": "seventeen",
"18": "eighteen",
"19": "nineteen",
"20": "twenty",
"30": "thirty",
"40": "forty",
"50": "fifty",
"60": "sixty",
"70": "seventy",
"80": "eighty",
"90": "ninety"
}
}
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/day.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
day
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/days.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
days
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/hour.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hour
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/hours.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hours
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/minute.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
minute
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/minutes.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
minutes
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/second.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
second
1 change: 1 addition & 0 deletions numbers/bin/main/config/en-us/seconds.word
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
seconds
Loading

0 comments on commit 3b65c90

Please sign in to comment.