How to use the umi-plugin-locale._setIntlObject function in umi-plugin-locale

To help you get started, we’ve selected a few umi-plugin-locale examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github crawlab-team / artipub / src / pages / .umi / LocaleWrapper.jsx View on Github external
let sfc = (props, context) => {
    _setIntlObject(context.intl);
    return props.children;
  };
  sfc.contextTypes = {