--- title: "Localization in Perspective" --- # Localization in Perspective > Localization in the Perspective module utilizes terms from Ignition's [Translation](appendix\expression-functions\translation\index.mdx) system. Once terms have been defined, translations can be enabled by the use of the "locale" session property. This page covers using localization in Perspective. For the Vision module, see [Localization in Vision](../../vision/working-with-vision-components/localization-in-vision/localization-in-vision.md). Changing the locale of the session can also modify number formatting behavior (e.g., on the Numeric [Entry Field](appendix\components\perspective-components\perspective-input-palette\perspective-numeric-entry-field\perspective-numeric-entry-field.md) component or [Power Chart](appendix\components\perspective-components\perspective-chart-palette\perspective-power-chart\perspective-power-chart.md) component). ## Selecting a Language Selecting a language for your Perspective session is done through [session properties](ignition-modules\perspective\perspective-sessions\session-properties.md), specifically the locale session property. By default, this property is set to the language tag "en-US" for English USA. Once you set up a additional languages in the Translation system, you can set your locale session property to different values depending on what language you want to see on your screen. :::note See this link for a full list of valid locale tags: [https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html#util-text](https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html#util-text) ::: ## Switching Languages within a Session In this example, we'll set up a dropdown list from which the user can choose a language. For this example, we've already set up a Spanish [Translation List](../../../platform/localization-and-languages/creating-translation-lists/creating-translation-lists.md). We've added a key "Hot" and its Spanish translation, "Caliente". ![](localization-in-perspective/translationManager.png) Now we'll set up a view where the user can choose between English and Spanish. 1. Create a new view and put a Label component and a Dropdown component on the view. 1. Set the text property of the label to "Hot." ![](localization-in-perspective/2020-05-13_12-19-42.png) 1. In the Project Browser, click on Perspective. The Session properties are displayed. Update the locale session property to "es-US" (the language tag for Spanish USA). ![](localization-in-perspective/2020-05-13_12-32-14.png) This results in anything in your session that contains the word "Hot" to be translated to its Spanish translation. ![](localization-in-perspective/2020-05-13_12-41-58.png) Similarly, if you set the locale session property back to "en-US", Ignition will translate your session text back to English. 1. Next we'll set up the Dropdown component with two options configured as shown below where the Spanish option is tied to the "es-US" language tag and the English option is tied to the "en-US" language tag. * options.0.value: **es-US** * options.0.label: **Espanol** * options.1.value: **en-US** * options.1.label: **English** ![](localization-in-perspective/2020-05-13_13-04-44-dropdown.png) 1. Next we'll bi-directionally bind the Dropdown's Value property to the Locale session property. In the Property editor, click the **Binding** ![]() icon for the value property. 1. On the Edit Binding screen, select the **Property Binding** type. 1. Next click the **Property Details** ![](localization-in-perspective/property_20small_24.png) icon. Scroll to the session.props.locale and click **OK**. 1. Select the Bidirectional option. Click **OK** to save the binding. ![](localization-in-perspective/2020-05-13_13-10-05.png) 1. Put the Designer into **Preview** ![](localization-in-perspective/preview_20small-15.png) mode and test the Dropdown component. Since your Dropdown component now drives your Locale session property, you will be able to see your Label value go from its Spanish to English translation as you change the language selection. ![](localization-in-perspective/2020-05-13_13-28-31.png)