Replies: 2 comments 2 replies
-
maybe I misunderstood you, you mean how to put it inside i18n.js {
...restOfConfig,
"pages": {
"/password/reset/[hash]": ["hash"],
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
Nice answer, do you know how I can do a similar thing with multiple pages inside a folder? So I have the following structure with my pages.
And would like to have only one json file called legal, to use it for all those 3 pages. I tried with a star * in my config but didn't work.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
As shown in the screenshot below. You can see I have a folder password/reset/[hash.js].
This route keeps changing because every user has a different HASH.
I have also imported:
import useTranslation from "next-translate/useTranslation";
and declared
let { t } = useTranslation("hash");
How do I define route in i18n.json?
Beta Was this translation helpful? Give feedback.
All reactions