Render direction dynamically based on language