check locale is in allowed
check locale is in allowed