Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/lang.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ mod fa;
mod gu;
mod fr;
mod he;
mod hi;
mod hr;
mod hu;
mod id;
Expand Down Expand Up @@ -48,6 +49,7 @@ mod vi;
mod ta;
mod ge;
mod fi;
mod ml;

pub const LANGS: &[(&str, &str)] = &[
("en", "English"),
Expand Down Expand Up @@ -96,6 +98,8 @@ pub const LANGS: &[(&str, &str)] = &[
("ta", "தமிழ்"),
("ge", "ქართული"),
("fi", "Suomi"),
("ml", "മലയാളം"),
("hi", "हिंदी"),
("gu", "ગુજરાતી"),
];

Expand Down Expand Up @@ -175,6 +179,8 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"sc" => sc::T.deref(),
"ta" => ta::T.deref(),
"ge" => ge::T.deref(),
"ml" => ml::T.deref(),
"hi" => hi::T.deref(),
"gu" => gu::T.deref(),
_ => en::T.deref(),
};
Expand Down
Loading
Loading