1 - es is a south-american version of Spanish, and es-ES is for Spanish from Spain. As you can imagine, there are quite a few variations between both regions. In the available_locales.rb file you can always refer to the region, name or comment to learn more.
2 -
If it isn’t there already, you should define the language in the SUPPORTED_LOCALES section of the available_locales file and deploy your changes. After the language is added to the SUPPORTED_LOCALES list and the server is restarted, the new language will be available in the “Basic details” section in Admin site.
3 -
This is a setting per community and you can change this by modifying the language order in the communities.settings file. You can edit the database directly (be careful as it’s a bit specific formatting there!) or use the following Rails command:
find your marketplace by id: com = Community.find(<community_id>)
look at the currently available locales: com.settings["locales"]
configure your new set and order or locales, for example: com.settings["locales"] = ["en", "fr", "es-ES"]
2a. Correct. This adds a new language to the “system” in general and makes it available in the admin panel language selection.
2b. You can then simply select it from your admin panel in the “Basic details” section to enable it in your marketplace.