<our-dictionary>
<our-dictionary> outputs a translation from Umbraco’s Translation section in the language of the current page.
<h3><our-dictionary key="home">My Header</our-dictionary></h3><h3><our-dictionary key="home" fallback-lang="da-DK">My Header</our-dictionary></h3>How a translation is chosen
Section titled “How a translation is chosen”- It finds the dictionary item with the
key. - It uses the translation for the current page’s culture.
- If there isn’t one and
fallback-langis set, it uses the translation for that language. - If there’s still no translation, the content inside the tag is left as it is.
Attributes
Section titled “Attributes”| Attribute | What it does |
|---|---|
key |
The dictionary item’s key. |
fallback-lang |
A culture, such as da-DK, to use when the current page’s language has no translation. |