Use device locale to display the untrusted device alert (#6194)
This commit is contained in:
parent
336aeedd4a
commit
6e2782ae1e
1 changed files with 3 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue