import React from 'react'; import MetricsTable from './MetricsTable'; import { percentFilter } from 'lib/filters'; import { FormattedMessage } from 'react-intl'; import useLanguageNames from 'hooks/useLanguageNames'; import useLocale from 'hooks/useLocale'; export default function LanguagesTable({ websiteId, onDataLoad, ...props }) { const { locale } = useLocale(); const languageNames = useLanguageNames(locale); function renderLabel({ x }) { return (