Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1006: migrate react-intl to 2.x #1495

Merged
merged 2 commits into from
Feb 22, 2017

Conversation

mbarto
Copy link
Contributor

@mbarto mbarto commented Feb 22, 2017

No description provided.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 76.923% when pulling 7249e9c on mbarto:reactintl_2 into ff04767 on geosolutions-it:master.

@@ -57,7 +58,7 @@ describe('This test for I18N.HTML', () => {
var currentData = data["it-IT"];
var testMsg = currentData.messages[msgId];

const cmp = ReactDOM.render(<I18N.HTML msgId={msgId} messages={ita.messages} locale="it-IT"/>, document.getElementById("container"));
const cmp = ReactDOM.render(<Localized messages={ita.messages} locale="it-ITE"><I18N.HTML msgId={msgId}/></Localized>, document.getElementById("container"));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ITE or IT?

message = message[part];
});
return <FormattedHTMLMessage locales={locale} message={message} {...this.props.msgParams}/>;
return this.context.intl ? <FormattedHTMLMessage id={this.props.msgId} values={this.props.msgParams}/> : <span>{this.props.msgId || ""}</span>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

id is a property of react-intl FormattedHTMLMessage component, not a DOM id

@coveralls
Copy link

Coverage Status

Coverage increased (+0.005%) to 76.921% when pulling 50f17ce on mbarto:reactintl_2 into ff04767 on geosolutions-it:master.

@mbarto mbarto merged commit 2fe0742 into geosolutions-it:master Feb 22, 2017
@mbarto mbarto deleted the reactintl_2 branch February 22, 2017 14:41
manisandro pushed a commit to sourcepole/MapStore2 that referenced this pull request Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants