Multilingual with RTL page rendering delay

@jonatandor35
Edited to say I fixed the problem below (removed the ; from the previous line) but now it’s thrown up a different problem for which I’ll open a new message below.

I actually tried that already and I’m having a problem with .then throwing up an error
if ( RTLLangs . includes ( lang )){
$w ( ‘#statebox8’ ). changeState ( ‘RTL’ );
. then ( $w ( ‘#statebox8’ ). show );

    } 

Any idea why this is?