Skip to content

Commit

Permalink
Only show the missing translation banner in OAS pages if the locale is
Browse files Browse the repository at this point in the history
not english

Compare locales instead of strings.
  • Loading branch information
fabianrbz committed Nov 19, 2024
1 parent e77efe4 commit ccb10bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
</script>
{% endif %}

{% if site.locale != 'en' and page.translation_fallback == true %}
{% if site.locale != site.default_locale and page.translation_fallback == true %}
{%- capture banner %}{%- t _includes.do_not_translate_banner.text -%}{%- endcapture -%}
<script>
window.pageI18n = { "banner": {{ banner | rstrip | jsonify }} }
Expand Down

0 comments on commit ccb10bb

Please sign in to comment.