Skip to content

Commit

Permalink
Merge pull request #64 from acolombier/feat/french-translation
Browse files Browse the repository at this point in the history
Adding french translation
  • Loading branch information
GyulyVGC authored Feb 8, 2023
2 parents 878a0b5 + fda9e94 commit ab5e9f7
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/enums/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ pub enum Language {
EN,
/// Italian.
IT,
/// French.
FR,
}

impl Default for Language {
Expand All @@ -16,12 +18,13 @@ impl Default for Language {
}

impl Language {
pub(crate) const ALL: [Language; 2] = [Language::EN, Language::IT];
pub(crate) const ALL: [Language; 3] = [Language::EN, Language::IT, Language::FR];

pub fn get_radio_label(&self) -> &str {
match self {
Language::EN => "English",
Language::IT => "Italiano",
Language::FR => "Français",
}
}
}
Loading

0 comments on commit ab5e9f7

Please sign in to comment.