def METHOD_NAME(
    doc: Document, original_doc: Document, r: str, translator: str | None = None
):
    for par in original_doc:
        # If the paragraph is a citation, it should remain a citation in the translation
        # instead of being converted into a 'regular' translated paragraph.
        # Additionally, we want to check for a translated version of the citation that
        # matches the language of the translation being created and use it if found.
        # If one is not found, the original citation should be used.
        citation_doc_id = par.get_attr("rd")
        citation_par_id = par.get_attr("rp")
        area_citation = par.get_attr("ra")
        if citation_doc_id:
            matched_doc, citation_par_id = find_lang_matching_cite_source(
                doc, citation_doc_id, citation_par_id
            )
            if area_citation and matched_doc:
                ref_par = par.create_area_reference(
                    doc, area_citation, r="tr", rd=matched_doc.doc_id
                )
            else:
                if not matched_doc or not citation_par_id:
                    # cited document or paragraph doesn't exist, so just use the original citation
                    matched_doc = original_doc
                    citation_par_id = par.id
                from timApp.document.docparagraph import create_reference
                ref_par = create_reference(
                    doc=doc,
                    doc_id=matched_doc.doc_id,
                    par_id=citation_par_id,
                    add_rd=True,
                    r=r,
                )
        else:
            ref_par = par.create_reference(doc, translator, r, add_rd=False)
            # For area citations to work correctly in translations,
            # we need to add explicit area/area_end tags to translated
            # area paragraphs
            if r == "tr":
                from timApp.document.docparagraph import add_explicit_area_ids
                add_explicit_area_ids(par, ref_par)
        if par.is_setting():
            ref_par.set_attr("settings", "")
        doc.add_paragraph_obj(ref_par)