From 6e2782ae1ebbc3aeac8c0abfff7e63bb49d864b2 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Tue, 26 Apr 2022 07:46:21 -0400 Subject: [PATCH] Use device locale to display the untrusted device alert (#6194) --- app/init/managed_app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/init/managed_app.ts b/app/init/managed_app.ts index aab984bfb..4ecaedc34 100644 --- a/app/init/managed_app.ts +++ b/app/init/managed_app.ts @@ -79,7 +79,9 @@ class ManagedApp { }; alertDeviceIsUntrusted = () => { - const locale = DEFAULT_LOCALE; // TODO: Get current user or system locale + // We use the default device locale as this is an app wide setting + // and does not require any server data + const locale = DEFAULT_LOCALE; const translations = getTranslations(locale); Alert.alert( translations[t('mobile.managed.blocked_by')].replace('{vendor}', this.vendor),