diff --git a/packages/next-international/src/app/client/create-use-change-locale.ts b/packages/next-international/src/app/client/create-use-change-locale.ts index d866050..f5fb185 100644 --- a/packages/next-international/src/app/client/create-use-change-locale.ts +++ b/packages/next-international/src/app/client/create-use-change-locale.ts @@ -31,6 +31,8 @@ export function createUseChangeLocale( } return function changeLocale(newLocale: LocalesKeys) { + if (newLocale === currentLocale) return; + const importFnLocale = locales[newLocale as keyof typeof locales]; if (!importFnLocale) {