-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathvariable-core.liquid
44 lines (42 loc) · 1.03 KB
/
variable-core.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{%- comment -%}
++++++++++++++++++++++++++++++++++
+ i18 Text utilities
+
+ Utilities variable that support i18n text across this theme
++++++++++++++++++++++++++++++++++
{%- endcomment -%}
{%- assign setting-minifiedSuffix = ".min" -%}
{%- include settings.liquid -%}
{%- capture i18nText-lang -%}
{%- if page.lang -%}
{{ page.lang }}
{%- elsif page.language -%}
{{ page.language }}
{%- elsif site.lang -%}
{{ site.lang }}
{%- else -%}
fr
{%- endif -%}
{%- endcapture -%}
{%- capture i18nText-langDir -%}
{%- if page.langDir -%}
{{ page.langDir }}
{%- elsif site.langDir -%}
{{ site.langDir }}
{%- else -%}
ltr
{%- endif -%}
{%- endcapture -%}
{%- capture setting-website -%}
{%- if site.website and site.website.en and i18nText-lang == "en" -%}
{{ site.website.en }}
{%- elsif site.website and site.website.fr and i18nText-lang == "fr" -%}
{{ site.website.fr }}
{%- elsif site.website -%}
{{ site.website }}
{%- else -%}
#
{%- endif -%}
{%- endcapture -%}
{%- include i18n-core.liquid -%}
{%- include i18n.liquid -%}