From 005f76628893a171b66fadf7a52e8d53b41ca4f2 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 28 Jul 2022 21:20:42 +0200 Subject: [PATCH] Update lang.rs --- src/lang.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lang.rs b/src/lang.rs index ed003b3b3..ec0f3c187 100644 --- a/src/lang.rs +++ b/src/lang.rs @@ -18,6 +18,7 @@ mod sk; mod tr; mod tw; mod vn; +mod pl; lazy_static::lazy_static! { pub static ref LANGS: Value = @@ -39,6 +40,7 @@ lazy_static::lazy_static! { ("eo", "Esperanto"), ("tr", "Türkçe"), ("vn", "Tiếng Việt"), + ("pl", "Polski"), ]); } @@ -84,6 +86,7 @@ pub fn translate_locale(name: String, locale: &str) -> String { "da" => da::T.deref(), "sk" => sk::T.deref(), "vn" => vn::T.deref(), + "pl" => pl::T.deref(), _ => en::T.deref(), }; if let Some(v) = m.get(&name as &str) {