> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: language(language: string) # Method package: wixSearch # Method menu location: wixSearch --> WixSearchBuilder --> language # Method Link: https://dev.wix.com/docs/velo/apis/wix-search/wix-search-builder/language.md # Method Description: Refines a search builder to search in the specified language. The value of the search language must be a two-letter language code string of [ISO 639-1 format](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes). Defaults for `language`: + If your site is multilingual, default is the [current language](https://dev.wix.com/docs/velo/api-reference/wix-window-frontend/multilingual/current-language.md). + If your site is not multilingual, default is the [site language](https://dev.wix.com/docs/velo/api-reference/wix-window-frontend/multilingual/site-languages.md). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Add a language filter to a search ```javascript let newSearch = search.language("fr"); // French ``` ## Create a search, add a language filter, and run it ```javascript import wixSearch from 'wix-search'; // ... $w("#searchInput").onKeyPress((keyPress) => { if (keyPress.key === "Enter") { const phrase = $w("#searchInput").value; wixSearch.search(phrase) .language("pt") // Portuguese .find() .then((results) => { if (results.documents.length > 0) { let documents = results.documents; } else { console.log("No matching results"); } }) .catch((error) => { console.log(error); }); } }); ``` ---