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 type | Description |
---|---|
string | language defined in user preferences. |
getRegionalFormat
getRegionalFormat(): string
Retrieves the user regional format.
Returns
Return type | Description |
---|---|
string | regional format defined in user preferences. |
getTheme
getTheme(): ThemeType
Retrieves the user preferred theme.
Returns
Return type | Description |
---|---|
string | theme defined in user preferences. |
getTimezone
Still have questions?
Find answers in the Dynatrace Community