Removed locales deprecation warning