Fix translations for other languages

This commit is contained in:
Raphael Canguçu
2023-02-08 19:19:48 -03:00
parent 49e47b28de
commit 279dd36a13
5 changed files with 61 additions and 13 deletions

View File

@ -98,7 +98,9 @@ const Section: React.FC<Props> = ({
<SectionSettings path={path} />
<Button variant="outlined" startIcon={<Add />} onClick={handleAdd}>
{t<string>('builder.common.actions.add', { token: heading })}
{t<string>('builder.common.actions.add', {
token: t<string>(`builder.leftSidebar.${path}.heading`, heading),
})}
</Button>
</footer>