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

chore(i18n): Upgrade react-intl to 3.x #396

Merged
merged 1 commit into from
Feb 20, 2020
Merged

Conversation

mickr
Copy link
Contributor

@mickr mickr commented Feb 20, 2020

No description provided.

@mickr mickr requested a review from a team as a code owner February 20, 2020 22:22
@claassistantio
Copy link

claassistantio commented Feb 20, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@jstoffan jstoffan left a comment

Choose a reason for hiding this comment

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

Nice job.

messages,
locale,
}).getChildContext().intl;
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

The react-intl docs recommend passing in a cache to prevent memory leaks. Should we do that here?

@@ -5,20 +5,15 @@
*/

import React from 'react';
import { IntlProvider } from 'react-intl';
import i18n from '../utils/i18n';
import { RawIntlProvider } from 'react-intl';

type Props = {
children?: any,
intl: Object,
};

const Internationalize = ({ children, intl }: Props) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be worth trashing this component at this point. It's just a proxy for RawIntlProvider now.

@mergify mergify bot merged commit da36b29 into box:master Feb 20, 2020
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.

3 participants