diff --git a/docs/localization.md b/docs/localization.md index 37a046cb5a..4242de8511 100644 --- a/docs/localization.md +++ b/docs/localization.md @@ -104,7 +104,7 @@ import { useLingui } from "@lingui/react/macro"; const { t } = useLingui(); return {text} -```` +``` If you want to do this outside of a React component, you can use the global `t` macro instead (note: this won't react to changes if the locale is switched dynamically within the app): ```jsx