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
5.33.2
有些时候我们想在自己拓展的组件中用 cancel 和 ok 这样的通用文案,这时候我们只能自己写本地化逻辑,判断语言环境,加载对应的字符串。而如果 antd-mobile 能将内部使用的 useConfig 钩子开放给外部开发者使用,则会大大简化这种场景所需要的代码:
function MyButton() { const { locale } = useConfig(); return <Button>{locale.common.cancel}</Button> }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version of antd-mobile
5.33.2
What is this feature about?
有些时候我们想在自己拓展的组件中用 cancel 和 ok 这样的通用文案,这时候我们只能自己写本地化逻辑,判断语言环境,加载对应的字符串。而如果 antd-mobile 能将内部使用的 useConfig 钩子开放给外部开发者使用,则会大大简化这种场景所需要的代码:
The text was updated successfully, but these errors were encountered: