This commit is contained in:
Ansh Nanda
2023-11-06 09:44:55 -08:00
parent 7df8543545
commit 7b5427ad8a
+2
View File
@@ -61,6 +61,8 @@ So the workflow is as follows:
6. Enjoy translated app! 6. Enjoy translated app!
### Common pitfalls ### Common pitfalls
These pitfalls are memoization pitfalls that will cause the components to not re-render when the locale is changed -- causing for stale translations to be shown.
```jsx ```jsx
import { msg } from "@lingui/macro"; import { msg } from "@lingui/macro";
import { i18n } from "@lingui/core"; import { i18n } from "@lingui/core";