skip to Main Content

Javascript – Custom Routes in NextJS to support countries and languages

My site paths are like - https://www.example.com/us/en/products https://www.example.com/us/es/products https://www.example.com/us/en/categories https://www.example.com/us/es/categories or - https://www.example.com/[countryCode]/[languageCode]/products Though libraries like - next-intl provides a way to deal with languages only but not if it has some previous country code attached to it. Let me…

VIEW QUESTION

Reactjs – Error: Insufficient params provided for localized pathname (getPathname()). Since I added "next-intl/routing"

Since I added the config file and replace : Navigation File import { createLocalizedPathnamesNavigation, Pathnames } from 'next-intl/navigation'; By : Config File import {Pathnames, LocalePrefix} from 'next-intl/routing';} Navigation File import { createLocalizedPathnamesNavigation } from "next-intl/navigation"; import { locales, pathnames, localePrefix…

VIEW QUESTION
Back To Top
Search