Open equiman opened 1 year ago
can you add the support for getTranslations
too ? 🙏
import { getTranslations } from 'next-intl/server';
const t = await getTranslations('Index');
getTranslator
was renamed to getTranslations
on new versions.
I use the "Custom Framework" feature from the extension to support next-intl/server.
So, it works perfectly with next-intl
using getTranslations
without any issue: https://github.com/ixartz/Next-js-Boilerplate and you can find the configuration at .vscode/i18n-ally-custom-framework.yml
Is your feature related to a specific framework or general for this extension next-intl (server side)
Is your feature request related to a problem? Please describe. extension is working correctly with
next-intl
using theuseTranslations()
but innext-intl/server
use the functionuseTranslations()
Describe the solution you'd like
Additional context That's what is showing currently on server side component