spliit
spliit copied to clipboard
Page titles not working with translations
Seems like the title for each page is hardcoded, and thus don't change if the language is updated.
It would be nice if these can change dynamically as well.
@scastiel ,
We can fetch the translations and define title so that the title will be in the selected language. But we would have to do this for all the pages.
export async function generateMetadata(): Promise<Metadata> {
const t = await getTranslations('ExpenseForm')
return {
title: t('Expense.edit', { fallback: 'Edit expense' }),
}
}
Is it worth the overhead? Should I do it?