This is an automated email from the git hooks/post-receive script.
cohosh pushed a commit to branch main in repository pluggable-transports/snowflake-webext.
The following commit(s) were added to refs/heads/main by this push: new c63245d right-align text if language is arabic or farsi c63245d is described below
commit c63245d7cfa4952a0f3619a3012430f1c8bc3db8 Author: luciole luciole@systemli.org AuthorDate: Mon Oct 31 21:46:49 2022 +0100
right-align text if language is arabic or farsi --- static/index.js | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/static/index.js b/static/index.js index e52c42f..6861459 100644 --- a/static/index.js +++ b/static/index.js @@ -65,6 +65,9 @@ fetch(`./_locales/${gotLang}/website.json`) .then((json) => { var language = document.getElementById('language-switcher'); var lang = `${gotLang}`; + if ((lang == "ar") || (lang == "fa")) { + document.body.setAttribute('style', 'text-align:right'); + } language.innerText = `${availableLangs.get(lang)} (${lang})`; var messages = new Messages(json); fill(document.body, (m) => {
tor-commits@lists.torproject.org