fix: [#3778] update 'Edit' word to support translation

This commit is contained in:
Prince EKPINSE 2025-11-29 12:40:22 +01:00
parent a19b92a5cb
commit 776e404c6f
53 changed files with 61 additions and 5 deletions

View file

@ -13,6 +13,8 @@ export function WebsiteHeader({ showActions }: { showActions?: boolean }) {
const { renderUrl, pathname } = useNavigation();
const isSettings = pathname.endsWith('/settings');
const { formatMessage, labels } = useMessages();
if (isSettings) {
return null;
}
@ -29,7 +31,7 @@ export function WebsiteHeader({ showActions }: { showActions?: boolean }) {
<Icon>
<Edit />
</Icon>
<Text>Edit</Text>
<Text>{formatMessage(labels.edit)}</Text>
</LinkButton>
</Row>
)}