-
-
Notifications
You must be signed in to change notification settings - Fork 206
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
getT() in next13's generateMetadata() doesn't output any translations #1020
Comments
Hi! Did you find a solution? |
Hey; did you manage to find a solution for that? |
Moved to https://next-intl-docs.vercel.app |
It should work in 2.4.2 👌 I close the issue, feel free to comment and I will reopen the issue if doesn't work, but now getT is fixed to work in app dir |
BTW; probably you can use |
true thats what i've been doing so far; but it felt more like a workaround and sometimes title get stale and doesn't change during client nav. however it works well so far with v2.3.1. The new v2.4.4 still doesn't work for me but now i'm having the same behavior with the useTranslation hook in server components as well. This is the server component:
These are the logs from the server:
and here is my i18n.js:
|
@nkabour is working for you in 2.5.0-canary.3? thanks |
with next-translate version
|
still no translations returned in next-translate
and the workaround works well in |
Still not working @aralroca :( |
What version of this package are you using?
v2.0.5-canary.1
What operating system, Node.js, and npm version?
macOS Ventura
13.2
, node18.x
, yarn3.5.0
What happened?
Using
getT()
in a simplegenerateMetadata
like below doesn't translate the key passed in thet()
function.Passing the
{ fallback: 'Super titre' }
option will show the fallback. It seems that the namespace isn't found.What did you expect to happen?
Translated keys.
Are you willing to submit a pull request to fix this bug?
The text was updated successfully, but these errors were encountered: