Skip to content

react-intl-universal-extract not work for Chinese #165

@hongdeyuan

Description

@hongdeyuan
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions