check locale