From ba43b03fafd70391ddb133de6eaa68cdd8c5b0c2 Mon Sep 17 00:00:00 2001 From: manuroe Date: Fri, 9 Jun 2017 12:11:18 +0200 Subject: [PATCH] Bug report: add "locale", the device language and "app_language", the lang used within the app --- Riot/ViewController/BugReportViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Riot/ViewController/BugReportViewController.m b/Riot/ViewController/BugReportViewController.m index bf84fbccf..e1eacfe20 100644 --- a/Riot/ViewController/BugReportViewController.m +++ b/Riot/ViewController/BugReportViewController.m @@ -222,6 +222,10 @@ { userInfo[@"device_id"] = mainAccount.mxSession.matrixRestClient.credentials.deviceId; } + + userInfo[@"locale"] = [NSLocale preferredLanguages][0]; + userInfo[@"app_language"] = [[NSBundle mainBundle] preferredLocalizations][0]; + bugReportRestClient.others = userInfo; // Screenshot