📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
Integrated translations into Features page
Blue Mousedb0f2e26dbb8
diff --git a/src/i18n/en.json b/src/i18n/en.jsonindex 1abeda4c3..5053c2bfb 100644--- a/src/i18n/en.json+++ b/src/i18n/en.json@@ -115,6 +115,34 @@"signin": "Sign in"}},+ "features": {+ "feature1Name": "Transparency",+ "feature1Content": "At Swetrix, we believe that everyone has a right to privacy and transparency, especially when it comes to analytics.\nWe do not collect more information than we <docs>claim</docs>, all data is stored on servers physically located in the European Union and our analytics script is publicly available and accessible to all on our <gh>Github</gh>.",+ "ready": "Ready to get to know your users?",+ "start": "Start using Swetrix today.",+ "list": [+ {+ "name": "Simplicity",+ "content": "When we created our service we tried to make it as simple and flexible as possible.\nNo more confusing metrics and complicated dashboards - with us you can have control over all your projects and data in a simple and straightforward way."+ },+ {+ "name": "Page Views Tracking",+ "content": "Swetrix offers the ability to track page views, including unique views as well as user flow.\nAll views include a wide range of data, such as user country, locale, device type, page load time, and more.\nWe do not use cookies or any other type of user profiling to collect data. All incoming data is anonymised, ensuring that users cannot be tracked down in any way based on this."+ },+ {+ "name": "Custom Events Tracking",+ "content": "In addition to tracking page views, we also offer the ability to track сustom events.\nYou can track any event, such as button clicks, registrations or authorisations.\nAll of this is also completely private to the user, as we don't store any other information about them along with the events.\nYou can read more about custom events in our documentation."+ },+ {+ "name": "Speed",+ "content": "We are fast. Our analytics script is as optimised as possible and uses CDNs for its delivery, which ensures that the script won't slow down your sites."+ },+ {+ "name": "Trust",+ "content": "We are a small business, not a big corporation.\nWe are interested in creating a good and quality product that will be used by satisfied customers, not in squeezing as much money as possible from our users or selling your personal data."+ }+ ]+ },"profileSettings": {"general": "General settings","update": "Update profile",@@ -137,7 +165,8 @@"signin": "Sign in","signup": "Sign up","verification": "Email verification",- "profileSettings": "Profile settings"+ "profileSettings": "Profile settings",+ "features": "Features"},"footer": {"slogan": "The best apps need the best services.",diff --git a/src/pages/Features/index.jsx b/src/pages/Features/index.jsxindex 01fc7f9dd..a69be61f4 100644--- a/src/pages/Features/index.jsx+++ b/src/pages/Features/index.jsx@@ -1,62 +1,58 @@-import React from 'react'+/* eslint-disable jsx-a11y/anchor-has-content */+import React, { Fragment } from 'react'import { Link } from 'react-router-dom'import { HashLink } from 'react-router-hash-link'+import { useTranslation, Trans } from 'react-i18next'+import _map from 'lodash/map'import Title from 'components/Title'import routes from 'routes'const Features = () => {+ const { t } = useTranslation('common')+return (- <Title title='Features'>+ <Title title={t('titles.features')}><div className='bg-gray-50'><div className='w-11/12 md:w-4/5 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8'>- <h1 className='text-4xl font-extrabold text-gray-900 tracking-tight'>Features</h1>-- <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>Transparency</h3>- <p className='text-lg text-gray-900 tracking-tight'>- At Swetrix, we believe that everyone has a right to privacy and transparency, especially when it comes to analytics.<br />- We do not collect more information than we <HashLink className='text-indigo-600 hover:text-indigo-500' to={`${routes.docs}#docs-tv`}>claim</HashLink>, all data is stored on servers physically located in the European Union and our analytics script is publicly available and accessible to all on our <a className='text-indigo-600 hover:text-indigo-500' href='https://github.com/Swetrix' target='_blank' rel='noopener noreferrer'>Github</a>.<br />- </p>-- <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>Simplicity</h3>- <p className='text-lg text-gray-900 tracking-tight'>- When we created our service we tried to make it as simple and flexible as possible.<br />- No more confusing metrics and complicated dashboards - with us you can have control over all your projects and data in a simple and straightforward way.- </p>-- <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>Page Views Tracking</h3>- <p className='text-lg text-gray-900 tracking-tight'>- Swetrix offers the ability to track page views, including unique views as well as user flow.<br />- All views include a wide range of data, such as user country, locale, device type, page load time, and more.<br />- We do not use cookies or any other type of user profiling to collect data. All incoming data is anonymised, ensuring that users cannot be tracked down in any way based on this.- </p>-- <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>Custom Events Tracking</h3>- <p className='text-lg text-gray-900 tracking-tight'>- In addition to tracking page views, we also offer the ability to track сustom events.<br />- You can track any event, such as button clicks, registrations or authorisations.<br />- All of this is also completely private to the user, as we don't store any other information about them along with the events.<br />- You can read more about custom events in our documentation.- </p>+ <h1 className='text-4xl font-extrabold text-gray-900 tracking-tight'>+ {t('titles.features')}+ </h1>- <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>Speed</h3>+ <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>+ {t('features.feature1Name')}+ </h3><p className='text-lg text-gray-900 tracking-tight'>- We are fast. Our analytics script is as optimised as possible and uses CDNs for its delivery, which ensures that the script won't slow down your sites.+ <Trans+ t={t}+ i18nKey='features.feature1Content'+ components={{+ docs: <HashLink className='text-indigo-600 hover:text-indigo-500' to={`${routes.docs}#docs-tv`} />,+ gh: <a className='text-indigo-600 hover:text-indigo-500' href='https://github.com/Swetrix' target='_blank' rel='noopener noreferrer' />,+ }}+ /></p>- <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>Trust</h3>- <p className='text-lg text-gray-900 tracking-tight'>- We are a small business, not a big corporation.<br />- We are interested in creating a good and quality product that will be used by satisfied customers, not in squeezing as much money as possible from our users or selling your personal data.- </p>+ {_map(t('features.list', { returnObjects: true }), (feature) => (+ <Fragment key={feature.name}>+ <h3 className='text-2xl font-normal text-gray-900 tracking-tight mt-4'>+ {feature.name}+ </h3>+ <p className='text-lg text-gray-900 tracking-tight'>+ {feature.content}+ </p>+ </Fragment>+ ))}</div></div><div className='bg-indigo-600'><div className='w-4/5 mx-auto pb-16 pt-12 px-4 sm:px-6 lg:px-8 lg:flex lg:items-center lg:justify-between'><h2 className='text-3xl sm:text-4xl font-extrabold tracking-tight text-gray-900'>- <span className='block text-white'>Ready to get to know your users?</span>+ <span className='block text-white'>+ {t('features.ready')}+ </span><span className='block text-gray-300'>- Start using Swetrix today.+ {t('features.start')}</span></h2><div className='mt-6 space-y-4 sm:space-y-0 sm:flex sm:space-x-5'>@@ -64,7 +60,7 @@ const Features = () => {to={routes.signup}className='flex items-center justify-center px-3 py-2 border border-transparent text-lg font-medium rounded-md shadow-sm text-indigo-800 bg-indigo-50 hover:bg-indigo-100'>- Get started+ {t('common.getStarted')}</Link></div></div>diff --git a/src/pages/UserSettings/UserSettings.jsx b/src/pages/UserSettings/UserSettings.jsxindex f1031c0a0..561ca7138 100644--- a/src/pages/UserSettings/UserSettings.jsx+++ b/src/pages/UserSettings/UserSettings.jsx@@ -1,4 +1,4 @@-import React, { useState, useEffect, useMemo } from 'react'+import React, { useState, useEffect } from 'react'import { useSelector } from 'react-redux'import { useTranslation } from 'react-i18next'import _size from 'lodash/size'