def get_translated(translation, lang=None):
    """Get a specific translation from a TranslatedString."""
    # If we don't find the requested language, return this
    lang = lang or "EN"

    if not translation:
        # If empty, return.
        return None

    for t in translation:
        if t.language == lang:
            return t.text

    # If lang not found, return arbitrary text.
    return translation[0].text