Skip to content

<our-dictionary>

Added in v0.1.0

<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>
  1. It finds the dictionary item with the key.
  2. It uses the translation for the current page’s culture.
  3. If there isn’t one and fallback-lang is set, it uses the translation for that language.
  4. If there’s still no translation, the content inside the tag is left as it is.
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.