Trails Packages
    Preparing search index...

    Interface ApplicationConfig

    Runtime application configuration.

    interface ApplicationConfig {
        chakraSystemConfig?: SystemConfig;
        colorMode?: ColorModeValue | "system";
        locale?: string;
        properties?: ApplicationProperties;
        supportedLocales?: string[];
    }
    Index
    chakraSystemConfig?: SystemConfig

    Chakra styled system object.

    Used to configure chakra's theme.

    NOTE: This setting has priority over CustomElementOptions.chakraSystemConfig.

    colorMode?: ColorModeValue | "system"

    Configures the application's initial color mode.

    Use system to use the user's preferred color mode, derived from the browser or operating system.

    Default: light.

    locale?: string

    Set this value to a locale (BCP-47 string, e.g. "en") to set the default message locale of the application.

    The default behavior is to choose an appropriate locale for the current user based on the browser's settings.

    This locale should match one of the supported message locales defined by the application's package.

    Properties specified here will override default properties of the application's packages.

    supportedLocales?: string[]

    The list of locales supported by the application.

    This allows a further restriction of the locales supported by the application, compared to the ones defined by the application's package. It is not possible to extend the supported locales defined by the package, only to restrict them.

    If this property is not set, then the application supports all locales defined by the application's package. If the values are not a valid subset of the application package supported locales, then the application will throw an error at startup.

    An empty array will disable loading of any message bundle.