Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalization #142

Open
marchitecht opened this issue Jul 12, 2023 · 1 comment
Open

Internationalization #142

marchitecht opened this issue Jul 12, 2023 · 1 comment

Comments

@marchitecht
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants