X Tutup
Skip to content

feat(locale): add Hebrew locale (and generic RTL issues)#587

Draft
DeepSpace2 wants to merge 1 commit intorendercv:mainfrom
DeepSpace2:hebrew-locale
Draft

feat(locale): add Hebrew locale (and generic RTL issues)#587
DeepSpace2 wants to merge 1 commit intorendercv:mainfrom
DeepSpace2:hebrew-locale

Conversation

@DeepSpace2
Copy link

@DeepSpace2 DeepSpace2 commented Dec 24, 2025

(Related to #452 and blocked by #591)

Added Hebrew as a valid locale. Also took the liberty to update line numbers in the docs.

There are still quite a few RTL issues.

PDF:

  • Sections' headers are rendered correctly, however the contents is still aligned to the left:
image

HTML:

  • The rendered html is missing <body dir="rtl">. Can be manually added by the user but would be nice if could be done automatically. The fix for this might required adding a new "rtl" boolean to locale in the schema/model.

There are possibly more issues that I haven't found or noticed yet.

As the fixes would probably be required to render other RTL languages we can use this PR as a larger initiative.

This feels like a regression from 2.3, as the CV is rendered perfectly on the web app by simply using

locale:
  language: he
image

@DeepSpace2 DeepSpace2 marked this pull request as draft December 24, 2025 20:47
@DeepSpace2 DeepSpace2 changed the title feat(locale): add hebrew locale feat(locale): add Hebrew locale (and generic RTL issues) Dec 24, 2025
@sinaatalay
Copy link
Member

Thank you! See #591 and rendercv/rendercv-typst#3

@DeepSpace2
Copy link
Author

Nice, so apparently the PDF RTL issue is solved by #591 and rendercv/rendercv-typst#3. I can wait for these to be merged and verify against my branch.

As for the HTML, I'll need to look a bit deeper as it doesn't look like it is handled by #591. Again, I'll wait for it to be merged as I need access to the added properties in https://github.com/rendercv/rendercv/blob/main/src/rendercv/renderer/html.py

@anefzaoui
Copy link

Hi @sinaatalay
Any plan to get this merged soon?

@sinaatalay
Copy link
Member

Hi @sinaatalay Any plan to get this merged soon?

Yes @anefzaoui , support for right-to-left languages is coming very soon in v2.7.

@sinaatalay sinaatalay force-pushed the main branch 3 times, most recently from cff31ca to 2b08030 Compare February 17, 2026 14:04
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