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 75475dd..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,10 +31,7 @@ export function createUseChangeLocale( } return function changeLocale(newLocale: LocalesKeys) { - if (newLocale === currentLocale) { - warn(`The locale '${newLocale}' is already set`); - return; - } + if (newLocale === currentLocale) return; const importFnLocale = locales[newLocale as keyof typeof locales];