Update StatesController.php

Fixed the locale problem. Now it saves locales for all installed languages.