Sha256: 6a3ef61fa7bcd5a365ad84e89f6b106cbc8c2cb404e4f980f3df12dcd1641048
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
{%- assign key = include.key -%} {%- assign code = include.language | default: page.language | default: site.language -%} {%- assign primary = code | split: "-" | first -%} {%- assign debug = "<span class="h-debug">" | append: key | append: "</span>" -%} {%- if include.is_plural or include.count > 1 -%} {%- assign plural_key = key | append: "_plural" -%} {%- assign text = site.data.databook.locale.[code].[plural_key] | default: site.data.databook.locale.[code].[key] | default: site.data.databook.locale.[primary].[plural_key] | default: site.data.databook.locale.[primary].[key] | default: include.default | default: debug -%} {%- else -%} {%- assign text = site.data.databook.locale.[code].[key] | default: site.data.databook.locale.[primary].[key] | default: include.default | default: debug -%} {%- endif -%} {%- assign text = text | replace: ":param1", include.param1 | replace: ":param2", include.param2 | replace: ":param3", include.param3 -%} {{- text -}}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
databook-theme-0.1.1 | _includes/localize |