move get_available_languages to Locale class