i have changed the funcation set_language() to be able to accept a parameter the language i wish to set, i need to know if there's any way we can modify the .html code in order to be able to access this function and also to change the <html dir="rtl"> tag dynamicly , as i did some research i know that we don't have any python scripts in html, so i need to have a solution for language changing if you have any.
i have thought about some solution:
- making 2 instances of calibre on the server, and switch from one instance to another but i think it wont work because calibre need to be restarted in order to change the language.
any suggestions ?