Skip to content
New issue

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

[BUG] < Notification.open() 多语言组件不生效> #2660

Open
1 task done
VeejaLiu opened this issue Jan 3, 2025 · 0 comments
Open
1 task done

[BUG] < Notification.open() 多语言组件不生效> #2660

VeejaLiu opened this issue Jan 3, 2025 · 0 comments

Comments

@VeejaLiu
Copy link

VeejaLiu commented Jan 3, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Which Component

Notification

Semi Version

2.63.1

Current Behavior

调用:

      Notification.open({
        content: (
          <>
            <NotificationItem notification={notification} />
          </>
        ),
        duration: 1000,
      });

定义:

export const NotificationItem = ({ notification }: NotificationItemProps) => {
  return (
    <LocaleConsumer componentName={'NotificationItem'}>
      {(localeData: any, localeCode: string, dateFnsLocale: any) => (
        <div style={{ display: 'flex' }}>
          <div className="h-12 w-12 mr-2.5">
  .....

多语言组件始终无法生效。

Expected Behavior

No response

Steps To Reproduce

No response

ReproducibleCode

No response

Environment

- OS:
- browser:

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant