diff --git a/src/components/ProfilePage.jsx b/src/components/ProfilePage.jsx
index 8b76f64..0546a1e 100644
--- a/src/components/ProfilePage.jsx
+++ b/src/components/ProfilePage.jsx
@@ -191,7 +191,7 @@ export class ProfilePage extends React.Component {
{...commonFormProps}
/>
-
+
{shouldShowAgeMessage ? : null}
),
empty: (
-
-
-
+
+
+
+
+
+
),
static: (
diff --git a/src/components/ProfilePage/Certificates.jsx b/src/components/ProfilePage/Certificates.jsx
index 39ecb03..988e249 100644
--- a/src/components/ProfilePage/Certificates.jsx
+++ b/src/components/ProfilePage/Certificates.jsx
@@ -148,7 +148,7 @@ class Certificates extends React.Component {
),
empty: (
-
+
{this.renderCertificates()}
-
+
),
static: (
diff --git a/src/components/ProfilePage/Country.jsx b/src/components/ProfilePage/Country.jsx
index d023122..beeac65 100644
--- a/src/components/ProfilePage/Country.jsx
+++ b/src/components/ProfilePage/Country.jsx
@@ -2,7 +2,9 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Form, FormFeedback, FormGroup, Input, Label } from 'reactstrap';
import { connect } from 'react-redux';
-import { FormattedMessage } from 'react-intl';
+import { injectIntl, intlShape } from 'react-intl';
+
+import messages from './Country.messages';
// Components
import FormControls from './elements/FormControls';
@@ -49,7 +51,7 @@ class Country extends React.Component {
render() {
const {
- formId, country, visibilityCountry, editMode, saveState, error,
+ formId, country, visibilityCountry, editMode, saveState, error, intl,
} = this.props;
return (
@@ -62,11 +64,7 @@ class Country extends React.Component {
),
static: (
-
+
{ALL_COUNTRIES[country]}
),
@@ -146,6 +147,9 @@ Country.propTypes = {
submitHandler: PropTypes.func.isRequired,
closeHandler: PropTypes.func.isRequired,
openHandler: PropTypes.func.isRequired,
+
+ // i18n
+ intl: intlShape.isRequired,
};
Country.defaultProps = {
@@ -159,4 +163,4 @@ Country.defaultProps = {
export default connect(
editableFormSelector,
{},
-)(Country);
+)(injectIntl(Country));
diff --git a/src/components/ProfilePage/Country.messages.jsx b/src/components/ProfilePage/Country.messages.jsx
new file mode 100644
index 0000000..9472e57
--- /dev/null
+++ b/src/components/ProfilePage/Country.messages.jsx
@@ -0,0 +1,16 @@
+import { defineMessages } from 'react-intl';
+
+const messages = defineMessages({
+ 'profile.country.label': {
+ id: 'profile.country.label',
+ defaultMessage: 'Location',
+ description: 'The label for a country in a user profile.',
+ },
+ 'profile.country.empty': {
+ id: 'profile.country.empty',
+ defaultMessage: 'Add location',
+ description: 'The affordance to add country location to a user’s profile.',
+ },
+});
+
+export default messages;
diff --git a/src/components/ProfilePage/Education.jsx b/src/components/ProfilePage/Education.jsx
index a9c3a62..a25e870 100644
--- a/src/components/ProfilePage/Education.jsx
+++ b/src/components/ProfilePage/Education.jsx
@@ -105,13 +105,16 @@ class Education extends React.Component {
),
empty: (
-
-
-
+
+
+
+
+
+
),
static: (
diff --git a/src/components/ProfilePage/Name.jsx b/src/components/ProfilePage/Name.jsx
index 4b2e1c2..201902a 100644
--- a/src/components/ProfilePage/Name.jsx
+++ b/src/components/ProfilePage/Name.jsx
@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Form, FormFeedback, FormGroup, FormText, Input, Label } from 'reactstrap';
import { connect } from 'react-redux';
-import { injectIntl, intlShape, FormattedMessage } from 'react-intl';
+import { injectIntl, intlShape } from 'react-intl';
import messages from './Name.messages';
@@ -60,7 +60,9 @@ class Name extends React.Component {