packages/supabase assets module: closed AssetFailure kinds, begin / quarantine upload (upsert off) / confirm / remove, own-row state read with an explicit column list, download under the SELECT policy. App: client transport (magic byte sniff, never SVG, createImageBitmap, canvas 1024 px, JPEG 0.9, 5 MiB cap), AvatarSection (preview, save, 1 s polling up to 30 s, rejection and failure messages per closed code, removal with confirmation, in-flight row resumed at mount), auth store blob URL revoked on change and sign-out, AvatarCircle in UserBadge and the top bar link to Mon compte (D3), FR/EN strings, fake client extended, 27 new tests (app 300).
418 lines
19 KiB
TypeScript
418 lines
19 KiB
TypeScript
import type { Dict } from './types'
|
|
|
|
export const en: Dict = {
|
|
'common.cancel': 'Cancel',
|
|
'common.close': 'Close',
|
|
'common.save': 'Save',
|
|
'common.confirm': 'Confirm',
|
|
'common.delete': 'Delete',
|
|
'common.add': 'Add',
|
|
'common.home': 'Home',
|
|
'common.understood': 'Got it',
|
|
'common.collapse': 'Collapse',
|
|
'common.expand': 'Expand',
|
|
'common.move_up': 'Move up',
|
|
'common.move_down': 'Move down',
|
|
'common.back_to_home': 'Back to home',
|
|
|
|
'home.new_report.title': 'New report',
|
|
'home.new_report.description':
|
|
'Start a new osteopathic report for an animal.',
|
|
'home.new_report.cta': 'Start',
|
|
'home.import.title': 'Import a PDF',
|
|
'home.import.description':
|
|
'Reopen a previous report generated by this app to follow up.',
|
|
'home.import.cta': 'Choose a PDF',
|
|
'home.import.loading': 'Reading…',
|
|
'home.import.error_generic': 'Failed to read the PDF.',
|
|
'home.import.error_invalid_pdf': 'This file is not a readable PDF.',
|
|
'home.import.error_no_attachment':
|
|
'This PDF was not generated by Faunosteo (no data detected).',
|
|
'home.import.error_incompatible_version':
|
|
'This PDF uses format v{version}, which this version of the application cannot read (accepted formats: v2 and v3).',
|
|
'home.import.complete': 'Full restoration.',
|
|
'home.import.degraded':
|
|
'Partial recovery: check the items flagged below.',
|
|
'home.import.migrated':
|
|
'Report imported from an older format. Findings not found in the current sheet: {count} (kept with their labels).',
|
|
'home.import.archive_ok':
|
|
'Faunosteo archive imported: report and the original sheet snapshot kept.',
|
|
'home.import.snapshot_rejected':
|
|
'Report recovered, but the original sheet snapshot was rejected ({reason}): this archive cannot be reproduced as is.',
|
|
'home.import.snapshot_reason.unsupported_envelope':
|
|
'archive from a newer version',
|
|
'home.import.snapshot_reason.schema': 'invalid content',
|
|
'home.import.snapshot_reason.caps': 'size or complexity over the limits',
|
|
'home.import.snapshot_reason.integrity': 'inconsistent sheet',
|
|
'home.import.snapshot_reason.sheet_mismatch':
|
|
"sheet differs from the report's",
|
|
'home.import.rebased':
|
|
"Report opened on the current sheet, which differs from the archive's. Items not found: {count} (kept with their labels).",
|
|
'home.import.error_attachment_stripped':
|
|
'This Faunosteo PDF lost its embedded data (attachment removed by a viewer or an optimiser). Use the original file.',
|
|
'home.no_sheet.title': 'No anatomical sheet',
|
|
'home.no_sheet.description':
|
|
'This build of the application carries no anatomical sheet: no report can be created or imported.',
|
|
|
|
'home.space.signin': 'Sign in',
|
|
'home.space.open': 'My space',
|
|
|
|
// footer
|
|
'footer.all_rights_reserved': 'All rights reserved.',
|
|
'footer.powered_by': 'Powered by',
|
|
'footer.in_partnership': 'In partnership with',
|
|
|
|
'not_found.title': 'Page not found',
|
|
'not_found.description': 'The requested path does not exist.',
|
|
|
|
'new_report.title': 'New report',
|
|
'new_report.date_label': 'Report date',
|
|
'new_report.submit': 'Start the report',
|
|
|
|
'editor.export': 'Export as PDF',
|
|
'editor.exporting': 'Generating…',
|
|
'editor.export_failed': 'PDF generation failed. Retry or contact support.',
|
|
'editor.export_warnings':
|
|
'PDF exported with missing elements: {items}. Check the browser console.',
|
|
'editor.draft_rebased':
|
|
'Draft restored on an anatomical sheet different from the one it was created on. Items not found: {count} (kept with their labels).',
|
|
'editor.edit_infos': 'Edit info',
|
|
'editor.edit_dialog_title': 'Edit information',
|
|
'editor.disclaimer_title': 'Legal scope of animal osteopathy',
|
|
|
|
'detail.click_to_add':
|
|
'Click the zones to add them to the current observation.',
|
|
|
|
'observation.section_title': 'Observations',
|
|
'observation.add': '+ New observation',
|
|
'observation.empty':
|
|
'No observation. Click "+ New observation" then on the zones in the diagram.',
|
|
'observation.badge_n': 'Observation #',
|
|
'observation.zone_label_singular': 'zone',
|
|
'observation.zone_label_plural': 'zones',
|
|
'observation.finding_label_singular': 'finding',
|
|
'observation.finding_label_plural': 'findings',
|
|
'observation.zones_label': 'Selected zones',
|
|
'observation.zones_empty':
|
|
'Click on the zones in the diagram to add them to this observation.',
|
|
'observation.findings_catalog_label': 'Findings (catalog)',
|
|
'observation.findings_pick_zone_first': 'Pick a zone to access the catalog.',
|
|
'observation.findings_no_catalog':
|
|
'No catalog available for these zones. Use the free text below.',
|
|
'observation.findings_free_label': 'Findings (free text)',
|
|
'observation.free_placeholder': 'Additional observation (free text)',
|
|
'observation.free_aria': 'Free observation',
|
|
'observation.severity_label': 'Severity',
|
|
'observation.comment_label': 'Comment',
|
|
'observation.comment_placeholder': 'Detailed clinical notes…',
|
|
'observation.vertebrae_button': 'Vertebrae…',
|
|
'observation.vertebrae_button_title': 'Specify vertebrae for this zone',
|
|
'observation.remove_zone': 'Remove',
|
|
'observation.expand_aria': 'Expand observation',
|
|
'observation.collapse_aria': 'Collapse observation',
|
|
|
|
'findings.back_to_parent': 'Back to previous level',
|
|
'findings.back': '← Back',
|
|
'findings.no_options': 'No option available at this level.',
|
|
'findings.open': 'Open',
|
|
'findings.vet_referral': 'Refer to a veterinarian',
|
|
'findings.selected_singular': 'finding selected',
|
|
'findings.selected_plural': 'findings selected',
|
|
|
|
'form.practitioner.legend': 'Practitioner',
|
|
'form.practitioner.name': 'Full name *',
|
|
'form.practitioner.cabinet': 'Practice / clinic',
|
|
'form.practitioner.contact': 'Contact (phone, email…)',
|
|
'form.practitioner.siret': 'SIRET',
|
|
'form.animal.legend': 'Animal & owner',
|
|
'form.animal.species': 'Species *',
|
|
'form.animal.name': 'Animal name *',
|
|
'form.animal.breed': 'Breed',
|
|
'form.animal.age': 'Age',
|
|
'form.owner.name': 'Owner name *',
|
|
|
|
'conclusion.section_title': 'Conclusion & recommendations',
|
|
'conclusion.conclusion': 'Conclusion',
|
|
'conclusion.recommendations': 'Recommendations',
|
|
'conclusion.next_appointment': 'Next appointment',
|
|
'conclusion.next_kind_date': 'Date',
|
|
'conclusion.next_kind_period': 'Free period',
|
|
'conclusion.next_kind_none': 'None',
|
|
'conclusion.next_period_placeholder': 'e.g. in 3 weeks',
|
|
|
|
'vertebra.title_prefix': 'Specify vertebrae — ',
|
|
'vertebra.check_all': 'Select all',
|
|
'vertebra.uncheck_all': 'Clear all',
|
|
'vertebra.extend_to': 'Show up to {max}',
|
|
'vertebra.range_note':
|
|
'Usual count: {usual}; documented variation: {min} to {max}.',
|
|
|
|
// sheet
|
|
'sheet.status.draft':
|
|
'Anatomical sheet: reference draft, not medically validated',
|
|
'sheet.status.published': 'Official anatomical sheet',
|
|
'sheet.loading': 'Loading the anatomical sheet…',
|
|
|
|
// unresolved (migrated) data
|
|
'observation.unresolved_short': 'inherited',
|
|
'observation.zone_unresolved':
|
|
'Zone inherited from an older report, absent from the current sheet',
|
|
'observation.findings_unresolved_label':
|
|
'Inherited findings (outside the current catalog)',
|
|
'observation.findings_unresolved_help':
|
|
'Findings imported from an older report whose path no longer exists in the sheet: kept with their original labels.',
|
|
|
|
// laterality
|
|
'lateral.which_side': 'Which side?',
|
|
'lateral.left': 'Left',
|
|
'lateral.right': 'Right',
|
|
'lateral.both': 'Both',
|
|
'lateral.left_short': 'L',
|
|
'lateral.right_short': 'R',
|
|
|
|
'severity.aria': 'Severity',
|
|
'severity.mild': 'mild',
|
|
'severity.moderate': 'moderate',
|
|
'severity.severe': 'severe',
|
|
|
|
'lang.group_label': 'Language',
|
|
'lang.switch_to_fr': 'Passer en français',
|
|
'lang.switch_to_en': 'Switch to English',
|
|
'lang.fr': 'FR',
|
|
'lang.en': 'EN',
|
|
|
|
// auth — shared
|
|
'auth.brand_claim': 'Your Faunosteo professional space.',
|
|
'auth.brand_note':
|
|
'The report tool stays available without an account. An account prepares what comes next: saved reports, animal follow-up, sharing with owners.',
|
|
'auth.unavailable_title': 'Signed-in space not available',
|
|
'auth.unavailable_description':
|
|
'This installation has no authentication server. The local report tool remains usable.',
|
|
'auth.back_to_tool': 'Back to the report tool',
|
|
'auth.email': 'Email address',
|
|
'auth.password': 'Password',
|
|
'auth.password_confirm': 'Confirm password',
|
|
'auth.password_hint':
|
|
'At least {min} characters, with a lowercase letter, an uppercase letter and a digit.',
|
|
'auth.show_password': 'Show password',
|
|
'auth.hide_password': 'Hide password',
|
|
'auth.or': 'or',
|
|
'auth.continue_with_google': 'Continue with Google',
|
|
'auth.continue_with_apple': 'Continue with Apple',
|
|
'auth.loading': 'Loading…',
|
|
|
|
// auth — login
|
|
'auth.login.title': 'Welcome back',
|
|
'auth.login.subtitle': 'Sign in to your space.',
|
|
'auth.login.submit': 'Sign in',
|
|
'auth.login.submitting': 'Signing in…',
|
|
'auth.login.forgot': 'Forgot your password?',
|
|
'auth.login.no_account': 'No account yet?',
|
|
'auth.login.signup_link': 'Create an account',
|
|
|
|
// auth — signup
|
|
'auth.signup.title': 'Create your account',
|
|
'auth.signup.subtitle': 'A few details, then a confirmation by email.',
|
|
'auth.signup.display_name': 'Display name',
|
|
'auth.signup.display_name_hint':
|
|
'How others will see you. You can change it later.',
|
|
'auth.signup.submit': 'Create my account',
|
|
'auth.signup.submitting': 'Creating…',
|
|
'auth.signup.have_account': 'Already have an account?',
|
|
'auth.signup.login_link': 'Sign in',
|
|
'auth.signup.check_inbox_title': 'Check your inbox',
|
|
'auth.signup.check_inbox_description':
|
|
'A confirmation link was sent to {email}. Open it to activate your account, then sign in.',
|
|
'auth.signup.check_inbox_spam':
|
|
'Nothing after a few minutes? Check your spam folder.',
|
|
|
|
// auth — forgot / reset
|
|
'auth.forgot.title': 'Forgot password',
|
|
'auth.forgot.subtitle':
|
|
'Enter your email address: we will send you a link to choose a new password.',
|
|
'auth.forgot.submit': 'Send the link',
|
|
'auth.forgot.submitting': 'Sending…',
|
|
'auth.forgot.sent_title': 'Link sent',
|
|
'auth.forgot.sent_description':
|
|
'If an account exists for {email}, an email is on its way. The link stays valid for one hour.',
|
|
'auth.forgot.back_to_login': 'Back to sign in',
|
|
'auth.reset.title': 'New password',
|
|
'auth.reset.subtitle': 'Choose a new password for your account.',
|
|
'auth.reset.submit': 'Save the password',
|
|
'auth.reset.submitting': 'Saving…',
|
|
'auth.reset.no_session_title': 'Invalid or expired link',
|
|
'auth.reset.no_session_description':
|
|
'This reset link can no longer be used. Request a new one.',
|
|
'auth.reset.request_again': 'Request a new link',
|
|
|
|
// auth — callback
|
|
'auth.callback.working': 'Signing you in…',
|
|
'auth.callback.failed_title': 'Sign-in failed',
|
|
'auth.callback.failed_description':
|
|
'No session could be opened: the link expired, was already used, or was opened in a different browser than the one that requested it. If you just confirmed your address, simply sign in.',
|
|
'auth.callback.retry': 'Try signing in again',
|
|
|
|
// auth — field errors (validation)
|
|
'auth.error.email_required': 'The email address is required.',
|
|
'auth.error.email_invalid': 'This email address is not valid.',
|
|
'auth.error.password_required': 'The password is required.',
|
|
'auth.error.password_rules':
|
|
'At least 12 characters, with a lowercase letter, an uppercase letter and a digit.',
|
|
'auth.error.password_mismatch': 'The two passwords do not match.',
|
|
'auth.error.display_name_required': 'The display name is required.',
|
|
'auth.error.display_name_too_long': 'The display name exceeds 80 characters.',
|
|
|
|
// auth — server failures
|
|
'auth.failure.invalid_credentials': 'Incorrect email or password.',
|
|
'auth.failure.email_not_confirmed':
|
|
'Your email address is not confirmed yet. Open the link you received by email.',
|
|
'auth.failure.user_exists': 'An account already exists with this email address.',
|
|
'auth.failure.weak_password':
|
|
'Password too weak: at least 12 characters, with a lowercase letter, an uppercase letter and a digit.',
|
|
'auth.failure.same_password': 'The new password must differ from the old one.',
|
|
'auth.failure.invalid_email': 'This email address is not accepted.',
|
|
'auth.failure.rate_limited':
|
|
'Too many attempts. Wait a few minutes before trying again.',
|
|
'auth.failure.link_expired': 'This link has expired or was already used.',
|
|
'auth.failure.session_expired': 'Your session has expired. Sign in again.',
|
|
'auth.failure.reauthentication_needed':
|
|
'For security, sign out and sign in again before changing the password.',
|
|
'auth.failure.provider_disabled': 'This sign-in method is not enabled.',
|
|
'auth.failure.network': 'Cannot reach the server. Check your network.',
|
|
'auth.failure.unknown': 'An unexpected error occurred. Try again.',
|
|
|
|
// shell
|
|
'shell.nav_label': 'Main navigation',
|
|
'shell.open_menu': 'Open menu',
|
|
'shell.close_menu': 'Close menu',
|
|
'shell.nav.dashboard': 'Dashboard',
|
|
'shell.nav.account': 'My account',
|
|
'shell.nav.local_tool': 'Report tool',
|
|
'shell.nav.local_tool_hint': 'No account, PDF export',
|
|
'shell.sign_out': 'Sign out',
|
|
'shell.signing_out': 'Signing out…',
|
|
'shell.sign_out_failed':
|
|
'Signed out on this device, but the server did not confirm: your other sessions may stay open.',
|
|
'shell.loading_session': 'Checking your session…',
|
|
'shell.role.owner': 'Platform owner',
|
|
'shell.role.admin': 'Administrator',
|
|
'shell.role.moderator': 'Moderator',
|
|
'shell.role.support': 'Support',
|
|
|
|
// dashboard
|
|
'dashboard.title': 'Dashboard',
|
|
'dashboard.greeting': 'Hello {name}',
|
|
'dashboard.greeting_fallback': 'Hello',
|
|
'dashboard.intro':
|
|
'Your Faunosteo space is ready. Online reports will come in a later version; until then the report tool remains available.',
|
|
'dashboard.profile.title': 'Your profile',
|
|
'dashboard.profile.incomplete':
|
|
'Fill in your professional details: they will appear on your future reports.',
|
|
'dashboard.profile.complete': 'Your details are filled in.',
|
|
'dashboard.profile.missing_label': 'To complete:',
|
|
'dashboard.profile.cta_complete': 'Complete my profile',
|
|
'dashboard.profile.cta_view': 'View my account',
|
|
'dashboard.tool.title': 'Report tool',
|
|
'dashboard.tool.description':
|
|
'Create or resume a report as today: it works without an account and exports a PDF that carries its own data.',
|
|
'dashboard.tool.cta_new': 'New report',
|
|
'dashboard.tool.cta_import': 'Import a PDF',
|
|
'dashboard.account.title': 'Account',
|
|
'dashboard.account.email': 'Email',
|
|
'dashboard.account.verified': 'Address confirmed',
|
|
'dashboard.account.unverified': 'Address not confirmed',
|
|
'dashboard.account.language': 'Language',
|
|
'dashboard.account.roles': 'Platform roles',
|
|
'dashboard.account.no_roles': 'No platform role',
|
|
'dashboard.account.member_since': 'Account created on {date}',
|
|
|
|
// account
|
|
'account.title': 'My account',
|
|
'account.save': 'Save',
|
|
'account.saving': 'Saving…',
|
|
'account.saved': 'Changes saved.',
|
|
'account.optional': 'optional',
|
|
'account.error.save_failed': 'Saving failed. Check the fields and try again.',
|
|
'account.error.required': 'This field is required.',
|
|
'account.error.too_long': 'Text too long ({max} characters maximum).',
|
|
'account.error.phone_format':
|
|
'International format, for example +33612345678.',
|
|
'account.error.siret_format': 'A SIRET has exactly 14 digits.',
|
|
'account.personal.title': 'Personal information',
|
|
'account.personal.description': 'How you appear in Faunosteo.',
|
|
'account.personal.display_name': 'Display name',
|
|
'account.personal.first_name': 'First name',
|
|
'account.personal.last_name': 'Last name',
|
|
'account.personal.phone': 'Phone',
|
|
'account.personal.phone_hint':
|
|
'International format. SMS verification comes later.',
|
|
'account.professional.title': 'Professional information',
|
|
'account.professional.description':
|
|
'Declarative for now: professional verification comes in a later step.',
|
|
'account.professional.professional_title': 'Professional title',
|
|
'account.professional.professional_title_placeholder': 'Animal osteopath',
|
|
'account.professional.practice_name': 'Practice or organisation',
|
|
'account.professional.siret': 'SIRET',
|
|
'account.professional.siret_hint': '14 digits, no spaces.',
|
|
'account.preferences.title': 'Preferences',
|
|
'account.preferences.description':
|
|
'The language is saved on your account and applies on every device.',
|
|
'account.preferences.language': 'Language',
|
|
'account.preferences.timezone': 'Time zone',
|
|
'account.preferences.timezone_hint': 'Used for dates and future appointments.',
|
|
'account.security.title': 'Security',
|
|
'account.security.description': 'Password and sessions.',
|
|
'account.security.email_label': 'Sign-in address',
|
|
'account.security.new_password': 'New password',
|
|
'account.security.change_password': 'Change password',
|
|
'account.security.changing_password': 'Updating…',
|
|
'account.security.password_changed': 'Password updated.',
|
|
'account.security.mfa_title': 'Two-factor authentication',
|
|
'account.security.mfa_note':
|
|
'Not available in this version yet. It will be offered, then required for platform roles.',
|
|
'account.security.sign_out_everywhere_note':
|
|
'Signing out closes the session on this device.',
|
|
'account.avatar.title': 'Profile photo',
|
|
'account.avatar.alt': 'Profile photo',
|
|
'account.avatar.change': 'Change photo',
|
|
'account.avatar.save': 'Save photo',
|
|
'account.avatar.saving': 'Uploading…',
|
|
'account.avatar.cancel': 'Cancel',
|
|
'account.avatar.remove': 'Remove photo',
|
|
'account.avatar.remove_title': 'Remove the photo?',
|
|
'account.avatar.remove_body':
|
|
'Your profile photo will be removed. You can add another one at any time.',
|
|
'account.avatar.remove_confirm': 'Remove',
|
|
'account.avatar.removed': 'Photo removed.',
|
|
'account.avatar.processing': 'Processing…',
|
|
'account.avatar.processing_hint':
|
|
'Your photo is being checked and resized. This takes a few seconds.',
|
|
'account.avatar.processing_long':
|
|
'Processing is taking longer than expected. Come back in a moment.',
|
|
'account.avatar.saved': 'Photo saved.',
|
|
'account.avatar.hint': 'JPEG, PNG or WebP, 5 MB at most once reduced.',
|
|
'account.avatar.error.too_large': 'Image too large (5 MB at most).',
|
|
'account.avatar.error.unsupported_type':
|
|
'Unsupported format: choose a JPEG, PNG or WebP image.',
|
|
'account.avatar.error.rate_limited':
|
|
'Too many attempts. Try again in an hour.',
|
|
'account.avatar.error.storage_full':
|
|
'Storage is full. Try again later.',
|
|
'account.avatar.error.upload_missing':
|
|
'The upload did not complete. Try again.',
|
|
'account.avatar.error.invalid_state':
|
|
'This action no longer matches your current photo. Reload the page.',
|
|
'account.avatar.error.not_found': 'Photo not found. Reload the page.',
|
|
'account.avatar.error.network':
|
|
'Cannot reach the server. Check your connection and try again.',
|
|
'account.avatar.error.unknown': 'Something went wrong. Try again.',
|
|
'account.avatar.rejected.unsupported_type':
|
|
'Photo refused: the file is not a JPEG, PNG or WebP image.',
|
|
'account.avatar.rejected.decode_failed':
|
|
'Photo refused: the file is corrupt or unreadable.',
|
|
'account.avatar.rejected.dimensions':
|
|
'Photo refused: between 64 and 4096 pixels per side.',
|
|
'account.avatar.rejected.processing_error':
|
|
'Photo refused: processing failed. Try another image.',
|
|
}
|