Skip to content
Snippets Groups Projects
  • chrisgarrity's avatar
    8136ac4f
    Move IntlProvider into GUI to support integration with www · 8136ac4f
    chrisgarrity authored
    This is taking advantage of the fact that react-intl can support nested IntlProviders. GUI will use it’s own ConnectedIntlProvider, that maintains the translations in redux, while www will continue to have it’s own IntlProvider that is initialized when the page loads.
    
    Moving the IntlProvider into GUI meant that nothing in the playground can use injectIntl, so the default project name needed to move into the component instead of being in the reducer.
    
    The Localization HOC is added, it takes an optional onSetLanguage handler, so www can pass a function that will set the cookie that www needs.
    8136ac4f
    History
    Move IntlProvider into GUI to support integration with www
    chrisgarrity authored
    This is taking advantage of the fact that react-intl can support nested IntlProviders. GUI will use it’s own ConnectedIntlProvider, that maintains the translations in redux, while www will continue to have it’s own IntlProvider that is initialized when the page loads.
    
    Moving the IntlProvider into GUI meant that nothing in the playground can use injectIntl, so the default project name needed to move into the component instead of being in the reducer.
    
    The Localization HOC is added, it takes an optional onSetLanguage handler, so www can pass a function that will set the cookie that www needs.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.