import { LanguageProvider, getLanguageFromPath } from '../contexts/LanguageContext';
import AppRouter from './AppRouter';

function PortfolioApp() {
  const initialLanguage = getLanguageFromPath(globalThis.location.pathname) ?? 'de';

  return (
    <LanguageProvider initialLanguage={initialLanguage}>
      <AppRouter />
    </LanguageProvider>
  );
}

export default PortfolioApp;
