@dynatrace-sdk/user-preferences
v1.1.1
Published
Obtain the currently logged-in user preferences, like theme or language.
Downloads
1,063
Readme
User preferences
A Dynatrace AppEngine SDK library allowing to obtain the currently logged-in user preferences, i.e. the theme, language, and regional format of date-time, currency, and numeric values.
npm install @dynatrace-sdk/user-preferences
Example usage
import { getTheme } from "@dynatrace-sdk/user-preferences";
const theme = getTheme(); // 'auto' | 'dark' | 'light'
API reference
See the package reference in the Dynatrace Developer.