---
/**
* Privacy. The honest version is short and unusually good, so it is stated plainly
* rather than padded into a policy.
*
* Anything that depends on how the site is deployed (what the web server logs and for
* how long) is written conditionally and marked, because this repo cannot know the
* operator's nginx and logrotate settings. See NOTES-PAGES.md.
*/
import Base from '../../layouts/Base.astro';
import { localePath, useI18n, type Locale } from '../../i18n';
import { localePaths } from '../../i18n/paths';
/** One page per locale: `/privacy`, `/es/privacy`, `/nl/privacy`. */
export const getStaticPaths = localePaths;
interface Props {
locale: Locale;
}
const { locale } = Astro.props;
const t = useI18n(locale);
const GITHUB = 'https://github.com/Azzamo-net/cashumints.space';
/** Bump `disclaimer.updated` in every catalog when the text changes. */
const updated = t('disclaimer.updated');
const description = t('privacy.description');
/*
* Three list items that open with a bold lead, and two sentences with a link. Each is
* one catalog string with a placeholder, so the lead and the link can sit wherever the
* language puts them rather than always first.
*/
const bold = (value: string): string => `${value}`;
const operatorNote =
bold(t('privacy.logs.operatorLabel')) + ' ' + t('privacy.logs.operator');
const thirdPartyLi1 = t('privacy.thirdParties.li1', {
strong: bold(t('privacy.thirdParties.li1Label')),
link: `${t('privacy.thirdParties.li1Link')}`,
});
const thirdPartyLi2 = t('privacy.thirdParties.li2', {
strong: bold(t('privacy.thirdParties.li2Label')),
});
const contactP1 = t('privacy.contact.p1', {
github: `GitHub`,
});
---
{t('privacy.lede', { date: updated })}
{t('privacy.noAccounts.p1')}
{t('privacy.noTracking.p1')}
{t('privacy.logs.p1')}
{t('privacy.storage.p1')}
{t('privacy.storage.p2')}
{t('privacy.thirdParties.p1')}
{t('privacy.publishing.p1')}
{t('privacy.permanent.p1')}
{t('privacy.permanent.p2')}