{% import "macros/translate.html" as macros_translate %}

{%- set language_strings = load_data(path="i18n/" ~ lang ~ '.toml', required=false) -%}
{%- if not language_strings -%}
    {%- set language_strings = load_data(path="themes/tabi/i18n/" ~ lang ~ ".toml", required=false) -%}
{%- endif -%}
{%- set rtl_languages = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] -%}

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" {% if lang in rtl_languages %}dir="rtl"{% endif %} lang="{{ lang }}">
{% include "partials/head.html" %}
<body>
	{%- if config.extra.nav.links %}
		{% include "partials/nav.html" %}
	{%- endif %}
	<div id="main" class="container">
		{% block custom %}{% endblock %}
		{% block content %}{% endblock %}
	</div>
	{% include "partials/footer.html" %}
</body>
</html>
