def METHOD_NAME(self) -> None:
    def check_translation(phrase: str, request_type: str, *args: Any, **kwargs: Any) -> None:
        if request_type == "post":
            self.client_post(*args, **kwargs)
        elif request_type == "patch":  # nocoverage: see comment below
            self.client_patch(*args, **kwargs)
        email_message = mail.outbox[0]
        self.assertIn(phrase, email_message.body)
        for i in range(len(mail.outbox)):
            mail.outbox.pop()
    hamlet = self.example_user("hamlet")
    hamlet.default_language = "de"
    hamlet.save()
    realm = hamlet.realm
    realm.default_language = "de"
    realm.save()
    stream = get_realm_stream("Denmark", realm.id)
    invite_expires_in_minutes = 2 * 24 * 60
    self.login_user(hamlet)
    # TODO: Uncomment and replace with translation once we have German translations for the strings
    # in confirm_new_email.txt.
    # Also remove the "nocoverage" from check_translation above.
    # check_translation("Viele Grüße", "patch", "/json/settings", {"email": "hamlets-new@zulip.com"})
    check_translation(
        "Incrível!",
        "post",
        "/accounts/home/",
        {"email": "new-email@zulip.com"},
        HTTP_ACCEPT_LANGUAGE="pt",
    )
    check_translation(
        "Danke, dass du", "post", "/accounts/find/", {"emails": hamlet.delivery_email}
    )
    check_translation(
        "Hallo",
        "post",
        "/json/invites",
        {
            "invitee_emails": "new-email@zulip.com",
            "stream_ids": orjson.dumps([stream.id]).decode(),
            "invite_expires_in_minutes": invite_expires_in_minutes,
        },
    )
    with self.settings(DEVELOPMENT_LOG_EMAILS=True):
        enqueue_welcome_emails(hamlet)
    # TODO: Uncomment and replace with translation once we have German translations for the strings
    # in account_registered emails.
    # check_translation("Viele Grüße", "")