yannstatic/_includes/snippets/get-string-from-locale-config.html

8 lines
227 B
HTML
Raw Normal View History

2024-10-31 20:18:37 +01:00
{%- include snippets/get-lang.html -%}
{%- assign _lang = __return -%}
{%- if include.locale[_lang] -%}
{%- assign __return = include.locale[_lang] -%}
{%- else -%}
{%- assign __return = include.locale.en -%}
{%- endif -%}