Add missing months

This commit is contained in:
Mylloon 2023-09-07 18:20:51 +02:00
parent e1fc4b7a51
commit e4aa5864eb
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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