NextGlobeGen
Menu
Routing
Localized Pathnames
Dynamic route
Markdown Pages
Localized 404 page
Locale Param
Messages
Translator Function
Components
Link Component
Form Component
Hooks
useLocale
useTranslations
useHref
useRoute
useRouter
Misc
acme.com
/
en
In English
Suomeksi
NextGlobeGen Playground
A playground to explore NextGlobeGen features.
Routing
Localized Pathnames
Translate the pathnames in the URL for the pages.
Dynamic route
Example of how to translate dynamic segments.
Markdown Pages
Write the localized content of the pages as MDX.
Localized 404 page
Check out the docs and code example for how to implement a localized 404 page.
Locale Param
Use the locale param outside of rendering contexts.
Messages
Translator Function
Render messages in the current locale.
Components
Link Component
Navigate to localized pathnames with <Link> component.
Form Component
Use <Form> component to navigate to localized pathnames with inputs as a query.
Hooks
useLocale
The useLocale hook returns the current locale.
useTranslations
Get the translator function for the given namespace.
useHref
Construct localized hrefs of the routes.
useRoute
The useRoute hook returns the current route of the page.
useRouter
Navigate to localized pathnames programmatically.
Misc
NextGlobeGen Docs
View code