Search code examples
next.js13next-intl

How to update next-intl to 2.14.4


I have currently next-intl 2.13.0-beta.2 installed.

I have tried to update it to 2.14.4 with npm install next-intl@latest

But import { getTranslations } from 'next-intl/server' not working. I got the error getTranslation is not a function.


Solution

  • My apologies, I think there was some confusion in regard to the versioning. If you use RSC features, you should stay on the beta channel for now, the latest version is [email protected] (see docs)

    Here's a bit more context: https://github.com/amannn/next-intl/issues/286.