Skip to content

Commit

Permalink
Do not display 'Needs translation' on live website
Browse files Browse the repository at this point in the history
  • Loading branch information
remibetin committed Sep 26, 2024
1 parent c0339e4 commit fe28e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/t.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{%- if source[pagelang] -%}
{%- assign phrase=source[pagelang] -%}
{%- else -%}
{%- unless site.hideTranslationHints or include.hideTranslationHints %}<mark lang="en">Needs Translation</mark> {% endunless -%}
{%- unless site.hideTranslationHints or include.hideTranslationHints or site.published == true %}<mark lang="en">Needs Translation</mark> {% endunless -%}
{%- assign phrase=include.t | prepend: '<span lang="en">' | append: '</span>' -%}
{%- endif -%}
{%- if include.replace -%}
Expand Down

0 comments on commit fe28e69

Please sign in to comment.