Sha256: b9b54c86d8ae4e9c3134afd410745fb9cec6b77def3be4978106de7093bff107
Contents?: true
Size: 1013 Bytes
Versions: 1
Compression:
Stored size: 1013 Bytes
Contents
{%- assign key = include.key -%} {%- assign code = include.lang | default: page.lang | default: site.lang -%} {%- 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.2 | _includes/localize |