Revert "Hide deprecation warning about locales validation"

This reverts commit e0b210e879af0bf7ddb8828f240b5f4f70d90bad.