react-three-next icon indicating copy to clipboard operation
react-three-next copied to clipboard

Internationalization

Open marchitecht opened this issue 1 year ago • 1 comments

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

marchitecht avatar Jul 12 '23 08:07 marchitecht

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

elblogbruno avatar Jan 25 '24 16:01 elblogbruno