Skip to content
Merged
19 changes: 19 additions & 0 deletions components/SettingsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import SoundManager from '@services/SoundManager';
import { getAgeGroup, setAgeGroup } from '@services/AgeGroupManager';
import Colors from '../constants/Colors';
import { Spacing, FontSize, FontWeight, BorderRadius } from '../constants/Layout';
import { IMPRESSUM_URL, PRIVACY_POLICY_URL } from '../constants/ExternalLinks';
import ParentalGate from './ParentalGate';
import ParentDashboard from './ParentDashboard';
import BadgesModal from './BadgesModal';
Expand Down Expand Up @@ -151,6 +152,24 @@ export default function SettingsModal({ visible, onClose, embedded = false }: Se
{Constants.expoConfig?.version ?? '–'}
</Text>

<Text style={[styles.modalLabel, { color: colors.text.light, marginTop: Spacing.md }]}>
{t('settings.impressumLabel')}
</Text>
<TouchableOpacity onPress={() => openExternalUrl(IMPRESSUM_URL)}>
<Text style={[styles.modalLink, { color: colors.primary }]}>
{t('settings.openLink')}
</Text>
</TouchableOpacity>

<Text style={[styles.modalLabel, { color: colors.text.light, marginTop: Spacing.md }]}>
{t('footer.privacyPolicy')}
</Text>
<TouchableOpacity onPress={() => openExternalUrl(PRIVACY_POLICY_URL)}>
<Text style={[styles.modalLink, { color: colors.primary }]}>
{t('settings.openLink')}
</Text>
</TouchableOpacity>

<Text style={[styles.modalLabel, { color: colors.text.light, marginTop: Spacing.md }]}>
{t('settings.licenseLabel')}
</Text>
Expand Down
7 changes: 7 additions & 0 deletions constants/ExternalLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ export const SITE_URL = 'https://s540d.github.io/DrawFromMemory/';

export const PRIVACY_POLICY_URL = `${SITE_URL}PRIVACY_POLICY.html`;

/**
* Zentrales Impressum für alle Projekte unter s540d.github.io (nicht
* projektlokal) — siehe project-templates/dev-standards/about-section.md,
* Issue #150.
*/
export const IMPRESSUM_URL = 'https://s540d.github.io/impressum.html';

/** Wo auf der Web-Demo der Klick passiert ist — wird zu `utm_medium`. */
export type PlayStoreLinkSource = 'web_banner' | 'web_footer' | 'web_result' | 'readme';

Expand Down
2 changes: 2 additions & 0 deletions locales/de/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"aboutButton": "Über",
"aboutTitle": "Über Merke und Male",
"versionLabel": "Version",
"impressumLabel": "Impressum",
"openLink": "Öffnen ↗",
"licenseLabel": "Lizenz",
"error": "Fehler",
"about": "Über die App",
Expand Down
2 changes: 2 additions & 0 deletions locales/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"aboutButton": "About",
"aboutTitle": "About Remember & Draw",
"versionLabel": "Version",
"impressumLabel": "Imprint",
"openLink": "Open ↗",
"licenseLabel": "License",
"error": "Error",
"about": "About",
Expand Down
2 changes: 2 additions & 0 deletions locales/es/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"aboutButton": "Acerca de",
"aboutTitle": "Acerca de Recuerda y Dibuja",
"versionLabel": "Versión",
"impressumLabel": "Aviso legal",
"openLink": "Abrir ↗",
"licenseLabel": "Licencia",
"error": "Error",
"about": "Acerca de la app",
Expand Down
2 changes: 2 additions & 0 deletions locales/fr/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"aboutButton": "À propos",
"aboutTitle": "À propos de Mémorise et Dessine",
"versionLabel": "Version",
"impressumLabel": "Mentions légales",
"openLink": "Ouvrir ↗",
"licenseLabel": "Licence",
"error": "Erreur",
"about": "À propos de l'app",
Expand Down
2 changes: 2 additions & 0 deletions locales/it/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"aboutButton": "Informazioni",
"aboutTitle": "Informazioni su Ricorda e Disegna",
"versionLabel": "Versione",
"impressumLabel": "Note legali",
"openLink": "Apri ↗",
"licenseLabel": "Licenza",
"error": "Errore",
"about": "Informazioni sull'app",
Expand Down
2 changes: 2 additions & 0 deletions locales/nl/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"aboutButton": "Over",
"aboutTitle": "Over Onthoud en Teken",
"versionLabel": "Versie",
"impressumLabel": "Colofon",
"openLink": "Openen ↗",
"licenseLabel": "Licentie",
"error": "Fout",
"about": "Over de app",
Expand Down
2 changes: 2 additions & 0 deletions locales/pl/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
"aboutButton": "O aplikacji",
"aboutTitle": "O aplikacji Zapamiętaj i Rysuj",
"versionLabel": "Wersja",
"impressumLabel": "Nota prawna",
"openLink": "Otwórz ↗",
"licenseLabel": "Licencja",
"error": "Błąd",
"about": "O aplikacji",
Expand Down
Loading