perhaps if I used a worker, but I feel like something will go wrong one lazy way is to reload the page if the language changes