LPS-40585 Fix bugs regarding locale notifications

Javascript review by @ipeychev