Update lang.rs

Added German language.

Regards.
Marcel Küsters
This commit is contained in:
Marcel Küsters 2022-02-15 11:52:00 +01:00 committed by GitHub
parent 2f4d02c2bf
commit b0e6a59ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@ mod en;
mod fr;
mod it;
mod tw;
mod de;
#[cfg(not(any(target_os = "android", target_os = "ios")))]
pub fn translate(name: String) -> String {
@ -30,6 +31,7 @@ pub fn translate_locale(name: String, locale: &str) -> String {
"cn" => cn::T.deref(),
"it" => it::T.deref(),
"tw" => tw::T.deref(),
"de" => tw::T.deref(),
_ => en::T.deref(),
};
if let Some(v) = m.get(&name as &str) {