/** * Represents a language available on the site. * * An object containing information about a language, including its ID, * display name, regional format, URL, and whether it's the primary language. */ export interface Language { /** * Language ID. For example, `"en"`, `"fr"`, `"es"`, `"en-AU"`. */ id: string | undefined; /** * Display name of the language. For example, `"English"`, `"Français"`, `"Español"`, `"English (Australia)"`. */ displayName: string | undefined; /** * Regional format identifier. For example, `"en-US"`, `"fr-FR"`, `"es-ES"`. */ regionalFormat: string | undefined; /** * Site URL for this language. For example, `"https://mysite.com/en"`. * URLs for sites hosted outside of Wix are also supported. */ url: string | undefined; /** * Whether this is the primary language for the site. */ primary: boolean | undefined; /** * How site visitors and search engines see a site's URL for this language. */ resolutionMethod: ResolutionMethod | undefined; } /** * Locale information */ export interface Locale { /** * Language code. For example, `"en"`, `"fr"`. */ languageCode?: string; /** * Country code. For example, `"US"`, `"FR"`. */ country?: string; } /** * How site visitors and search engines see a site's URL for the language. */ export declare enum ResolutionMethod { /** * Example: `"https://mysite.com/en?lang=en"` */ QUERY_PARAM = "QUERY_PARAM", /** * Example: `"https://en.mysite.com"` */ SUBDOMAIN = "SUBDOMAIN", /** * Example: `"https://mysite.com/en"` */ SUBDIRECTORY = "SUBDIRECTORY" } /** * Supported language from the multilingual API. */ export interface GlobalThisSupportedLanguage { /** * Country code. For example, `"USA"`, `"ISR"`. */ countryCode?: string; /** * Whether this is the primary language. */ isPrimary?: boolean; /** * Whether this is the visitor's primary language. */ isVisitorPrimary?: boolean; /** * Language code. For example, `"en"`, `"he"`. */ languageCode?: string; /** * URL for this language. For example, `"https://mysite.com/en"`. */ url?: string; /** * Locale information. */ locale?: Locale; /** * How site visitors and search engines see a site's URL for the language. */ resolutionMethod?: ResolutionMethod; } /** * Site language from the multilingual API (siteLanguages format) */ export interface VeloGlobalsSiteLanguage { /** * Country code. For example, `"USA"`, `"ISR"`. */ countryCode?: string; /** * Whether this is the primary language. */ isPrimaryLanguage?: boolean; /** * Language code. For example, `"en"`, `"he"`. */ languageCode?: string; /** * Locale string. For example, `"en-us"`, `"he-il"`. */ locale?: string; /** * Localized name of the language. For example, `"עברית"`. */ localizedName?: string; /** * Name of the language. For example, `"English"`, `"Hebrew"`. */ name?: string; /** * How site visitors and search engines see a site's URL for the language. */ resolutionMethod?: string; /** * SEO language code. For example, `"en-us"`, `"he-il"`. */ seoLang?: string; /** * Status of the language. For example, `"Active"`. */ status?: string; /** * Site URL for the language. */ url?: string; /** * Whether this is the site visitor's primary language. */ visitorPrimary?: boolean; } /** * Multilingual API object */ export interface Multilingual { /** * Whether auto-redirect is enabled. */ autoRedirect?: boolean; /** * Array of supported languages. */ supportedLanguages?: GlobalThisSupportedLanguage[]; /** * Array of site languages. */ siteLanguages?: VeloGlobalsSiteLanguage[]; /** * Current URL after removing language markers. Used to resolve language URLs. */ cleanUrl?: string; } interface Essentials { multilingual?: Multilingual; } /** * Global object extensions for Wix Multilingual Manager */ declare global { interface Window { essentials?: Essentials; } var __wix_site_metadata__: { multilingual?: Multilingual; } | undefined; } export {}; //# sourceMappingURL=types.d.ts.map