Which sentence is more formal?

 - The company mostly just wants to serve its locals.
 - The company's main goal is to serve the local community.
The second sentence is less formal. You can tell because it uses conversational language (locals).
The first sentence uses formal language in place of the conversational language, so it is more formal overall.