def get_localized_name(name):
    """Returns the localizedName from the name object"""
    locale = "{}_{}".format(
        name["preferredLocale"]["language"],
        name["preferredLocale"]["country"]
    )
    return name['localized'].get(locale, '')