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

export default function Footer({currentUser, isEn}) {
    return (
        <div className="footer">
            <div className="footer-inner">
                <span><a href={isEn ? currentUser.config.helpLinkEn : currentUser.config.helpLinkNl} target="_blank">{currentUser.productName}</a></span>
                <span><a href={isEn ? currentUser.config.helpTosEn : currentUser.config.helpTosNl} target="_blank">{I18n.t("footer.terms")}</a></span>
                <span><a href={`mailto:${currentUser.config.supportEmail}`} target="_blank">{currentUser.config.supportEmail}</a></span>
            </div>
        </div>
    );
}
<commit_msg>stop using the variable isEn and use the locale variables<commit_after>import React from "react";
import I18n from "i18n-js";
import PropTypes from "prop-types";

export default function Footer({currentUser}) {
    return (
        <div className="footer">
            <div className="footer-inner">
                <span><a href={I18n.locale === "en" ? currentUser.config.helpLinkEn : I18n.locale === "nl" ? currentUser.config.helpLinkNl : currentUser.config.helpLinkPt} target="_blank">{currentUser.productName}</a></span>
                <span><a href={I18n.locale === "en" ? currentUser.config.helpTosEn : I18n.locale === "nl" ? currentUser.config.helpTosNl : currentUser.config.helpTosPt} target="_blank">{I18n.t("footer.terms")}</a></span>
                <span><a href={`mailto:${currentUser.config.supportEmail}`} target="_blank">{currentUser.config.supportEmail}</a></span>
            </div>
        </div>
    );
}

{'fraction_non_alphanumeric': 0.16676628810520025, 'fraction_numerical': 0.011954572624028692, 'mean_word_length': 3.5365853658536586, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '2487153', 'n_tokens_mistral': 529, 'n_tokens_neox': 514, 'n_words': 90}