Commit 37362c3e authored by SangWon Kim's avatar SangWon Kim Committed by Arunoda Susiripala

Fix typo (#2692)

parent f0779e95
...@@ -36,7 +36,7 @@ if (!i18n.isInitialized) i18n.init(options) ...@@ -36,7 +36,7 @@ if (!i18n.isInitialized) i18n.init(options)
// a simple helper to getInitialProps passed on loaded i18n data // a simple helper to getInitialProps passed on loaded i18n data
i18n.getInitialProps = (req, namespaces) => { i18n.getInitialProps = (req, namespaces) => {
if (!namespaces) namespaces = i18n.options.defautlNS if (!namespaces) namespaces = i18n.options.defaultNS
if (typeof namespaces === 'string') namespaces = [namespaces] if (typeof namespaces === 'string') namespaces = [namespaces]
req.i18n.toJSON = () => null // do not serialize i18next instance and send to client req.i18n.toJSON = () => null // do not serialize i18next instance and send to client
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment