<commit_before>import React from "react";
import PropTypes from "prop-types";

export default function InvitationInfo({invitation, locale = "en"}) {
    return locale === "en" ?
        <div className="invitation_info">
            <p className="info">You have been invited by {invitation.inviter} to join team {invitation.teamName}.</p>
            <span className="by-file">This invitation {invitation.expired ? "is expired" :
                `will expire in ${invitation.daysValid} days`} .</span>
        </div> : locale === "nl" ?
            <div className="invitation_info">
                <p className="info">Je bent door {invitation.inviter} uitgenodigd om lid te worden van het
                    team {invitation.teamName}.</p>
                <p className="by-file">Deze uitnodiging verloopt over {invitation.daysValid} dagen.</p>
            </div> :
            <div className="invitation_info">
                <p className="info">Je abaixou a porta {invitation.inviter} para abrir a tampa da equipe {invitation.teamName}.</p>
                <p className="by-file">Desfrute de mais de {invitation.daysValid} dias.</p>
            </div>;

}

InvitationInfo.propTypes = {
    locale: PropTypes.string.isRequired,
    invitation: PropTypes.object.isRequired
};
<commit_msg>correcting the translations to Portuguese<commit_after>import React from "react";
import PropTypes from "prop-types";

export default function InvitationInfo({invitation, locale = "en"}) {
    return locale === "en" ?
        <div className="invitation_info">
            <p className="info">You have been invited by {invitation.inviter} to join team {invitation.teamName}.</p>
            <span className="by-file">This invitation {invitation.expired ? "is expired" :
                `will expire in ${invitation.daysValid} days`} .</span>
        </div> : locale === "nl" ?
            <div className="invitation_info">
                <p className="info">Je bent door {invitation.inviter} uitgenodigd om lid te worden van het
                    team {invitation.teamName}.</p>
                <p className="by-file">Deze uitnodiging verloopt over {invitation.daysValid} dagen.</p>
            </div> :
            <div className="invitation_info">
                <p className="info">Foi convidado por {invitation.inviter} a juntar-se ao Grupo {invitation.teamName}.</p>
                <p className="by-file">Este convite irá expirar em {invitation.daysValid} dias.</p>
            </div>;

}

InvitationInfo.propTypes = {
    locale: PropTypes.string.isRequired,
    invitation: PropTypes.object.isRequired
};

{'fraction_non_alphanumeric': 0.127063339731286, 'fraction_numerical': 0.0, 'mean_word_length': 2.722857142857143, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7317768', 'n_tokens_mistral': 747, 'n_tokens_neox': 743, 'n_words': 196}