summaryrefslogtreecommitdiff
path: root/_includes/snippets/get-string-from-locale-config.html
blob: 03325fab2efc65b5661ad66e7e2b067a26033f75 (plain)
1
2
3
4
5
6
7
{%- include snippets/get-lang.html -%}
{%- assign _lang = __return -%}
{%- if include.locale[_lang] -%}
  {%- assign __return = include.locale[_lang] -%}
{%- else -%}
  {%- assign __return = include.locale.en -%}
{%- endif -%}