Need some help with JS.

I am trying to translate this pop-up box with JS. But it does not work.

https://cdn.livechat-static.com/api/file/v2/lc/att-old/8801096/5eb311d7c7c05b74ec9202baec0cde04/Screen%20Shot%202562-01-08%20at%2011.40.49.png

Here is the JS:

jQuery(document).ready(function( $ ){
if ($("html").attr("lang") === "en" )
jQuery('.sa-icon sa-custom > h2').html("We got your appointment requested plesae wait a least 24 hr. for an confirmation.");
});

Please check and help.