[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [pluggable-transports/snowflake-webext] branch main updated: right-align text if language is arabic or farsi



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@xxxxxxxxxxxx>
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) => {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits