i18n-ally
i18n-ally copied to clipboard
Add support for next-intl/server
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 the useTranslations()
but in next-intl/server
use the function useTranslations()
Describe the solution you'd like
- Showing a preview of the key
- Detecting server side keys on usage report
Additional context
That's what is showing currently on server side component
can you add the support for getTranslations
too ? 🙏
import { getTranslations } from 'next-intl/server';
const t = await getTranslations('Index');
https://github.com/lokalise/i18n-ally/pull/1048
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