Updating set_locale to be a loop rather then two resources