Skip to content

Commit

Permalink
chore: adding french translation
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Feb 8, 2023
1 parent 878a0b5 commit 2910480
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 2910480

Please sign in to comment.