Skip to main content

User Preferences

Obtain the currently logged-in user preferences, like theme or language.

npm install @dynatrace-sdk/user-preferences

Functions

getLanguage

getLanguage(): string

Retrieves the user preferred language.

Returns

Return typeDescription
stringlanguage defined in user preferences.

getRegionalFormat

getRegionalFormat(): string

Retrieves the user regional format.

Returns

Return typeDescription
stringregional format defined in user preferences.

getTheme

getTheme(): ThemeType

Retrieves the user preferred theme.

Returns

Return typeDescription
stringtheme defined in user preferences.

getTimezone

getTimezone(): string

Retrieves the user preferred timezone.

Timezone can be either in ISO 8601 or tz database format.

Returns

Return typeDescription
stringtimezone defined in user preferences.
Still have questions?
Find answers in the Dynatrace Community