Skip to content

Instantly share code, notes, and snippets.

@FrancisGregori
Created November 25, 2023 23:23
Show Gist options
  • Save FrancisGregori/26d3184208f33fdc6d65d3a17e97b711 to your computer and use it in GitHub Desktop.
Save FrancisGregori/26d3184208f33fdc6d65d3a17e97b711 to your computer and use it in GitHub Desktop.
import { createSharedPathnamesNavigation } from 'next-intl/navigation';
export const locales = ['en', 'es', 'pt'] as const;
export const { Link, redirect, usePathname, useRouter } =
createSharedPathnamesNavigation({ locales });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment