Sep-04-2025, 08:34 AM
Hello everyone,
I'm relatively new to Python, and I’m currently building a chat platform. One problem I've encountered: I need to translate all HTML pages into many languages—ideally, I’d like to maintain a single source HTML in my language, and have it automatically displayed in the user’s language. The translation must be high-quality and preserve page layout (so the page doesn’t "shift" due to differences in text length).
I haven’t found any existing library that does this seamlessly at runtime with caching and layout awareness. Does anyone know of such a solution? Or would it make more sense to develop my own library—tentatively named **dynamic_i18n**—that handles dynamic translation using OpenAI, with caching, change detection, and layout stability?
Any pointers to related projects, libraries, or feedback would be greatly appreciated!
Thank you!
I'm relatively new to Python, and I’m currently building a chat platform. One problem I've encountered: I need to translate all HTML pages into many languages—ideally, I’d like to maintain a single source HTML in my language, and have it automatically displayed in the user’s language. The translation must be high-quality and preserve page layout (so the page doesn’t "shift" due to differences in text length).
I haven’t found any existing library that does this seamlessly at runtime with caching and layout awareness. Does anyone know of such a solution? Or would it make more sense to develop my own library—tentatively named **dynamic_i18n**—that handles dynamic translation using OpenAI, with caching, change detection, and layout stability?
Any pointers to related projects, libraries, or feedback would be greatly appreciated!
Thank you!
