2023-05-06 07:22:29 +08:00
|
|
|
{% comment %}
|
|
|
|
Detect appearance language and return it through variable "lang"
|
|
|
|
{% endcomment %}
|
2024-03-04 20:09:39 +01:00
|
|
|
{% if site.data.locales[page.lang] %}
|
|
|
|
{% assign lang = page.lang %}
|
|
|
|
{% elsif site.data.locales[site.lang] %}
|
2023-05-06 07:22:29 +08:00
|
|
|
{% assign lang = site.lang %}
|
|
|
|
{% else %}
|
|
|
|
{% assign lang = 'en' %}
|
|
|
|
{% endif %}
|