diff --git a/docs/ref/react.rst b/docs/ref/react.rst index b2adcbb3d..01170fe4d 100644 --- a/docs/ref/react.rst +++ b/docs/ref/react.rst @@ -217,7 +217,7 @@ useLingui const CurrentLocale = () => { const { i18n } = useLingui() - return Current locale: {i18n.locale} + return Current locale: {i18n.locale} } withI18n @@ -234,7 +234,7 @@ wrapped component. ``i18n`` object is needed when you have to access the i18n da import { withI18n } from "@lingui/react" const CurrentLocale = withI18n()(({ i18n }) => ( - Current locale: {i18n.locale} + Current locale: {i18n.locale} )) .. _Intl.DateTimeFormat: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat