✨ feat(i18n): add Right-to-left script support (#262)
Co-authored-by: welpo <welpo@users.noreply.github.com>
This commit is contained in:
parent
8b5a131001
commit
1d55a2963d
@ -13,6 +13,7 @@ This variable will hold all the text strings for the language #}
|
|||||||
{%- if not language_strings -%}
|
{%- if not language_strings -%}
|
||||||
{%- set language_strings = load_data(path="themes/tabi/i18n/" ~ lang ~ ".toml", required=false) -%}
|
{%- set language_strings = load_data(path="themes/tabi/i18n/" ~ lang ~ ".toml", required=false) -%}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
{% set rtl_languages = ["ar", "arc", "az", "dv", "ff", "he", "ku", "nqo", "fa", "rhg", "syc", "ur"] %}
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@ -22,7 +23,7 @@ This variable will hold all the text strings for the language #}
|
|||||||
|
|
||||||
{% include "partials/header.html" %}
|
{% include "partials/header.html" %}
|
||||||
|
|
||||||
<body>
|
<body{% if lang in rtl_languages %} dir="rtl"{% endif %}>
|
||||||
{% include "partials/nav.html" %}
|
{% include "partials/nav.html" %}
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user