damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

_app.tsx (516B)


      1 import '@/styles/globals.css'
      2 import type { AppProps } from 'next/app'
      3 import English from "../../content/compiled-locales/en.json";
      4 import Japanese from "../../content/compiled-locales/ja.json";
      5 import { useRouter } from 'next/router';
      6 import { useMemo } from 'react';
      7 import { IntlProvider } from 'react-intl';
      8 
      9 export default function App({ Component, pageProps }: AppProps) {
     10   return (
     11     <IntlProvider
     12       locale={"en"}
     13       messages={English}>
     14       <Component {...pageProps} />
     15     </IntlProvider>
     16   )
     17 }