Fix category page labels not being translated (#423)

This commit is contained in:
saltrafael 2021-12-04 14:08:13 -03:00 committed by GitHub
parent 82643b1f4a
commit fb7c5d0fff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,7 @@ function DiscoverPage(props: Props) {
headerLabel = (
<span>
<Icon icon={(dynamicRouteProps && dynamicRouteProps.icon) || discoverIcon} size={10} />
{(dynamicRouteProps && dynamicRouteProps.title) || discoverLabel}
{(dynamicRouteProps && __(`${dynamicRouteProps.title}`)) || discoverLabel}
</span>
);
}