diff --git a/components/metrics/LanguagesTable.js b/components/metrics/LanguagesTable.js
new file mode 100644
index 00000000..2b6cd868
--- /dev/null
+++ b/components/metrics/LanguagesTable.js
@@ -0,0 +1,31 @@
+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 (
+
+
{!data && loading && }
{error && }
{data && !error && }
diff --git a/components/pages/WebsiteDetails.js b/components/pages/WebsiteDetails.js
index a8442ea1..de8c8f06 100644
--- a/components/pages/WebsiteDetails.js
+++ b/components/pages/WebsiteDetails.js
@@ -16,6 +16,7 @@ import BrowsersTable from '../metrics/BrowsersTable';
import OSTable from '../metrics/OSTable';
import DevicesTable from '../metrics/DevicesTable';
import CountriesTable from '../metrics/CountriesTable';
+import LanguagesTable from '../metrics/LanguagesTable';
import EventsTable from '../metrics/EventsTable';
import EventsChart from '../metrics/EventsChart';
import useFetch from 'hooks/useFetch';
@@ -30,6 +31,7 @@ const views = {
os: OSTable,
device: DevicesTable,
country: CountriesTable,
+ language: LanguagesTable,
event: EventsTable,
};
@@ -82,6 +84,10 @@ export default function WebsiteDetails({ websiteId }) {
label: ,
value: resolve({ view: 'country' }),
},
+ {
+ label: ,
+ value: resolve({ view: 'language' }),
+ },
{
label: ,
value: resolve({ view: 'event' }),
@@ -147,7 +153,8 @@ export default function WebsiteDetails({ websiteId }) {
-
+
+
0 })}>