rendercv icon indicating copy to clipboard operation
rendercv copied to clipboard

Translations

Open coolusaHD opened this issue 4 months ago • 2 comments

It would be nice if the duration and the text between two dates can be translated without creating his own template

coolusaHD avatar Mar 03 '24 17:03 coolusaHD

Thank you for opening an issue! This has been requested a couple of times, and an open pull request for this (#20) already exists, but I haven’t gotten the chance to review it yet. It requires big changes, so I need to think about it in my free time.

I will keep this issue open until this is implemented.

sinaatalay avatar Mar 04 '24 00:03 sinaatalay

Copying from #14. For people that want to change the language: you can directly edit the tex file created after the render cli command. You can then use the latex_to_pdf function from this library to recreate the pdf. Simple regex can automate that as well. I just changed all the date related things to German, the headers can be translated directly in the yaml.

E.g.

from rendercv.renderer import latex_to_pdf
import pathlib

path = pathlib.Path("./rendercv_output/test_CV.tex")
latex_to_pdf(path)

Change the path to the path of your file and enjoy pls.

AndreasKarasenko avatar Mar 31 '24 19:03 AndreasKarasenko