import {InjectionToken} from "@angular/core"; export type LocalessBrowserConfig = { /** * A fully qualified domain name with protocol (http/https) and port. * * Example: https://my-localess.web.app */ origin: string; /** * Localess space ID can be found in the Localess Space settings */ spaceId: string; /** * Path to the assets */ assetPathPrefix: string; /** * Enable debug mode */ debug?: boolean; }; export const LOCALESS_BROWSER_CONFIG = new InjectionToken( 'LOCALESS_BROWSER_CONFIG', { providedIn: 'root', factory: () => defaultBrowserConfig } ); export const defaultBrowserConfig: LocalessBrowserConfig = { origin: '', spaceId: '', assetPathPrefix: '', };