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
8dabe4fc
Unverified
Commit
8dabe4fc
authored
Mar 17, 2023
by
Franktronics
Committed by
GitHub
Mar 17, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: commentary correction for i18n app folder (#47226)
Simple correction of a word in the comments
parent
c7534092
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
get-dictionary.ts
examples/app-dir-i18n-routing/get-dictionary.ts
+1
-1
No files found.
examples/app-dir-i18n-routing/get-dictionary.ts
View file @
8dabe4fc
...
@@ -2,7 +2,7 @@ import 'server-only'
...
@@ -2,7 +2,7 @@ import 'server-only'
import
type
{
Locale
}
from
'./i18n-config'
import
type
{
Locale
}
from
'./i18n-config'
// We enumerate all dictionaries here for better linting and typescript support
// We enumerate all dictionaries here for better linting and typescript support
// We also get the defalt import for cleaner types
// We also get the defa
u
lt import for cleaner types
const
dictionaries
=
{
const
dictionaries
=
{
en
:
()
=>
import
(
'./dictionaries/en.json'
).
then
((
module
)
=>
module
.
default
),
en
:
()
=>
import
(
'./dictionaries/en.json'
).
then
((
module
)
=>
module
.
default
),
de
:
()
=>
import
(
'./dictionaries/de.json'
).
then
((
module
)
=>
module
.
default
),
de
:
()
=>
import
(
'./dictionaries/de.json'
).
then
((
module
)
=>
module
.
default
),
...
...
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