Skip to content

[Compiler Bug]: A bug with i18n translation after react compiler #29195

@YYGod0120

Description

@YYGod0120

What kind of issue is this?

  • React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
  • babel-plugin-react-compiler (build issue installing or using the Babel plugin)
  • eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
  • react-compiler-healthcheck (build issue installing or using the healthcheck script)

Link to repro

https://github.com/YYGod0120/yyblog

Repro steps

  1. Change the var in app/[language]/components/Typewrite.tsx to const (use var to skip the compiler and fix the bug)
  2. use pnpm dev to start project
  3. Click twice on the lanswitcher and find that the Banner is not translated after the second click.

How often does this bug happen?

Every time

What version of React are you using?

v19.0.0-rc-3f1436cca1-20240516

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions