X Tutup
Skip to content

feat: Add Arabic locale support and update Typst preamble template.#591

Merged
sinaatalay merged 11 commits intorendercv:mainfrom
husam515:main
Feb 17, 2026
Merged

feat: Add Arabic locale support and update Typst preamble template.#591
sinaatalay merged 11 commits intorendercv:mainfrom
husam515:main

Conversation

@husam515
Copy link
Contributor

(Related to #452)

Added Arabic as valid locale.
There are still quite a few RTL issues.

PDF and PNG:

Works fine Sections' headers and contents are rendered correctly and aligned to the right:

Screenshot 2025-12-25 113432

HTML and MD:

The rendered html is missing . Can be manually added by the user but would be nice if could be done automatically.

This code requires the latest changes of rendercv-typst rendercv/rendercv-typst#2

@sinaatalay
Copy link
Member

This is great. I think test data needs to be updated for tests to pass. I explained that in developer guide here: Testing. I'll review this and rendercv/rendercv-typst#2 as soon as possible.

@husam515
Copy link
Contributor Author

I fixed the html and md problem now the update works complety with RTL languages and Arabic is fully supported.

In addition new variable cv_title_name in locale is added so it can be changed in the html/md output.

still the testes need to be fixed and the rendercv/rendercv-typst#2 need to be released so the update can work.

@husam515
Copy link
Contributor Author

@sinaatalay I added the required tests, but still this code needs the next release of rendercv/rendercv-typst#2 to make the the needed imports correct import "@preview/rendercv:0.2.0": *

@sinaatalay sinaatalay merged commit 4a9083c into rendercv:main Feb 17, 2026
10 checks passed
@sinaatalay
Copy link
Member

Thanks a lot!

yafei-ou pushed a commit to yafei-ou/rendercv that referenced this pull request Feb 27, 2026
* feat: Add Arabic locale support and update Typst preamble template.

* feat: add rtl support for the Full.html template

* fix: change  "'s CV" hardcoded word in the html/md outputs and make it changeable to support different languages.

* test: add tests for RTL support

* test: add tests for RTL support

* Improve implementation

* Update testdata

* Fix merge issues

* Simplify

* Add test and use type hints with type adapters

* Fix `just check` errors

---------

Co-authored-by: Khalid <khalid.pro.968@gmail.com>
Co-authored-by: Sina Atalay <79940989+sinaatalay@users.noreply.github.com>
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.

3 participants

X Tutup