AppContext

Interface

This interface defines the properties that are not changed after the app loaded.

Properties

PropertyTypeNotes
boolean

Indicates whether the app is loaded in builder.

boolean

Whether the app is oriented right to left.

boolean

Indicates whether access is from a touch device.

string

The locale that the experience will use. The user's profile is used for sign-in users, while the browser's locale is used for anonymous users.

string

The best match translation locale. All of the supported translations can be found this way:

isInBuilder

Interface Property
isInBuilder: boolean

Indicates whether the app is loaded in builder.

isRTL

Interface Property
isRTL: boolean

Whether the app is oriented right to left.

isTouchDevice

Interface Property
isTouchDevice: boolean

Indicates whether access is from a touch device.

locale

Interface Property
locale: string

The locale that the experience will use. The user's profile is used for sign-in users, while the browser's locale is used for anonymous users.

translatedLocale

Interface Property
translatedLocale: string

The best match translation locale. All of the supported translations can be found this way:

Use dark colors for code blocksCopy
1
import {translatedLocales} from 'jimu-core'

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.