diff --git a/src/components/footer-links/FooterNavLinks.jsx b/src/components/footer-links/FooterNavLinks.jsx
index 0bbcbbaf8..5f5217e27 100644
--- a/src/components/footer-links/FooterNavLinks.jsx
+++ b/src/components/footer-links/FooterNavLinks.jsx
@@ -2,25 +2,24 @@ import React from 'react';
import PropTypes from 'prop-types';
import { intlShape } from '@edx/frontend-platform/i18n';
import { getConfig } from '@edx/frontend-platform';
-import messages from '../Footer.messages';
import parseEnvSettings from '../../utils/parseData';
-const FooterLinkItem = ({ intl, link }) => {
- const getLocaleCode = (intl.locale.split('-')[0] === 'pt') ? 'pt' : 'en';
-
+const FooterLinkItem = ({ link, locale }) => {
const renderUrl = (url) => {
- if (typeof url === 'object') { return url[getLocaleCode]; }
+ if (typeof url === 'object') { return url[locale]; }
return url;
};
return (
- {intl.formatMessage(messages[link.title])}
+ {link.title[locale]}
);
};
const FooterLinks = ({ intl }) => {
+ const getLocaleCode = (intl.locale.split('-')[0] === 'pt') ? 'pt' : 'en';
+
const FOOTER_NAV_LINKS = getConfig().FOOTER_NAV_LINKS || process.env.FOOTER_NAV_LINKS;
const footerLinks = parseEnvSettings(FOOTER_NAV_LINKS);
@@ -28,12 +27,12 @@ const FooterLinks = ({ intl }) => {
return (