Dictionary Items
Creating Dictionary Items in Umbraco
There might be text on your site — like labels or static text — that isn't part of your content but still needs translation. Using Dictionary Items, you can store a value for each language. Dictionary Items have a unique key, which is the Name you give them. This key is used to reference the item elsewhere.
Dictionary Items are managed from the Translation section.
Adding a Dictionary Item
To add a Dictionary Item:
Go to the Translation section.
Click on Dictionary in the Translation tree and select Create.
Enter the Name for the dictionary item. Let's say Welcome.
Enter the values for the different language versions.

Click Save.
Grouping Dictionary Items
To group dictionary items:
Go to the Translation section.
Click on Dictionary in the Translation tree and select Create.
Enter the Name for the dictionary item. Let's say Contact.
Click Create.
Click on Contact and select Create.
Enter the Name of the item to be created under the Contact group.
Click Create.
Enter the values for the different language versions.

Click Save.
Editing Dictionary Items
To edit a dictionary item, follow these steps:
Go to the Translation section.
Use the Dictionary tree to locate the item you need to update/edit.
Alternatively, you can use the search field in the top-right corner.
Make the edits you need to make.
Click Save to save the changes.
Importing and exporting Dictionary Items
In some cases, you might want to use the same Dictionary Items on multiple Umbraco websites. For this, you can use the export and import functionality to quickly copy the items from one website to another.
Exporting Dictionary Items
Go to the Translation section in the Umbraco backoffice.
Locate the Dictionary Item (or group) you want to copy in the section tree.
Click ... next to the Dictionary item (or group).
Select Export....
Decide whether you want to also include descendants.
Click Export.
This will download a .udt file which you can use to import the Dictionary items on another Umbraco website.

Importing Dictionary Items
Go to the Translation section in the Umbraco backoffice.
Click ... next to the Dictionary tree.
Select Import....
Click on Import.
Find and select the
.udtfile containing the Dictionary Items.Click Open in the file browser.
Review the Dictionary Items for import.
Choose where to import the items.
Click on Import.
The Dictionary Items have now been added to your website.

Using Dictionary Items in Templates
A developer can reference a Dictionary Item from a template using its key. For example, the following renders the value of a Dictionary Item named Welcome:
Using Dictionary Item in a Multilingual website
To use Dictionary Items in a multilingual website, see the Creating a Multilingual Site article.
Related Links
Last updated
Was this helpful?