# Language selector widget

## Overview

You use the *Language selector* widget if you use multiple languages for your website. The widget allows site visitors to switch between the different language versions of a page.

> info **PREREQUISITES**: You are in multilingual mode. For more information, see [Setup languages](https://www.progress.com/documentation/sitefinity-cms/administration-language-settings).

## Place the widget on the page

> info **NOTE**: Personalization of this widget is not supported.

You can place a *Language selector* widget only inside a *Section* widget.\
To do this, perform the following:

1. Inside a column from the *Section* widget, click *Add widget here…*
2. Select the *Navigation & Search* tab.
3. Under *Main navigation*, click the *LANGUAGE SELECTOR* widget.\
   The widget is placed inside the selected column of the *Section* widget.

## Configure the widget

To configure the widget, perform the following:

1. In the page editor, hover over the widget.
2. Click the toggle menu in the widget label.
3. Click ![DotNetCore8](https://www.progress.com/documentation/sitefinity-cms/assets/e29dbb581da97d8aa6aad6943253dd7a/dotnetcore8.jpg "DotNetCore8") (*Edit*).

## Language selector setup

In this section, choose how to display language options in the widget.\
Perform the following:

1. In *For languages without translations…*, choose how the widget behaves when a language is added, for which the page has no translation.  Select one of the following:
   * *Hide the link to the missing translation*\
     The system displays only links to existing translations.
   * *Redirect to home page of language for missing translation*\
     The system displays links to all added languages, but for the languages for which there is no translation, the system redirects to the homepage of the respective language.
2. In *Show language names…*, select how to display the names of the languages.\
   Choose between:
   * *In native language*
     For example, français, português.
   * *In native language, capitalized*
     For example, Français, Português.
   * *In English*
     For example, French, Portuguese.

For more information, see [Translate pages](https://www.progress.com/documentation/sitefinity-cms/translate-pages).

## Display settings

In this section, choose how to display the language selector on the page.\
Perform the following:

1. In *Language selector template* dropdown, you can select a template other than the default one that will be used to display the *Language selector* widget on the website.\
   You must first have created a custom template.\
   For more information, see [Next.js pages and templates](https://www.progress.com/documentation/sitefinity-cms/next.js-pages-and-templates).
2. In *Margins*, you can choose the margins between the widget and the column where it is placed.\
   Choose from the predefined values of none, small, medium, or large.

Save your changes.

## Advanced settings

To open the advanced settings, in the upper-right corner of the *Language selector* widget page, click ![Settings](https://www.progress.com/documentation/sitefinity-cms/assets/0b5bf6d61861bf099d7f849dde3e94ea/settings-dotnetcore.jpg "Settings_DotNetCore") (*Advanced settings*).

1. Change the label\
   In *Label*, you can enter a specific name for this widget.  This name will be displayed in:
   * The page editor as a label for the widget
   * In the treeview with the page structure in the right pane of the page editor.
2. Apply custom CSS\
   In *CSS class* input field, you can choose a class name for the textbox, if later you want to set a CSS style for this particular textbox.
