language-data/weblate_language_data/rtl.py
Michal Čihař c9339844bb fix: improve RTL data
- use CLDR likely subtags dataset to guess direction based on the script
- revert w3c originated changes as the page lists languages which use
  RTL in some script variant and not by default
- This reverts commit 8fb5e0770c.

Fixes #2357
2026-03-31 13:21:18 +02:00

97 lines
1.3 KiB
Python

# Copyright © Michal Čihař <michal@weblate.org>
#
# SPDX-License-Identifier: MIT
"""
Language data definitions.
This is an automatically generated file, see scripts/generate-language-data.py
Do not edit, please adjust language definitions in following repository:
https://github.com/WeblateOrg/language-data
"""
# pylint: disable=line-too-long,too-many-lines
# List of RTL languages
RTL_LANGS: set[str] = {
"ae",
"aeb",
"aii",
"ajp",
"apc",
"apd",
"ar",
"ar_BH",
"ar_DZ",
"ar_EG",
"ar_KW",
"ar_LY",
"ar_MA",
"ar_SA",
"ar_YE",
"ara",
"arc",
"arq",
"ars",
"arz",
"ave",
"azb",
"bal",
"bej",
"bgn",
"bqi",
"brh",
"chg",
"ckb",
"ckb_IR",
"dcc",
"dv",
"egy",
"fa",
"fa_AF",
"fas",
"glk",
"ha",
"haz",
"he",
"heb",
"hnd",
"hno",
"jpr",
"jrb",
"khw",
"ks",
"lad",
"lki",
"lrc",
"luz",
"mey",
"mfa",
"ms_Arab",
"mzn",
"nqo",
"ota",
"pa_PK",
"pal",
"per",
"phn",
"prs",
"ps",
"rhg",
"rmt",
"sam",
"sd",
"sdh",
"skr",
"swb",
"syc",
"syr",
"thv",
"tmh",
"ttq",
"ug",
"ur",
"ur_IN",
"urd",
"yi",
}