From a7a527d7301d17a7f2d06d0cfc6357709ca1f5f5 Mon Sep 17 00:00:00 2001 From: Leopold Luley Date: Fri, 3 Apr 2020 16:55:07 +0200 Subject: [PATCH] Implement get_locale for GTK --- druid-shell/src/platform/gtk/application.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/druid-shell/src/platform/gtk/application.rs b/druid-shell/src/platform/gtk/application.rs index 6513b3b357..39895c4d77 100644 --- a/druid-shell/src/platform/gtk/application.rs +++ b/druid-shell/src/platform/gtk/application.rs @@ -91,8 +91,7 @@ impl Application { } pub fn get_locale() -> String { - //TODO ahem - "en-US".into() + glib::get_language_names()[0].as_str().into() } }