For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
The sentence feels a bit strange now. Maybe make it "depending on the script directionality of your language"?
No, there may be no script directionality associated with language. Generally, languages may have several (common) scripts having their own directionality each. Examples are mostly Central Asian ones with Latn, Cyrl, or some other being RTL, and Arab being LTR. Not in our current set but upcoming with growing browser support are also scripts running top-to-bottom lines stacked either RTL or LTR, such as some Chinese, Japanese, Mongolian, Korean, etc.
Wording should mention language, because that is what users are aware of selecting (while in fact, they select locales on the code level) and correctly mention script, since directionalities are a direct function of scripts.
While for one-script languages users may be not aware, users of languages having multiple scripts of differing directioalities would be bewildered finding MediaWiki associating a directionality with their language.
I you have a better wording, which is not too long, please go ahead!
I do know what you explained, and how the mediawiki language/scripts work. A language can have multiple scripts, but it's difficult to formulate that in a simple sentence. This setting does not depend on the language at all (but rather on the script), but language is indeed what users are used to selecting in their preferences.
I can't think of a better wording than what I proposed, but "depending on the directionality of your script AND your language" is a bit wrong.