# Creating a new dictionary

## Creating an artifact

The dictionary management mechanism is similar to the way request templates are managed. To create a new dictionary or edit an existing one, go to the module **Library** and select the tab **Dictionaries**. A new dictionary will be created after clicking the button **Add dictionary**. After determining its name and location, implementation can begin.

The window of the newly added dictionary already has the language code "pl" defined:

![Figure 1. Window of the added dictionary](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/fQ2ITI2Qd9Cnk1EWGUFa/3s_files/image2023-4-7_7-26-23.png)

## Adding rows to the dictionary

The next step is to enter dictionary values. Each dictionary value consists of a key and content. Adding a new value begins with defining the key by clicking the button **Add Key** located in the upper-right corner of the window. After the row is displayed, enter its value in the KEY column and the content in the language column field. Repeat these steps for each dictionary row.

![Figure 2. Adding a new value to the dictionary](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/tOEuOjjUUZL0SmtMUJ9C/3s_files/image2023-4-7_7-27-54.png)

## Adding a language

If there is a need to add content in languages other than Polish, simply click the button **Add Language** located in the upper-right corner of the window and enter the language code (in lowercase), then fill in the appropriate keys with content.

![Figure 3. Adding another language](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/OAkukb3v5Lzp0OtELEpO/3s_files/image2023-4-7_7-28-52.png)

## Importing values

Instead of creating the dictionary manually, you can import data into it from a CSV file (instructions: [Import CSV dictionary](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/slowniki/import-slownika-csv)).

## Dictionary item order

{% hint style="info" %}
The order of items in the dictionary (and in the component retrieving values from it) can be changed using drag & drop. Values will always be displayed in the order in which they appear in the dictionary or in the order in which they are returned from the service.
{% endhint %}

## Attaching the dictionary to a component

The created dictionary can be used to create a selection list using a combobox or to populate a text field with dictionary values. Instructions for attaching it can be found here: [Attaching a dictionary data source](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/zasilanie-wartosciami-z-zewnetrznych-zrodel/podpiecie-slownikowego-zrodla-danych).
