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
| Name | Type | Description |
|---|---|---|
config | ApplicationConfig | Application startup settings. |
Type signature
ts
type ApplicationConfig = {
locale?: string;
isDarkTheme?: boolean;
isZoomDisabled?: boolean;
};
declare function initApplication(config: ApplicationConfig): void;