feat(frontend): scaffold i18n init, fr.json (~140 keys), status map, format helpers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
7
frontend/src/lib/format.ts
Normal file
7
frontend/src/lib/format.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const formatDate = (iso: string | null | undefined): string => {
|
||||
if (!iso) return '—';
|
||||
return new Date(iso).toLocaleDateString('fr-FR');
|
||||
};
|
||||
|
||||
export const formatDateTime = (iso: string): string =>
|
||||
new Date(iso).toLocaleString('fr-FR');
|
||||
Reference in New Issue
Block a user