Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
37362c3e
Commit
37362c3e
authored
Aug 01, 2017
by
SangWon Kim
Committed by
Arunoda Susiripala
Aug 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo (#2692)
parent
f0779e95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
i18n.js
examples/with-react-i18next/i18n.js
+1
-1
No files found.
examples/with-react-i18next/i18n.js
View file @
37362c3e
...
@@ -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
.
defau
tl
NS
if
(
!
namespaces
)
namespaces
=
i18n
.
options
.
defau
lt
NS
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment