updates locale check