'Returns a tuple of the form:
(localized default_locale, list of localized supported locales)
for the current public version.'

@property
def supported_locales(self):

    languages = []
    version = (self.current_version or self.latest_version)
    if version:
        for locale in version.supported_locales.split(','):
            if locale:
                language = settings.LANGUAGES.get(locale.lower())
                if language:
                    languages.append(language)
    return (settings.LANGUAGES.get(self.default_locale.lower()), sorted(languages))
