Use device locale to display the untrusted device alert (#6194)

This commit is contained in:
Elias Nahum
2022-04-26 07:46:21 -04:00
committed by GitHub
parent 336aeedd4a
commit 6e2782ae1e

View File

@@ -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),