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
I have a page my-page/sub-page/example.
my-page/sub-page/example
I want to load a common.json file + another file which has translations of this page only.
common.json
My getStaticProps looks like this,
export const getStaticProps: GetStaticProps = async ({ locale }) => { return { props: { ...(await serverSideTranslations(locale, ['common', 'my-page/sub-page/example'])), }, }; };
And I am using it like this.
const { t } = useTranslation('my-page/sub-page/example');
This throws error Error: ReactDOMServer does not yet support Suspense
If I remove useSuspense,
useSuspense
const { t } = useTranslation('page/sub-page/sub-page-2/example', { useSuspense: false });
Error is fixed, but it does not translate and shows translate key as fallback.
How do I keep a different translation file for each page ?
The text was updated successfully, but these errors were encountered:
Please post on StackOverflow for help. Good luck!
Sorry, something went wrong.
No branches or pull requests
I have a page
my-page/sub-page/example
.I want to load a
common.json
file + another file which has translations of this page only.My getStaticProps looks like this,
And I am using it like this.
This throws error
Error: ReactDOMServer does not yet support Suspense
If I remove
useSuspense
,Error is fixed, but it does not translate and shows translate key as fallback.
How do I keep a different translation file for each page ?
The text was updated successfully, but these errors were encountered: