Add missing months
This commit is contained in:
parent
e1fc4b7a51
commit
e4aa5864eb
1 changed files with 8 additions and 0 deletions
|
@ -77,9 +77,17 @@ async fn get_webpage(user_agent: &str) -> Result<Html, Box<dyn std::error::Error
|
||||||
fn anglophonization(date: &str) -> String {
|
fn anglophonization(date: &str) -> String {
|
||||||
let dico = HashMap::from([
|
let dico = HashMap::from([
|
||||||
("janvier", "january"),
|
("janvier", "january"),
|
||||||
|
("février", "february"),
|
||||||
("mars", "march"),
|
("mars", "march"),
|
||||||
|
("avril", "april"),
|
||||||
|
("mai", "may"),
|
||||||
|
("juin", "june"),
|
||||||
|
("juillet", "july"),
|
||||||
|
("août", "august"),
|
||||||
("septembre", "september"),
|
("septembre", "september"),
|
||||||
|
("octobre", "october"),
|
||||||
("novembre", "november"),
|
("novembre", "november"),
|
||||||
|
("décembre", "december"),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// New regex of all the french month
|
// New regex of all the french month
|
||||||
|
|
Reference in a new issue