-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from Jon1VK/v4
feat: add support for Next.js 15 async params
- Loading branch information
Showing
25 changed files
with
503 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import { getDictionary } from 'src/server/utils/getDictionary' | ||
import { getDictionaryByLocale } from 'src/server/utils/getDictionaryByLocale' | ||
|
||
async function generateRouteNames() { | ||
const tEN = await getDictionary('en') | ||
const tCS = await getDictionary('cs') | ||
const tES = await getDictionary('es') | ||
export async function generateRouteNames() { | ||
const tEN = await getDictionaryByLocale('en') | ||
const tCS = await getDictionaryByLocale('cs') | ||
const tES = await getDictionaryByLocale('es') | ||
|
||
return [ | ||
{ locale: 'en', path: tEN('about.slug') }, | ||
{ locale: 'cs', path: tCS('about.slug') }, | ||
{ locale: 'es', path: tES('about.slug') }, | ||
] | ||
} | ||
|
||
module.exports.generateRouteNames = generateRouteNames |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.