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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the language the label does not update #2253
Comments
That's probably because you set the locale to 'it' here: export const getStaticProps: GetStaticProps = async () => {
const locale = "it";
return {
props: {
locale,
...(await serverSideTranslations(locale, ["common"])),
},
};
}; do this instead: export const getStaticProps: GetStaticProps<Props> = async ({
locale,
}) => ({
props: {
locale,
...(await serverSideTranslations(locale ?? 'it', [
'common'
])),
},
}) Why do you have an "en" folder? |
Thank you @adrai for your reply. Sadly this is only a replica of a bigger project that is structured this way with all italian pages on one side and all english pages under the folder |
I'm experiencing the same problem, using the 14.* version solve the issue. |
Yes @alfredosalzillo we're actually using the v14 and it works fine. While trying to upgrade to v15 I found that problem. |
馃悰 Bug Report
Hi, when I change la language using link at the first render the label doesn't update.
To Reproduce
A codesandbox example
To reproduce:
Expected behavior
When changing the path I expect that the label is updated too.
Your Environment
The text was updated successfully, but these errors were encountered: