Skip to content

Commit

Permalink
docs: Fix missing closing tag in jsx example (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvangend authored Apr 24, 2022
1 parent ee69736 commit 2232738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/react.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ useLingui
const CurrentLocale = () => {
const { i18n } = useLingui()
return <span>Current locale: {i18n.locale}
return <span>Current locale: {i18n.locale}</span>
}
withI18n
Expand All @@ -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 }) => (
<span>Current locale: {i18n.locale}
<span>Current locale: {i18n.locale}</span>
))
.. _Intl.DateTimeFormat: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
Expand Down

0 comments on commit 2232738

Please sign in to comment.