fix(metrics): localize 'Unknown' label in tables

This commit is contained in:
Alexander Klein 2021-02-20 08:28:52 +01:00
parent 06f24b0c90
commit 306b555b96
2 changed files with 11 additions and 2 deletions

View file

@ -10,7 +10,11 @@ export default function CountriesTable({ websiteId, onDataLoad, ...props }) {
const countryNames = useCountryNames(locale);
function renderLabel({ x }) {
return <div className={locale}>{countryNames[x] ?? 'Unknown'}</div>;
return (
<div className={locale}>
{countryNames[x] ?? <FormattedMessage id="label.unknown" defaultMessage="Unknown" />}
</div>
);
}
return (