translation-badge

Renders the per-entry translation-status pill in the wiki sidebar — only on non-English pages with a known status.

Updated 2026-08-23

On this page

macros/translation-badge.html exposes the render macro that surfaces the page.extra.translation_status field as a pill. Renders nothing on English pages or when no status is set.

Source: themes/bifrost/templates/macros/translation-badge.html · visual surface: Chrome → Translation indicators

Public API#

{%/* import "macros/translation-badge.html" as translation_badge */%}

{{ translation_badge::render(
    status=page.extra.translation_status | default(value=""),
    lang=detected_lang
) }}

Status values#

StatusPill colourWhen
metadata_onlyyellowTitle + description translated; body is English.
machinemauveBody auto-translated, awaiting human pass.
humanmintFull human translation.
en_onlymuted greyEnglish fallback — no translation exists yet.

Render condition#

The macro emits no markup when either:

  • lang == "en" (English pages don’t need a translation-status pill), or
  • status is empty / unknown.

Edit this page on GitHub