We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Message Syntax 语法链接: Link
在一些场景下我们会需要给单一的国际化配置传入不同的参数,这样我们就能只维护一个 id 对应的配置
目前需要实现简单的参数配置👉Simple Argument
我们希望能够通过特殊的字符串表示含有参数的文本,以让 react-intl-linter 插件能够识别,例子🌰:
// 目标特殊文本 const message = 'react-intl=你好,{name: 约翰}' // 👇 // 替换后的 react-intl 代码 const intl = intl.formatMessage({ id: "HELLO_NAME" }, {name: "约翰"}) // 拿去翻译的结果,真正的内容由参数传递 const transTarget = '你好,{name}' // 处理后供选择的 intlId const intlId = 'HELLO_NAME' // 翻译后的中文结果 const transZHResult = '你好,{name}' // 翻译后的英文结果 const transENResult = 'Hello, {name}'
The text was updated successfully, but these errors were encountered:
feat: update simple argument validate (#4)
a234520
feat: update client simple argument validate (#4)
8155743
No branches or pull requests
描述
Message Syntax 语法链接: Link
在一些场景下我们会需要给单一的国际化配置传入不同的参数,这样我们就能只维护一个 id 对应的配置
目前需要实现简单的参数配置👉Simple Argument
期望
我们希望能够通过特殊的字符串表示含有参数的文本,以让 react-intl-linter 插件能够识别,例子🌰:
The text was updated successfully, but these errors were encountered: