Skip to content
This repository was archived by the owner on Feb 14, 2026. It is now read-only.

Commit b7dbc36

Browse files
CorentinThCopilot
andauthored
feat(locales): update site title and description for localization (#54)
* feat(locales): update site title and description for localization * Update src/locales/fr.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f9a7a60 commit b7dbc36

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

public/site.webmanifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"purpose": "maskable"
1616
}
1717
],
18-
"theme_color": "#ffffff",
19-
"background_color": "#ffffff",
18+
"theme_color": "#dbfd85",
19+
"background_color": "#141415",
2020
"display": "standalone"
2121
}

src/components/Head.astro

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
---
22
import { Head as CapoHead } from 'astro-capo';
3-
import { getPathWithoutLocale } from '../i18n/i18n';
3+
import { getPathWithoutLocale, useI18n } from '../i18n/i18n';
44
import { DEFAULT_LOCALE, LOCALES } from '../i18n/i18n.constants';
55
import { formatCanonicalUrl } from '../utils/urls';
66
import PosthogAnalytics from './PosthogAnalytics.astro';
77
8+
const { t } = useI18n({ locale: Astro.currentLocale });
9+
10+
811
export type Props = {
912
title?: string;
1013
rawTitle?: string;
@@ -19,10 +22,10 @@ export type Props = {
1922
2023
const siteInfo = {
2124
name: 'Papra',
22-
title: 'Papra - Simple & Secure Document Archiving for Long-Term Storage',
25+
title: t('site.title'),
2326
rootUrl: 'https://papra.app',
24-
description: 'Store and archive receipts, warranties, and important docs with Papra, a simple and accessible platform for long-term document management and retrieval.',
25-
image: { src: '/og/papra.png', alt: 'Papra - Simple & Secure Document Archiving for Long-Term Storage' },
27+
description: t('site.description'),
28+
image: { src: '/og/papra.png', alt: t('site.title') },
2629
author: 'Corentin Thomasset',
2730
};
2831

src/locales/en.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
export const translations = {
22
'language-name': 'English',
33

4+
'site.title': 'Papra - The document archiving platform',
5+
'site.description': 'Papra is an open-source platform to organize, secure, and archive all your documents, effortlessly. Start digitizing your life today!',
6+
47
// Call to Action Section
58
'cta.get-started': 'Get Started',
69
'cta.heading': 'Stop searching. Start finding.<br /> Organize your documents with Papra.',

src/locales/fr.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import type { TranslationsDictionary } from '../i18n/i18n.types';
33
export const translations: Partial<TranslationsDictionary> = {
44
'language-name': 'Français',
55

6+
'site.title': 'Papra - La plateforme d\'archivage de documents',
7+
'site.description': 'Papra est une plateforme open-source pour organiser, sécuriser et archiver tous vos documents, sans effort. Commencez à digitaliser votre vie dès aujourd\'hui !',
8+
69
// Call to Action Section
710
'cta.get-started': 'Commencer',
811
'cta.heading': 'Fini la recherche infructueuse.<br /> Organisez vos documents avec Papra.',

src/pages/[locale]/index.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ export async function getStaticPaths() {
2121
const { t } = useI18n({ locale: Astro.currentLocale });
2222
---
2323

24-
<Layout>
24+
<Layout
25+
rawTitle={t('site.title')}
26+
description={t('site.description')}
27+
>
2528
{discount.enabled && <LaunchBanner />}
2629

2730
<div class="relative overflow-hidden pb-300px bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px]">

0 commit comments

Comments
 (0)