📈 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
Localise
Blue Mouse20c3a0c835be
diff --git a/web/app/components/Footer/index.tsx b/web/app/components/Footer/index.tsxindex d1cf32747..6a7331a67 100644--- a/web/app/components/Footer/index.tsx+++ b/web/app/components/Footer/index.tsx@@ -663,7 +663,7 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {aria-labelledby='footer-heading'><h2 id='footer-heading' className='sr-only'>- Footer+ {t('ariaLabels.footer')}</h2><div className='absolute top-full left-1/2 mt-10 h-[20rem] w-[36rem] -translate-x-1/2 bg-[#C8F2F8]/50 mix-blend-plus-lighter blur-[256px]' /><div className='absolute top-full left-1/2 size-96 -translate-x-1/2 bg-[#C8F2F8]/50 mix-blend-overlay blur-[256px]' />@@ -861,7 +861,7 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {url: (<ahref='https://swetrix.com'- aria-label='Open Swetrix website'+ aria-label={t('ariaLabels.openSwetrixWebsite')}target='_blank'rel='noopener noreferrer'className='text-indigo-400 hover:text-indigo-300'diff --git a/web/app/components/pricing/BillingPricing.tsx b/web/app/components/pricing/BillingPricing.tsxindex 97c3f2cf0..a1d18cf71 100644--- a/web/app/components/pricing/BillingPricing.tsx+++ b/web/app/components/pricing/BillingPricing.tsx@@ -538,7 +538,7 @@ const BillingPricing = ({mail: (<atitle={`Email us at ${CONTACT_EMAIL}`}- aria-label='Email Swetrix support'+ aria-label={t('ariaLabels.emailSupport')}href={`mailto:${CONTACT_EMAIL}`}className='font-medium underline decoration-dashed hover:decoration-solid'/>diff --git a/web/app/components/tools/TechnicalToolRoute.tsx b/web/app/components/tools/TechnicalToolRoute.tsxindex fae7e5f61..ec74cdbed 100644--- a/web/app/components/tools/TechnicalToolRoute.tsx+++ b/web/app/components/tools/TechnicalToolRoute.tsx@@ -6,6 +6,7 @@ import {XCircleIcon,} from '@phosphor-icons/react'import { useMemo, useState, type ReactNode } from 'react'+import { useTranslation } from 'react-i18next'import type { MetaFunction } from 'react-router'import { redirect, useFetcher } from 'react-router'import type { SitemapFunction } from 'remix-sitemap'@@ -3476,6 +3477,7 @@ function getDecliningPages(rows: GscRow[]) {}function GscExportAnalyzer() {+ const { t } = useTranslation('common')const [analysis, setAnalysis] = useState<GscAnalysis | null>(null)const [error, setError] = useState<string | null>(null)const [fileName, setFileName] = useState('')@@ -3504,7 +3506,7 @@ function GscExportAnalyzer() {</Text><inputtype='file'- aria-label='Google Search Console CSV'+ aria-label={t('ariaLabels.googleSearchConsoleCsv')}accept='.csv,text/csv'onChange={(event) => handleFile(event.target.files?.[0])}className='mt-2 block w-full rounded-md bg-white px-3 py-2 text-sm text-gray-900 ring-1 ring-gray-300 transition-shadow duration-150 ease-out ring-inset file:mr-3 file:rounded-md file:border-0 file:bg-gray-100 file:px-3 file:py-1.5 file:text-sm file:font-medium file:text-slate-900 hover:ring-gray-400 focus:ring-2 focus:ring-slate-900 focus:outline-hidden dark:bg-slate-950 dark:text-gray-50 dark:ring-slate-700/80 dark:file:bg-slate-800 dark:file:text-slate-100 dark:hover:ring-slate-600 dark:focus:ring-slate-300'diff --git a/web/app/pages/Auth/Signup/InvitationSignup.tsx b/web/app/pages/Auth/Signup/InvitationSignup.tsxindex a8b256c17..cb71ab514 100644--- a/web/app/pages/Auth/Signup/InvitationSignup.tsx+++ b/web/app/pages/Auth/Signup/InvitationSignup.tsx@@ -208,7 +208,7 @@ const InvitationSignup = () => {db: (<ahref={HAVE_I_BEEN_PWNED_URL}- aria-label='Open Have I Been Pwned'+ aria-label={t('ariaLabels.openHaveIBeenPwned')}className='font-medium underline decoration-dashed hover:decoration-solid'target='_blank'rel='noreferrer noopener'diff --git a/web/app/pages/Auth/Signup/Signup.tsx b/web/app/pages/Auth/Signup/Signup.tsxindex 07b2acd4a..b2e2f4437 100644--- a/web/app/pages/Auth/Signup/Signup.tsx+++ b/web/app/pages/Auth/Signup/Signup.tsx@@ -393,7 +393,7 @@ const Signup = () => {db: (<ahref={HAVE_I_BEEN_PWNED_URL}- aria-label='Open Have I Been Pwned'+ aria-label={t('ariaLabels.openHaveIBeenPwned')}className='font-medium underline decoration-dashed hover:decoration-solid'target='_blank'rel='noreferrer noopener'diff --git a/web/app/pages/Contact/index.tsx b/web/app/pages/Contact/index.tsxindex e613a2e79..fd7c47f34 100644--- a/web/app/pages/Contact/index.tsx+++ b/web/app/pages/Contact/index.tsx@@ -62,21 +62,21 @@ const Contact = () => {mail: (<ahref={`mailto:${CONTACT_EMAIL}`}- aria-label='Email Swetrix support'+ aria-label={t('ariaLabels.emailSupport')}className='font-medium underline decoration-dashed hover:decoration-solid'/>),twitter: (<ahref={TWITTER_URL}- aria-label='Open Swetrix on X'+ aria-label={t('ariaLabels.openSwetrixOnX')}className='font-medium underline decoration-dashed hover:decoration-solid'/>),discord: (<ahref={DISCORD_URL}- aria-label='Open Swetrix Discord'+ aria-label={t('ariaLabels.openSwetrixDiscord')}className='font-medium underline decoration-dashed hover:decoration-solid'/>),@@ -92,7 +92,7 @@ const Contact = () => {feedback: (<buttontype='button'- aria-label='Open feedback form'+ aria-label={t('ariaLabels.openFeedbackForm')}onClick={() => setFeedbackOpen(true)}className='font-medium underline decoration-dashed hover:decoration-solid'/>diff --git a/web/app/pages/ErrorTracking/index.tsx b/web/app/pages/ErrorTracking/index.tsxindex cc5db8028..40d065df9 100644--- a/web/app/pages/ErrorTracking/index.tsx+++ b/web/app/pages/ErrorTracking/index.tsx@@ -145,7 +145,7 @@ const ErrorTracking = () => {oneLC: (<ahref='https://swetrix.com/docs/swetrix-js-reference#trackerrors'- aria-label='Open error tracking documentation'+ aria-label={t('ariaLabels.openErrorTrackingDocumentation')}className='font-medium text-red-600 hover:underline dark:text-red-400'target='_blank'rel='noopener noreferrer'diff --git a/web/app/pages/Landings/Marketers.tsx b/web/app/pages/Landings/Marketers.tsxindex b9b801af2..9b83ea9d9 100644--- a/web/app/pages/Landings/Marketers.tsx+++ b/web/app/pages/Landings/Marketers.tsx@@ -171,7 +171,7 @@ const Marketers = () => {integrationLink: (<ahref={INTEGRATIONS_URL}- aria-label='Open integrations'+ aria-label={t('ariaLabels.openIntegrations')}target='_blank'rel='noopener noreferrer'className='text-blue-600 hover:underline dark:text-blue-500'@@ -180,7 +180,7 @@ const Marketers = () => {discordUrl: (<ahref={DISCORD_URL}- aria-label='Open Swetrix Discord'+ aria-label={t('ariaLabels.openSwetrixDiscord')}target='_blank'rel='noopener noreferrer'className='text-blue-600 hover:underline dark:text-blue-500'diff --git a/web/app/pages/Landings/SmallBusinesses.tsx b/web/app/pages/Landings/SmallBusinesses.tsxindex f7eeec0ce..8a513323b 100644--- a/web/app/pages/Landings/SmallBusinesses.tsx+++ b/web/app/pages/Landings/SmallBusinesses.tsx@@ -172,7 +172,7 @@ const SmallBusinesses = () => {integrationLink: (<ahref={INTEGRATIONS_URL}- aria-label='Open integrations'+ aria-label={t('ariaLabels.openIntegrations')}target='_blank'rel='noopener noreferrer'className='text-blue-600 hover:underline dark:text-blue-500'@@ -181,7 +181,7 @@ const SmallBusinesses = () => {discordUrl: (<ahref={DISCORD_URL}- aria-label='Open Swetrix Discord'+ aria-label={t('ariaLabels.openSwetrixDiscord')}target='_blank'rel='noopener noreferrer'className='text-blue-600 hover:underline dark:text-blue-500'@@ -190,7 +190,7 @@ const SmallBusinesses = () => {twitterUrl: (<ahref={TWITTER_URL}- aria-label='Open Swetrix on X'+ aria-label={t('ariaLabels.openSwetrixOnX')}target='_blank'rel='noopener noreferrer'className='text-blue-600 hover:underline dark:text-blue-500'diff --git a/web/app/pages/Landings/Startups.tsx b/web/app/pages/Landings/Startups.tsxindex a0788cb62..ce831752a 100644--- a/web/app/pages/Landings/Startups.tsx+++ b/web/app/pages/Landings/Startups.tsx@@ -171,7 +171,7 @@ const Startups = () => {integrationLink: (<ahref={INTEGRATIONS_URL}- aria-label='Open integrations'+ aria-label={t('ariaLabels.openIntegrations')}target='_blank'rel='noopener noreferrer'className='text-blue-600 hover:underline dark:text-blue-500'@@ -180,7 +180,7 @@ const Startups = () => {discordUrl: (<ahref={DISCORD_URL}- aria-label='Open Swetrix Discord'+ aria-label={t('ariaLabels.openSwetrixDiscord')}target='_blank'rel='noopener noreferrer'className='text-blue-600 hover:underline dark:text-blue-500'diff --git a/web/app/pages/Onboarding/Onboarding.tsx b/web/app/pages/Onboarding/Onboarding.tsxindex a1fe7e5af..964530e65 100644--- a/web/app/pages/Onboarding/Onboarding.tsx+++ b/web/app/pages/Onboarding/Onboarding.tsx@@ -407,7 +407,7 @@ const SetupTrackingStep = ({ project }: { project: Project }) => {url: (<ahref={INTEGRATIONS_URL}- aria-label='Open integrations'+ aria-label={t('ariaLabels.openIntegrations')}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'diff --git a/web/app/pages/OpenStartup/index.tsx b/web/app/pages/OpenStartup/index.tsxindex dd8e204f3..c1e10fff2 100644--- a/web/app/pages/OpenStartup/index.tsx+++ b/web/app/pages/OpenStartup/index.tsx@@ -472,7 +472,7 @@ const OpenStartup = ({ stats }: OpenStartupProps) => {livedemo: (<ahref={LIVE_DEMO_URL}- aria-label='Open live demo'+ aria-label={t('ariaLabels.openLiveDemo')}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'diff --git a/web/app/pages/Organisations/Settings/People.tsx b/web/app/pages/Organisations/Settings/People.tsxindex a6f489e4e..23ee87fda 100644--- a/web/app/pages/Organisations/Settings/People.tsx+++ b/web/app/pages/Organisations/Settings/People.tsx@@ -424,7 +424,7 @@ const People = ({ organisation }: PeopleProps) => {>{t('profileSettings.sharedTable.joinedOn')}</th>- <th scope='col' aria-label='Actions' />+ <th scope='col' aria-label={t('ariaLabels.actions')} /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>diff --git a/web/app/pages/Organisations/Settings/Projects.tsx b/web/app/pages/Organisations/Settings/Projects.tsxindex 251fc519e..ddf8b6549 100644--- a/web/app/pages/Organisations/Settings/Projects.tsx+++ b/web/app/pages/Organisations/Settings/Projects.tsx@@ -394,7 +394,7 @@ export const Projects = ({ organisation }: ProjectsProps) => {>{t('common.name')}</th>- <th scope='col' aria-label='Actions' />+ <th scope='col' aria-label={t('ariaLabels.actions')} /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>diff --git a/web/app/pages/Performance/index.tsx b/web/app/pages/Performance/index.tsxindex 6e0754d83..2e57e66fb 100644--- a/web/app/pages/Performance/index.tsx+++ b/web/app/pages/Performance/index.tsx@@ -141,7 +141,7 @@ const Performance = () => {wpostatsUrl: (<ahref='https://wpostats.com/?utm_source=swetrix.com'- aria-label='Open WPO Stats'+ aria-label={t('ariaLabels.openWpoStats')}className='font-medium text-orange-600 hover:underline dark:text-orange-400'target='_blank'rel='noopener noreferrer'diff --git a/web/app/pages/Project/Settings/Alerts/RichTemplateInput.tsx b/web/app/pages/Project/Settings/Alerts/RichTemplateInput.tsxindex dfba6858a..63cf589a8 100644--- a/web/app/pages/Project/Settings/Alerts/RichTemplateInput.tsx+++ b/web/app/pages/Project/Settings/Alerts/RichTemplateInput.tsx@@ -10,6 +10,7 @@ import {useRef,useState,} from 'react'+import { useTranslation } from 'react-i18next'import { Text } from '~/ui/Text'import { cn } from '~/utils/generic'@@ -205,6 +206,7 @@ const RichTemplateInput = forwardRef<},ref,) => {+ const { t } = useTranslation('common')const taRef = useRef<HTMLTextAreaElement | null>(null)useImperativeHandle(ref, () => taRef.current as HTMLTextAreaElement)const mirrorRef = useRef<HTMLDivElement | null>(null)@@ -502,7 +504,9 @@ const RichTemplateInput = forwardRef<<textarearef={taRef}aria-label={- typeof label === 'string' ? label : placeholder || 'Template'+ typeof label === 'string'+ ? label+ : placeholder || t('ariaLabels.template')}rows={rows}value={value}diff --git a/web/app/pages/Project/Settings/Annotations.tsx b/web/app/pages/Project/Settings/Annotations.tsxindex 6aeb30aaf..5676b5ba4 100644--- a/web/app/pages/Project/Settings/Annotations.tsx+++ b/web/app/pages/Project/Settings/Annotations.tsx@@ -221,7 +221,9 @@ const Annotations = ({ projectId, allowedToManage }: AnnotationsProps) => {>{t('project.settings.annotations.text')}</th>- {allowedToManage ? <th aria-label='Actions' /> : null}+ {allowedToManage ? (+ <th aria-label={t('ariaLabels.actions')} />+ ) : null}</tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-700 dark:bg-slate-950'>diff --git a/web/app/pages/Project/Settings/Emails/Emails.tsx b/web/app/pages/Project/Settings/Emails/Emails.tsxindex 6fffaf904..5c103698d 100644--- a/web/app/pages/Project/Settings/Emails/Emails.tsx+++ b/web/app/pages/Project/Settings/Emails/Emails.tsx@@ -541,7 +541,7 @@ const Emails = ({ projectId }: { projectId: string }) => {>{t('auth.common.addedOn')}</th>- <th scope='col' aria-label='Actions' />+ <th scope='col' aria-label={t('ariaLabels.actions')} /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>diff --git a/web/app/pages/Project/Settings/People/People.tsx b/web/app/pages/Project/Settings/People/People.tsxindex 501cc16af..4c643cec7 100644--- a/web/app/pages/Project/Settings/People/People.tsx+++ b/web/app/pages/Project/Settings/People/People.tsx@@ -422,7 +422,7 @@ const People = ({ project }: PeopleProps) => {>{t('profileSettings.sharedTable.joinedOn')}</th>- <th scope='col' aria-label='Actions' />+ <th scope='col' aria-label={t('ariaLabels.actions')} /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>diff --git a/web/app/pages/Project/Settings/ProjectSettings.tsx b/web/app/pages/Project/Settings/ProjectSettings.tsxindex 73b24cca8..9b669784b 100644--- a/web/app/pages/Project/Settings/ProjectSettings.tsx+++ b/web/app/pages/Project/Settings/ProjectSettings.tsx@@ -197,7 +197,7 @@ const ModalMessage = ({</Text><inputtype='text'- aria-label='Date range'+ aria-label={t('ariaLabels.dateRange')}className='m-0 h-0 w-0 border-0 p-0 focus:border-transparent focus:text-transparent focus:shadow-none focus:ring-transparent'/><DatePicker@@ -1484,7 +1484,9 @@ const ProjectSettings = () => {url: (<ahref='https://docs.swetrix.com/selfhosting/google-search-console'- aria-label='Open Google Search Console self-hosting guide'+ aria-label={t(+ 'ariaLabels.openGoogleSearchConsoleSelfHostingGuide',+ )}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'@@ -1604,7 +1606,9 @@ const ProjectSettings = () => {url: (<ahref='https://search.google.com/search-console/about'- aria-label='Open Google Search Console'+ aria-label={t(+ 'ariaLabels.openGoogleSearchConsole',+ )}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'@@ -1677,7 +1681,9 @@ const ProjectSettings = () => {url: (<ahref='https://swetrix.com/docs/captcha/server-side-validation'- aria-label='Open CAPTCHA server-side validation guide'+ aria-label={t(+ 'ariaLabels.openCaptchaServerValidationGuide',+ )}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'diff --git a/web/app/pages/Project/Settings/components/DataImportTab.tsx b/web/app/pages/Project/Settings/components/DataImportTab.tsxindex d2cbfe09c..48daf4286 100644--- a/web/app/pages/Project/Settings/components/DataImportTab.tsx+++ b/web/app/pages/Project/Settings/components/DataImportTab.tsx@@ -508,7 +508,7 @@ export default function DataImportTab({ projectId }: DataImportTabProps) {>{t('project.settings.dataImport.created')}</th>- <th scope='col' aria-label='Actions' />+ <th scope='col' aria-label={t('ariaLabels.actions')} /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>@@ -600,7 +600,7 @@ export default function DataImportTab({ projectId }: DataImportTabProps) {1: (<ahref='https://swetrix.com/docs/data-import'- aria-label='Open data import documentation'+ aria-label={t('ariaLabels.openDataImportDocumentation')}target='_blank'rel='noreferrer'className='text-indigo-600 hover:text-indigo-500 dark:text-slate-300 dark:hover:text-white'diff --git a/web/app/pages/Project/Settings/components/ProxyDomainsTab.tsx b/web/app/pages/Project/Settings/components/ProxyDomainsTab.tsxindex 1577f5f8a..0468c57e6 100644--- a/web/app/pages/Project/Settings/components/ProxyDomainsTab.tsx+++ b/web/app/pages/Project/Settings/components/ProxyDomainsTab.tsx@@ -195,7 +195,7 @@ function DnsRecordTable({ domain }: { domain: ProxyDomain }) {</tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>- <tr aria-label='DNS record'>+ <tr aria-label={t('ariaLabels.dnsRecord')}><td className='px-3 py-2.5'><Text as='span' size='sm' colour='primary' className='font-mono'>CNAMEdiff --git a/web/app/pages/Project/View/Panels.tsx b/web/app/pages/Project/View/Panels.tsxindex c235e0d73..874ff8c84 100644--- a/web/app/pages/Project/View/Panels.tsx+++ b/web/app/pages/Project/View/Panels.tsx@@ -862,7 +862,12 @@ const CustomEvents = ({<buttonclassName='peer z-10 -m-1 ml-1 rounded-md border border-transparent p-1 transition-colors hover:border-gray-200 hover:bg-white hover:dark:border-slate-700/80 dark:hover:bg-slate-900 dark:focus:ring-slate-300'type='button'- aria-label={`${activeEvents[ev] ? 'Hide' : 'Show'} ${ev} details`}+ aria-label={t(+ activeEvents[ev]+ ? 'ariaLabels.hideEventDetails'+ : 'ariaLabels.showEventDetails',+ { event: ev },+ )}onClick={toggleDetails(ev)}>{loadingEvents[ev] ? (@@ -875,7 +880,7 @@ const CustomEvents = ({</button><buttontype='button'- aria-label={`${ev} filters`}+ aria-label={t('ariaLabels.eventFilters', { event: ev })}onClick={() => {const link = _getFilterLink(null, ev)navigate(link)@@ -889,7 +894,7 @@ const CustomEvents = ({</button></td><td- aria-label={`${ev} total`}+ aria-label={t('ariaLabels.eventTotal', { event: ev })}className='w-[40%] py-1 pr-2 text-right sm:w-2/6'><span className='inline-flex items-center justify-end'>diff --git a/web/app/pages/Project/View/components/CurrentTime.tsx b/web/app/pages/Project/View/components/CurrentTime.tsxindex e76c2b97f..68457d400 100644--- a/web/app/pages/Project/View/components/CurrentTime.tsx+++ b/web/app/pages/Project/View/components/CurrentTime.tsx@@ -56,7 +56,7 @@ const CurrentTime = () => {) : (<ahref={isAuthenticated ? '/user-settings' : '/login'}- aria-label='Open timezone settings'+ aria-label={t('ariaLabels.openTimezoneSettings')}target='_blank'rel='noopener noreferrer'className='border-b border-dashed border-gray-500 hover:border-solid hover:text-gray-900 dark:hover:text-white'diff --git a/web/app/pages/Project/View/components/WaitingForAnEvent.tsx b/web/app/pages/Project/View/components/WaitingForAnEvent.tsxindex 9d4fe4fc5..2a7c45b75 100644--- a/web/app/pages/Project/View/components/WaitingForAnEvent.tsx+++ b/web/app/pages/Project/View/components/WaitingForAnEvent.tsx@@ -31,7 +31,7 @@ const WaitingForAnEvent = () => {turl: (<ahref={TROUBLESHOOTING_URL}- aria-label='Open troubleshooting guide'+ aria-label={t('ariaLabels.openTroubleshootingGuide')}className='font-medium underline decoration-dashed hover:decoration-solid'target='_blank'rel='noreferrer noopener'diff --git a/web/app/pages/Project/tabs/Captcha/WaitingForCaptchaEvent.tsx b/web/app/pages/Project/tabs/Captcha/WaitingForCaptchaEvent.tsxindex 8b2d4edea..6a9e627df 100644--- a/web/app/pages/Project/tabs/Captcha/WaitingForCaptchaEvent.tsx+++ b/web/app/pages/Project/tabs/Captcha/WaitingForCaptchaEvent.tsx@@ -33,7 +33,7 @@ const WaitingForCaptchaEvent = () => {turl: (<ahref={TROUBLESHOOTING_URL}- aria-label='Open troubleshooting guide'+ aria-label={t('ariaLabels.openTroubleshootingGuide')}className='font-medium underline decoration-dashed hover:decoration-solid'target='_blank'rel='noreferrer noopener'@@ -42,7 +42,7 @@ const WaitingForCaptchaEvent = () => {guideurl: (<ahref={CAPTCHA_INTEGRATION_GUIDE_URL}- aria-label='Open CAPTCHA integration guide'+ aria-label={t('ariaLabels.openCaptchaIntegrationGuide')}className='font-medium underline decoration-dashed hover:decoration-solid'target='_blank'rel='noreferrer noopener'diff --git a/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsx b/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsxindex cc7f6d283..5e5956ad5 100644--- a/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsx+++ b/web/app/pages/Project/tabs/Errors/WaitingForAnError.tsx@@ -29,7 +29,7 @@ const WaitingForAnError = () => {turl: (<ahref={TROUBLESHOOTING_URL}- aria-label='Open troubleshooting guide'+ aria-label={t('ariaLabels.openTroubleshootingGuide')}className='font-medium underline decoration-dashed hover:decoration-solid'target='_blank'rel='noreferrer noopener'@@ -44,7 +44,7 @@ const WaitingForAnError = () => {howto: (<ahref={ERROR_TRACKING_DOCS_URL}- aria-label='Open error tracking guide'+ aria-label={t('ariaLabels.openErrorTrackingGuide')}className='font-medium underline decoration-dashed hover:decoration-solid'target='_blank'rel='noreferrer noopener'diff --git a/web/app/pages/Subscribe/Subscribe.tsx b/web/app/pages/Subscribe/Subscribe.tsxindex 276ea80c7..c19a79812 100644--- a/web/app/pages/Subscribe/Subscribe.tsx+++ b/web/app/pages/Subscribe/Subscribe.tsx@@ -364,7 +364,7 @@ const Subscribe = () => {contact: (<ahref={`mailto:${CONTACT_EMAIL}`}- aria-label='Contact support'+ aria-label={t('ariaLabels.contactSupport')}className='font-medium underline decoration-dashed hover:decoration-solid'/>),diff --git a/web/app/pages/UserSettings/UserSettings.tsx b/web/app/pages/UserSettings/UserSettings.tsxindex 60282066e..15cd73279 100644--- a/web/app/pages/UserSettings/UserSettings.tsx+++ b/web/app/pages/UserSettings/UserSettings.tsx@@ -1064,7 +1064,10 @@ const UserSettings = () => {>{t('profileSettings.sharedTable.joinedOn')}</th>- <th scope='col' aria-label='Actions' />+ <th+ scope='col'+ aria-label={t('ariaLabels.actions')}+ /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>@@ -1117,7 +1120,10 @@ const UserSettings = () => {>{t('profileSettings.sharedTable.joinedOn')}</th>- <th scope='col' aria-label='Actions' />+ <th+ scope='col'+ aria-label={t('ariaLabels.actions')}+ /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>@@ -1163,7 +1169,10 @@ const UserSettings = () => {'profileSettings.organisationsTable.joinedOn',)}</th>- <th scope='col' aria-label='Actions' />+ <th+ scope='col'+ aria-label={t('ariaLabels.actions')}+ /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>diff --git a/web/app/pages/UserSettings/components/Socialisations.tsx b/web/app/pages/UserSettings/components/Socialisations.tsxindex c4cf0ef2f..616f403b4 100644--- a/web/app/pages/UserSettings/components/Socialisations.tsx+++ b/web/app/pages/UserSettings/components/Socialisations.tsx@@ -194,7 +194,11 @@ const Socialisations = () => {>{t('common.status')}</th>- <th scope='col' aria-label='Actions' className='px-4 py-3' />+ <th+ scope='col'+ aria-label={t('ariaLabels.actions')}+ className='px-4 py-3'+ /></tr></thead><tbody className='divide-y divide-gray-200 bg-white dark:divide-slate-800 dark:bg-slate-950'>diff --git a/web/app/routes/google-analytics-alternative.tsx b/web/app/routes/google-analytics-alternative.tsxindex ecd0f9616..c1299cb54 100644--- a/web/app/routes/google-analytics-alternative.tsx+++ b/web/app/routes/google-analytics-alternative.tsx@@ -102,7 +102,7 @@ const Testimonials = ({ className }: { className?: string }) => {</div><div className='mt-1 flex flex-col items-center justify-center gap-1 md:items-start'><div className='relative inline-flex'>- <span className='sr-only'>5 out of 5 stars</span>+ <span className='sr-only'>{t('ariaLabels.fiveOutOfFiveStars')}</span><StarIconclassName='size-5 text-yellow-500'aria-hidden='true'diff --git a/web/app/ui/CaptchaSetup.tsx b/web/app/ui/CaptchaSetup.tsxindex 135ca417d..18ae5b458 100644--- a/web/app/ui/CaptchaSetup.tsx+++ b/web/app/ui/CaptchaSetup.tsx@@ -130,7 +130,7 @@ const CaptchaSetup = ({ projectId }: CaptchaSetupProps) => {url: (<ahref={CAPTCHA_DOCS_URL}- aria-label='Open CAPTCHA documentation'+ aria-label={t('ariaLabels.openCaptchaDocumentation')}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'@@ -175,7 +175,9 @@ const CaptchaSetup = ({ projectId }: CaptchaSetupProps) => {url: (<ahref={CAPTCHA_VALIDATION_DOCS_URL}- aria-label='Open CAPTCHA validation documentation'+ aria-label={t(+ 'ariaLabels.openCaptchaValidationDocumentation',+ )}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'diff --git a/web/app/ui/Dropdown.tsx b/web/app/ui/Dropdown.tsxindex c34bd37c3..e2c98ec2e 100644--- a/web/app/ui/Dropdown.tsx+++ b/web/app/ui/Dropdown.tsx@@ -8,6 +8,7 @@ import {import _isEmpty from 'lodash/isEmpty'import _map from 'lodash/map'import React, { memo, Fragment, Key } from 'react'+import { useTranslation } from 'react-i18next'import { cn } from '~/utils/generic'import { CaretDownIcon } from '@phosphor-icons/react'@@ -62,6 +63,8 @@ function Dropdown<T>({loading,position = 'down',}: DropdownProps<T>) {+ const { t } = useTranslation('common')+return (<Menu as='div' className={cn('relative inline-block text-left', className)}>{({ open, close }) => (@@ -147,7 +150,7 @@ function Dropdown<T>({{loading ? (<div className='flex items-center justify-center px-4 py-3'><Spin className='mr-0! ml-0!' />- <span className='sr-only'>Loading...</span>+ <span className='sr-only'>{t('common.loading')}</span></div>) : (_map(items, (item) => (diff --git a/web/app/ui/FileUpload.tsx b/web/app/ui/FileUpload.tsxindex 6eaa532d9..23429d39b 100644--- a/web/app/ui/FileUpload.tsx+++ b/web/app/ui/FileUpload.tsx@@ -1,5 +1,6 @@import { useCallback, useId, useRef, useState } from 'react'import { UploadIcon, SpinnerIcon } from '@phosphor-icons/react'+import { useTranslation } from 'react-i18next'import { cn } from '~/utils/generic'@@ -30,6 +31,7 @@ export default function FileUpload({hint,className,}: FileUploadProps) {+ const { t } = useTranslation('common')const inputId = useId()const inputRef = useRef<HTMLInputElement>(null)const [dragOver, setDragOver] = useState(false)@@ -134,7 +136,9 @@ export default function FileUpload({accept={accept}multiple={multiple}disabled={isDisabled}- aria-label={typeof label === 'string' ? label : 'Upload file'}+ aria-label={+ typeof label === 'string' ? label : t('ariaLabels.uploadFile')+ }aria-describedby={showHint ? hintId : undefined}onChange={handleChange}/>diff --git a/web/app/ui/Loader.tsx b/web/app/ui/Loader.tsxindex 2b266837f..88764ec26 100644--- a/web/app/ui/Loader.tsx+++ b/web/app/ui/Loader.tsx@@ -1,3 +1,5 @@+import { useTranslation } from 'react-i18next'+import Spin from './icons/Spin'import { cn } from '~/utils/generic'@@ -6,14 +8,18 @@ interface LoaderProps {label?: string}-const Loader = ({ className, label = 'Loading' }: LoaderProps) => (- <output- className={cn('flex items-center justify-center pt-10', className)}- aria-live='polite'- >- <Spin className='mr-0! ml-0!' />- <span className='sr-only'>{label}</span>- </output>-)+const Loader = ({ className, label }: LoaderProps) => {+ const { t } = useTranslation('common')++ return (+ <output+ className={cn('flex items-center justify-center pt-10', className)}+ aria-live='polite'+ >+ <Spin className='mr-0! ml-0!' />+ <span className='sr-only'>{label ?? t('common.loading')}</span>+ </output>+ )+}export default Loaderdiff --git a/web/app/ui/LoadingBar.tsx b/web/app/ui/LoadingBar.tsxindex 429e1e8d5..861864958 100644--- a/web/app/ui/LoadingBar.tsx+++ b/web/app/ui/LoadingBar.tsx@@ -1,11 +1,14 @@import cx from 'clsx'import React from 'react'+import { useTranslation } from 'react-i18next'interface LoadingBarProps {className?: string}const LoadingBar: React.FC<LoadingBarProps> = ({ className }) => {+ const { t } = useTranslation('common')+return (<divclassName={cx(@@ -13,7 +16,7 @@ const LoadingBar: React.FC<LoadingBarProps> = ({ className }) => {className,)}>- <progress className='sr-only' aria-label='Loading' />+ <progress className='sr-only' aria-label={t('common.loading')} /><divclassName='absolute h-full rounded-full bg-linear-to-r from-slate-400 via-slate-700 to-slate-900 dark:from-slate-500 dark:via-slate-200 dark:to-white'style={{diff --git a/web/app/ui/ProgressRing.tsx b/web/app/ui/ProgressRing.tsxindex 2d39168d4..38589891c 100644--- a/web/app/ui/ProgressRing.tsx+++ b/web/app/ui/ProgressRing.tsx@@ -1,4 +1,5 @@import { memo, useMemo } from 'react'+import { useTranslation } from 'react-i18next'import { cn } from '~/utils/generic'@@ -60,6 +61,7 @@ const ProgressRing = ({thresholds = DEFAULT_THRESHOLDS,ariaLabel,}: ProgressRingProps) => {+ const { t } = useTranslation('common')const normalizedValue = useMemo(() => {const safeValue = Number.isFinite(value) ? value : 0return Math.min(100, Math.max(0, safeValue))@@ -96,7 +98,9 @@ const ProgressRing = ({className='sr-only'max={100}value={displayValue}- aria-label={ariaLabel ?? `Progress: ${displayValue}%`}+ aria-label={+ ariaLabel ?? t('ariaLabels.progress', { value: displayValue })+ }/><svg width={size} height={size} className='-rotate-90' aria-hidden='true'><circlediff --git a/web/app/ui/TrackingSetup.tsx b/web/app/ui/TrackingSetup.tsxindex 304e9be03..d4ac05bea 100644--- a/web/app/ui/TrackingSetup.tsx+++ b/web/app/ui/TrackingSetup.tsx@@ -560,7 +560,9 @@ const TrackingSetup = ({ projectId }: TrackingSetupProps) => {url: (<ahref={`${DOCS_URL}/install-script`}- aria-label='Open tracking setup documentation'+ aria-label={t(+ 'ariaLabels.openTrackingSetupDocumentation',+ )}target='_blank'rel='noopener noreferrer'className='font-medium underline decoration-dashed hover:decoration-solid'diff --git a/web/public/locales/en.json b/web/public/locales/en.jsonindex e8fee6487..0adb57844 100644--- a/web/public/locales/en.json+++ b/web/public/locales/en.json@@ -159,6 +159,43 @@"jumpToPage": "Jump to page {{page}}","pageNumber": "Page {{page}}"},+ "ariaLabels": {+ "actions": "Actions",+ "contactSupport": "Contact support",+ "dateRange": "Date range",+ "dnsRecord": "DNS record",+ "emailSupport": "Email Swetrix support",+ "eventFilters": "{{event}} filters",+ "eventTotal": "{{event}} total",+ "fiveOutOfFiveStars": "5 out of 5 stars",+ "footer": "Footer",+ "googleSearchConsoleCsv": "Google Search Console CSV",+ "hideEventDetails": "Hide {{event}} details",+ "openCaptchaDocumentation": "Open CAPTCHA documentation",+ "openCaptchaIntegrationGuide": "Open CAPTCHA integration guide",+ "openCaptchaServerValidationGuide": "Open CAPTCHA server-side validation guide",+ "openCaptchaValidationDocumentation": "Open CAPTCHA validation documentation",+ "openDataImportDocumentation": "Open data import documentation",+ "openErrorTrackingDocumentation": "Open error tracking documentation",+ "openErrorTrackingGuide": "Open error tracking guide",+ "openFeedbackForm": "Open feedback form",+ "openGoogleSearchConsole": "Open Google Search Console",+ "openGoogleSearchConsoleSelfHostingGuide": "Open Google Search Console self-hosting guide",+ "openHaveIBeenPwned": "Open Have I Been Pwned",+ "openIntegrations": "Open integrations",+ "openLiveDemo": "Open live demo",+ "openSwetrixDiscord": "Open Swetrix Discord",+ "openSwetrixOnX": "Open Swetrix on X",+ "openSwetrixWebsite": "Open Swetrix website",+ "openTimezoneSettings": "Open timezone settings",+ "openTrackingSetupDocumentation": "Open tracking setup documentation",+ "openTroubleshootingGuide": "Open troubleshooting guide",+ "openWpoStats": "Open WPO Stats",+ "progress": "Progress: {{value}}%",+ "showEventDetails": "Show {{event}} details",+ "template": "Template",+ "uploadFile": "Upload file"+ },"performance": {"slogan": "End user <span>performance monitoring</span> to deliver fast websites.","description": "Deliver a flawless experience to your users, and we will let you know if your site is fast enough.",