Quick question, is lingui's t macro same as i18nMark? Did the i18nMark function get deprecated? It's not mentioned in the migration guide. #1795
-
Describe the bug To Reproduce import { Trans } from "@lingui/react"
export default function App() {
return <Trans>This should be translated!</Trans>
} Expected behavior Additional context
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The |
Beta Was this translation helpful? Give feedback.
-
Btw what does it do @andrii-bodnar? I can't see what it does in old docs (since there are no old docs), I want to know what it does since I want to migrate to latest version of lingui. |
Beta Was this translation helpful? Give feedback.
-
@shibisuriya here is the old documentation for this function - https://github.com/lingui/js-lingui/blob/stable-2.x/docs/ref/react.rst#i18nmark In Lingui v4, you can use the |
Beta Was this translation helpful? Give feedback.
@shibisuriya here is the old documentation for this function - https://github.com/lingui/js-lingui/blob/stable-2.x/docs/ref/react.rst#i18nmark
In Lingui v4, you can use the
msg
/defineMessage
as an alternative