-
-
Notifications
You must be signed in to change notification settings - Fork 433
Closed
Description
Describe the bug
All messages defined with t`` macro doesn't change when load new lang, until we reload page
To Reproduce
in this repo examples/vite-project-react-babel change like following
Expected behavior
you can see same line with t`` doesn't change but with is change, both are imported from @lingui/macro
- jsLingui version
>=4.1.2 - Babel version
7.21.3 - Macro support:
- I'm using SWC with
@lingui/swc-plugin - I'm using Babel with
babel-macro-plugin - I'm not using macro
- Your Babel config (e.g.
.babelrc) or framework you use (Create React App, NextJs, Vite)
import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"
import { lingui } from "@lingui/vite-plugin"
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react({
babel: {
plugins: ["macros"],
},
}),
lingui(),
],
})Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
