Medusa-Intelligence-Corp / TranslateTribune

The World's Whisper, Loud and Clear.
https://translatetribune.com/
GNU General Public License v3.0
8 stars 6 forks source link

Add support of RTL for article pages #39

Closed ruslanpitula closed 2 months ago

ruslanpitula commented 2 months ago

Whats changed:

Description of pull request:

  1. I've added is_rtl property to config/languages.json file for languages which require RTL support
  2. I've modified config/summarizer.txt to use Jinja2 script for HTML template to check whether language is RTL, then add dir="rtl to the div of the article

Screenshots of RTL:

image image image

Screenshots of LTR:

image image