mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2026-03-04 02:20:19 +01:00
Use existing translations for admin modal
This commit is contained in:
@@ -232,6 +232,7 @@
|
||||
"title": "Do you want make Stirling PDF better?",
|
||||
"paragraph1": "Stirling PDF has opt in analytics to help us improve the product. We do not track any personal information or file contents.",
|
||||
"paragraph2": "Please consider enabling analytics to help Stirling-PDF grow and to allow us to understand our users better.",
|
||||
"learnMore": "Learn more",
|
||||
"enable": "Enable analytics",
|
||||
"disable": "Disable analytics",
|
||||
"settings": "You can change the settings for analytics in the config/settings.yml file"
|
||||
@@ -3621,29 +3622,6 @@
|
||||
"title": "Attachment Results"
|
||||
}
|
||||
},
|
||||
"analytics": {
|
||||
"modal": {
|
||||
"title": "Configure Analytics",
|
||||
"description": "Choose whether to enable analytics for Stirling PDF. If enabled, users can control individual services (PostHog and Scarf) through the cookie preferences.",
|
||||
"whatWeCollect": "What we collect:",
|
||||
"collect": {
|
||||
"system": "Operating system and Java version",
|
||||
"config": "CPU/memory configuration and deployment type",
|
||||
"features": "Aggregate feature usage counts",
|
||||
"pages": "Page visits (via tracking pixel)"
|
||||
},
|
||||
"whatWeDoNotCollect": "What we do NOT collect:",
|
||||
"notCollect": {
|
||||
"documents": "Document content or file data",
|
||||
"pii": "Personally identifiable information (PII)",
|
||||
"ip": "IP addresses"
|
||||
},
|
||||
"privacy": "All analytics data is hosted on EU servers and respects your privacy.",
|
||||
"enable": "Enable Analytics",
|
||||
"disable": "Disable Analytics",
|
||||
"note": "This choice can be changed later by editing the settings.yml file."
|
||||
}
|
||||
},
|
||||
"termsAndConditions": "Terms & Conditions",
|
||||
"logOut": "Log out"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Modal, Stack, Button, Text, Title, Paper, List } from '@mantine/core';
|
||||
import { Modal, Stack, Button, Text, Title, Anchor } from '@mantine/core';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useState } from 'react';
|
||||
import { Z_ANALYTICS_MODAL } from '../../styles/zIndex';
|
||||
@@ -53,41 +53,22 @@ export default function AdminAnalyticsChoiceModal({ opened }: AdminAnalyticsChoi
|
||||
zIndex={Z_ANALYTICS_MODAL}
|
||||
>
|
||||
<Stack gap="md">
|
||||
<Title order={2}>{t('analytics.modal.title', 'Configure Analytics')}</Title>
|
||||
<Title order={2}>{t('analytics.title', 'Do you want make Stirling PDF better?')}</Title>
|
||||
|
||||
<Text size="sm" c="dimmed">
|
||||
{t('analytics.modal.description', 'Choose whether to enable analytics for Stirling PDF. If enabled, users can control individual services (PostHog and Scarf) through the cookie preferences.')}
|
||||
{t('analytics.paragraph1', 'Stirling PDF has opt in analytics to help us improve the product. We do not track any personal information or file contents.')}
|
||||
</Text>
|
||||
|
||||
<Paper p="md" withBorder>
|
||||
<Stack gap="xs">
|
||||
<Text fw={600} size="sm">
|
||||
{t('analytics.modal.whatWeCollect', 'What we collect:')}
|
||||
</Text>
|
||||
<List size="sm" spacing="xs">
|
||||
<List.Item>{t('analytics.modal.collect.system', 'Operating system and Java version')}</List.Item>
|
||||
<List.Item>{t('analytics.modal.collect.config', 'CPU/memory configuration and deployment type')}</List.Item>
|
||||
<List.Item>{t('analytics.modal.collect.features', 'Aggregate feature usage counts')}</List.Item>
|
||||
<List.Item>{t('analytics.modal.collect.pages', 'Page visits (via tracking pixel)')}</List.Item>
|
||||
</List>
|
||||
</Stack>
|
||||
</Paper>
|
||||
|
||||
<Paper p="md" withBorder>
|
||||
<Stack gap="xs">
|
||||
<Text fw={600} size="sm">
|
||||
{t('analytics.modal.whatWeDoNotCollect', 'What we do NOT collect:')}
|
||||
</Text>
|
||||
<List size="sm" spacing="xs">
|
||||
<List.Item>{t('analytics.modal.notCollect.documents', 'Document content or file data')}</List.Item>
|
||||
<List.Item>{t('analytics.modal.notCollect.pii', 'Personally identifiable information (PII)')}</List.Item>
|
||||
<List.Item>{t('analytics.modal.notCollect.ip', 'IP addresses')}</List.Item>
|
||||
</List>
|
||||
</Stack>
|
||||
</Paper>
|
||||
|
||||
<Text size="sm" fs="italic">
|
||||
{t('analytics.modal.privacy', 'All analytics data is hosted on EU servers and respects your privacy.')}
|
||||
<Text size="sm" c="dimmed">
|
||||
{t('analytics.paragraph2', 'Please consider enabling analytics to help Stirling-PDF grow and to allow us to understand our users better.')}{' '}
|
||||
<Anchor
|
||||
href="https://docs.stirlingpdf.com/analytics-telemetry"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
size="sm"
|
||||
>
|
||||
{t('analytics.learnMore', 'Learn more')}
|
||||
</Anchor>
|
||||
</Text>
|
||||
|
||||
{error && (
|
||||
@@ -103,7 +84,7 @@ export default function AdminAnalyticsChoiceModal({ opened }: AdminAnalyticsChoi
|
||||
fullWidth
|
||||
size="md"
|
||||
>
|
||||
{t('analytics.modal.enable', 'Enable Analytics')}
|
||||
{t('analytics.enable', 'Enable analytics')}
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
@@ -114,12 +95,12 @@ export default function AdminAnalyticsChoiceModal({ opened }: AdminAnalyticsChoi
|
||||
variant="subtle"
|
||||
c="gray"
|
||||
>
|
||||
{t('analytics.modal.disable', 'Disable Analytics')}
|
||||
{t('analytics.disable', 'Disable analytics')}
|
||||
</Button>
|
||||
</Stack>
|
||||
|
||||
<Text size="xs" c="dimmed" ta="center">
|
||||
{t('analytics.modal.note', 'This choice can be changed later by editing the settings.yml file.')}
|
||||
{t('analytics.settings', 'You can change the settings for analytics in the config/settings.yml file')}
|
||||
</Text>
|
||||
</Stack>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user