pmndrs / react-three-next

React Three Fiber, Threejs, Nextjs starter
https://react-three-next.vercel.app/
MIT License
2.46k stars 332 forks source link

Internationalization #142

Open marchitecht opened 1 year ago

marchitecht commented 1 year ago

Hello!

I'm in the process to add i18n module for translations.

in next.config.ts according to docs I have to wrap up like in pic below. Do you have any idea how to wrap up current nextConfig?

Снимок экрана 2023-07-12 в 11 37 53
elblogbruno commented 8 months ago
const withNextIntl = require('next-intl/plugin')();

/** @type {import('next').NextConfig} */
const nextConfig = {  
}

module.exports = withNextIntl(nextConfig);

I have done it like that and works. But I am having issues using useRouter to change between langugae routes:

image