/** * @wix/multilingual - Wix Multilingual SDK * * This package provides a type-safe interface for accessing available languages * by proxying to the browser's window.multilingual methods. */ import type { Language, ResolutionMethod } from "./types.js"; /** * Gets an array of all available languages as defined in ML. * * Provides an array of all the available languages as defined in ML. Array of Language object. * Supports URLs for sites hosted outside Wix. * * @returns Array of Language objects * * @example * ```typescript * import { listSupportedLanguages } from '@wix/site'; * * const languages = listSupportedLanguages(); * languages.forEach(lang => { * console.log(`${lang.displayName} (${lang.id}): ${lang.URL}`); * }); * * // Find primary language * const primaryLanguage = languages.find(lang => lang.primary); * if (primaryLanguage) { * console.log('Primary language:', primaryLanguage.displayName); * } * ``` */ export { listSupportedLanguages } from "./multilingual.js"; export type { Language, ResolutionMethod }; //# sourceMappingURL=index.d.ts.map