def METHOD_NAME(idea: Idea, language_code: str) -> str:
    if (
        language_code != idea.language.language_code
        and idea.translate_idea.filter(language__language_code=language_code).exists()
    ):
        return (
            idea.translate_idea.filter(language__language_code=language_code)
            .first()
            .name_translation
        )
    return idea.name