Skip to content

initApplication ​

Applies common document-level startup settings in one call. It sets the website locale, toggles dark theme state, and optionally disables zoom. Use it from browser startup code after the document is available.

Importing ​

ts
import { initApplication } from '@almighty-shogun/utils';

Usage ​

ts
import { initApplication } from '@almighty-shogun/utils';

initApplication({
    locale: 'nl',
    isDarkTheme: true,
    isZoomDisabled: true
});

Parameters

config: ApplicationConfig
Application startup settings.

Uses ​

Type signature ​

ts
declare function initApplication(config: ApplicationConfig): void;

type ApplicationConfig = {
    locale?: Undefinable<string>;
    isDarkTheme?: Undefinable<boolean>;
    isZoomDisabled?: Undefinable<boolean>;
};

All packages are released under the MIT License.