import intl from 'react-intl-universal';
export default function Custom404() {
return <h1>{intl.get('没有找到该资源').defaultMessage('404 - 没有找到该资源')}</h1>;
}
//package.json
"intl:extract": "react-intl-universal-extract --cmd extract --source-path ./ --output-path ./lang/locales/zhCN.json --verbose",
In the zhCN.json file, the content cannot be extracted: intl.get('没有找到该资源').defaultMessage('404 - 没有找到该资源')
so, I suspect react-intl-universal-extract does not support Chinese keys