Skip to content

Commit

Permalink
Fix typo (vercel#2692)
Browse files Browse the repository at this point in the history
  • Loading branch information
gloorx authored and arunoda committed Aug 1, 2017
1 parent f0779e9 commit 37362c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/with-react-i18next/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 36,7 @@ if (!i18n.isInitialized) i18n.init(options)

// a simple helper to getInitialProps passed on loaded i18n data
i18n.getInitialProps = (req, namespaces) => {
if (!namespaces) namespaces = i18n.options.defautlNS
if (!namespaces) namespaces = i18n.options.defaultNS
if (typeof namespaces === 'string') namespaces = [namespaces]

req.i18n.toJSON = () => null // do not serialize i18next instance and send to client
Expand Down

0 comments on commit 37362c3

Please sign in to comment.