We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
We need to use translations in JSON and we have a typescript issue when we have second arguments in t()
t('lastUpdate', {updatedAt: '2021-10-01'}
{ "lastUpdate": "Last update on {updatedAt}" }
The error is : TS2554: Expected 1 arguments, but got 2
https://github.com/harkor/next-internation-json/tree/main
import {getI18n} from "@/locales/server"; .... const t = await getI18n(); ... {t('lastUpdate', {updatedAt: '2021-10-01'})}
We found a quick fix for special translations with arguments but not the ideal. It's time consume for developers
Fix
Full code
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
We need to use translations in JSON and we have a typescript issue when we have second arguments in t()
Example
The error is : TS2554: Expected 1 arguments, but got 2
Reproduction
https://github.com/harkor/next-internation-json/tree/main
This reproduction is for client, but same thing with server
About
Temporary fix
We found a quick fix for special translations with arguments but not the ideal. It's time consume for developers
Fix
Full code
The text was updated successfully, but these errors were encountered: