Skip to content

fix(i18n): Add RTL Detection based on Config Set Language#2100

Merged
jackyzha0 merged 4 commits intojackyzha0:v4from
pourmand1376:fix_rtl
Sep 17, 2025
Merged

fix(i18n): Add RTL Detection based on Config Set Language#2100
jackyzha0 merged 4 commits intojackyzha0:v4from
pourmand1376:fix_rtl

Conversation

@pourmand1376
Copy link
Copy Markdown
Contributor

@pourmand1376 pourmand1376 commented Aug 24, 2025

Hi, I've recently started using this great system you've created. And I quickly understood that RTL is not automatically supported.

I added RTL | LTR definitions to locales file. So, we wouldn't need to make any changes to support new languages.

After Changes, it would be like this for RTL languages.

CleanShot 2025-08-24 at 15 49 23@2x

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 24, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview 3fbd118

@pourmand1376 pourmand1376 changed the title fix: Add RTL automatic detection to base.scss fix: Add RTL Detection based on Config Set Languages Aug 24, 2025
@pourmand1376 pourmand1376 changed the title fix: Add RTL Detection based on Config Set Languages fix: Add RTL Detection based on Config Set Language Aug 24, 2025
@pourmand1376
Copy link
Copy Markdown
Contributor Author

Hey @jackyzha0, I suppose this one should be an easy fix too.

If you can, please take a look at it and let me know if you need any changes.

@jackyzha0 jackyzha0 changed the title fix: Add RTL Detection based on Config Set Language fix(i18n): Add RTL Detection based on Config Set Language Sep 17, 2025
@jackyzha0 jackyzha0 merged commit 7a77f54 into jackyzha0:v4 Sep 17, 2025
6 checks passed
@pourmand1376 pourmand1376 deleted the fix_rtl branch September 17, 2025 23:41
Nambers pushed a commit to Nambers/quartz that referenced this pull request Oct 20, 2025
…2100)

* Add rtl automatic detection to base.scss

* Implement RTL support for Arabic and Persian locales and update HTML direction attribute in renderPage component

* Update HTML direction attribute in renderPage component to prioritize frontmatter dir value

* Refactor renderPage component to simplify HTML direction attribute assignment by removing frontmatter dir fallback
mia-riezebos pushed a commit to mia-cx/svartz that referenced this pull request Mar 4, 2026
…2100)

* Add rtl automatic detection to base.scss

* Implement RTL support for Arabic and Persian locales and update HTML direction attribute in renderPage component

* Update HTML direction attribute in renderPage component to prioritize frontmatter dir value

* Refactor renderPage component to simplify HTML direction attribute assignment by removing frontmatter dir fallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants