We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import { Link, usePathname, useRouter } from "../../../i18n/routing";
export const routing = defineRouting({ locales: regionLanguage == 'th' || regionLanguage == 'vn' ? ['en', 'th', 'vn', 'zh'] : [regionLanguage ?? 'en'], defaultLocale: regionLanguage ?? 'en', localeDetection: false });
export const { Link, usePathname, useRouter } = createNavigation(routing);
router.replace(urlPath, { locale: locale, scroll: false })
why when i change language, my entire page will reload, my url will change from xxxx/th to xxxx/zh and perform full page reload? how can I avoid this?
app router next14
Steps to reproduce:
wont reload page when change language
The text was updated successfully, but these errors were encountered:
Duplicate of #723
Sorry, something went wrong.
No branches or pull requests
Description
import { Link, usePathname, useRouter } from "../../../i18n/routing";
export const routing = defineRouting({
locales: regionLanguage == 'th' || regionLanguage == 'vn' ? ['en', 'th', 'vn', 'zh'] : [regionLanguage ?? 'en'],
defaultLocale: regionLanguage ?? 'en',
localeDetection: false
});
export const { Link, usePathname, useRouter } = createNavigation(routing);
router.replace(urlPath, { locale: locale, scroll: false })
why when i change language, my entire page will reload, my url will change from xxxx/th to xxxx/zh and perform full page reload? how can I avoid this?
Verifications
Mandatory reproduction URL
app router next14
Reproduction description
Steps to reproduce:
Expected behaviour
wont reload page when change language
The text was updated successfully, but these errors were encountered: