'use client'; import { getClientShellMessages } from '@/lib/localization/client-messages'; import { isLocale, localizedPath } from '@/lib/localization/config'; import { usePathname } from 'next/navigation'; import { StateAction, StateActions, StateShell } from './StateShell'; export function LocalizedNotFound() { const pathname = usePathname(); const localeValue = pathname.split('/').filter(Boolean)[0]; const locale = isLocale(localeValue) ? localeValue : 'en'; const messages = getClientShellMessages(locale); return ( {messages.states.backHome} ); }