Skip to content

Commit 86cdfe6

Browse files
Copilotbrunoborges
andcommitted
Add Arabic (ar) translation: locales, RTL support, UI strings, and 112 content files
Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
1 parent aba132c commit 86cdfe6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

html-generators/generate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ def generate_html(template, why_card_template, related_card_template,
223223
"supportDescription": escape(data["support"]["description"]),
224224
"supportBadge": _support_badge(data["support"]["state"]),
225225
"supportBadgeClass": _support_badge_class(data["support"]["state"]),
226+
"locale": "en",
227+
"htmlDir": "ltr",
226228
"canonicalUrl": f"{BASE_URL}/{cat}/{slug}.html",
227229
"flatUrl": f"{BASE_URL}/{slug}.html",
228230
"titleJson": json_escape(data["title"]),
@@ -285,6 +287,8 @@ def main():
285287
index_html = replace_tokens(index_template, {
286288
"tipCards": tip_cards,
287289
"snippetCount": str(count),
290+
"locale": "en",
291+
"htmlDir": "ltr",
288292
})
289293
with open(os.path.join(SITE_DIR, "index.html"), "w") as f:
290294
f.write(index_html)

0 commit comments

Comments
 (0)