fix: French album types, add map_album type test

This commit is contained in:
ThetaDev 2022-11-03 12:47:01 +01:00
parent 57abab112f
commit 6e2ba71f33
4 changed files with 38 additions and 7 deletions

View file

@ -64,8 +64,12 @@ pub fn write_samples_to_dict(project_root: &Path) {
let mut e_langs = dict_entry.equivalent.clone();
e_langs.push(lang);
collected.get(&lang).unwrap().iter().for_each(|(t, v)| {
dict_entry.album_types.insert(v.to_lowercase(), *t);
e_langs.iter().for_each(|lang| {
collected.get(&lang).unwrap().iter().for_each(|(t, v)| {
dict_entry
.album_types
.insert(v.to_lowercase().trim().to_owned(), *t);
});
});
}