Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(desktop-gpui): localize the main window, recording controls, camera window and onboarding

Richie McIlroy0418f4db0730
diff --git a/apps/desktop-gpui/locales/GLOSSARY.md b/apps/desktop-gpui/locales/GLOSSARY.md
index 288c306cc..8715a29e2 100644
--- a/apps/desktop-gpui/locales/GLOSSARY.md
+++ b/apps/desktop-gpui/locales/GLOSSARY.md
@@ -35,6 +35,15 @@ from English, and `cargo test -p cap-i18n-build` fails while any key is missing.
Menu bar items follow the wording macOS itself uses in each language, so they
sit naturally next to the items AppKit adds.
+Keep the English punctuation style of each string: `...` stays three dots and
+`…` stays one character, because both appear in the source. Duration units
+follow each language (`~45 s`, `~2 Min.`, `約2分`). Mode names in sentences use
+the language's word for "mode" around the product name (mode Instant,
+Instant-Modus, Instantモード).
+
+Error messages that end in `{error}` show a technical message from the
+recording engine, which stays in English.
+
## Terms
| English | zh-CN | ja | fr | es | de | hi |
@@ -61,13 +70,25 @@ sit naturally next to the items AppKit adds.
| self-host | 自托管 | セルフホスト | auto-hébergement | alojamiento propio | selbst hosten | सेल्फ़-होस्ट |
| System default | 跟随系统 | システムのデフォルト | langue du système | predeterminado del sistema | Systemstandard | सिस्टम डिफ़ॉल्ट |
| Recommended | 推荐 | 推奨 | recommandé | recomendado | empfohlen | सुझाया गया |
+| Instant Mode | Instant 模式 | Instantモード | mode Instant | modo Instant | Instant-Modus | Instant मोड |
+| Screenshot Mode | 截图模式 | スクリーンショットモード | mode Capture d'écran | modo Captura de pantalla | Bildschirmfoto-Modus | स्क्रीनशॉट मोड |
+| System Settings (macOS app) | 系统设置 | システム設定 | Réglages Système | Ajustes del Sistema | Systemeinstellungen | सिस्टम सेटिंग्स |
+| Allow (macOS prompt button) | 允许 | 許可 | Autoriser | Permitir | Erlauben | अनुमति दें |
+| shareable link | 分享链接 | 共有リンク | lien de partage | enlace para compartir | Link zum Teilen | शेयर करने लायक लिंक |
+| clip | 片段 | クリップ | clip | clip | Clip | क्लिप |
+| segment (of a recording) | 分段 | セグメント | segment | segmento | Segment | सेगमेंट |
+| recover / discard | 恢复 / 丢弃 | 復元 / 破棄 | récupérer / supprimer | recuperar / descartar | wiederherstellen / verwerfen | रिकवर करें / हटाएँ |
+| Personal / Commercial plan | 个人版 / 商业版 | 個人 / 商用 | Personnel / Commercial | Personal / Comercial | Privat / Kommerziell | पर्सनल / कमर्शियल |
## Fitting the UI
-Keys with `max_px` in `en.toml` sit in fixed-width spots (the settings sidebar,
-select buttons). `translations_fit_their_width_budgets` measures every catalog's
-text for those keys with the bundled Geist and fails above 92% of the budget.
-Prefer a shorter natural phrase over an abbreviation when that happens.
+Keys with `max_px` in `en.toml` sit in fixed-width spots: the settings sidebar,
+select buttons, the main window's capture tiles, device rows and status pills,
+and the recording controls' stop label. `translations_fit_their_width_budgets`
+measures every catalog's text for those keys with the bundled Geist and fails
+above 92% of the budget, or above the English width where English is already
+wider (the controls' `Resuming…`). Prefer a shorter natural phrase over an
+abbreviation when that happens.
## Adding a language
diff --git a/apps/desktop-gpui/locales/de.toml b/apps/desktop-gpui/locales/de.toml
index 9463622e9..655419e15 100644
--- a/apps/desktop-gpui/locales/de.toml
+++ b/apps/desktop-gpui/locales/de.toml
@@ -1,10 +1,20 @@
[common]
add = "Hinzufügen"
+back = "Zurück"
cancel = "Abbrechen"
+choose_allow_prompt = "Wählen Sie in der macOS-Abfrage „Erlauben“."
+close = "Schließen"
+copied = "Kopiert"
+dismiss = "Schließen"
+go_back = "Zurück"
+loading = "Wird geladen..."
+no = "Nein"
ok = "OK"
reset = "Zurücksetzen"
reset_to_default = "Auf Standard zurücksetzen"
save = "Speichern"
+search = "Suchen"
+yes = "Ja"
[menu.app]
about = "Über Cap"
@@ -223,3 +233,350 @@ title = "Datenschutz"
[settings.general.privacy.telemetry]
description = "Cap nutzt anonyme Telemetrie, um die Zuverlässigkeit zu verbessern und Fehler zu beheben. Wir erfassen niemals Aufnahmeinhalte, Fenstertitel, Dateipfade oder persönliche Daten."
label = "Anonyme Telemetrie teilen"
+
+[main]
+delete_recording_confirm = "Möchten Sie diese Aufnahme wirklich löschen?"
+delete_screenshot_confirm = "Möchten Sie dieses Bildschirmfoto wirklich löschen?"
+
+[main.clean_capture]
+title = "Halten Sie Ihre Aufnahme sauber"
+
+[main.clip]
+add_to_project = "Zum aktuellen Projekt hinzufügen"
+record_new = "Neuen Clip aufnehmen"
+
+[main.device]
+camera = "Kamera"
+fallback_camera = "Kamera"
+heading = "Kamera und Mikrofon wählen"
+microphone = "Mikrofon"
+no_camera = "Keine Kamera"
+no_cameras = "Keine Kameras gefunden"
+no_matching_cameras = "Keine passenden Kameras"
+no_matching_microphones = "Keine passenden Mikrofone"
+no_microphone = "Kein Mikrofon"
+no_microphones = "Keine Mikrofone gefunden"
+system_audio_off = "Kein Systemton"
+system_audio_on = "Systemton aufnehmen"
+
+[main.device.access]
+allow_access = "Zugriff erlauben"
+camera_denied = "Cap kann Ihre Kamera nicht verwenden. Aktivieren Sie sie in den Systemeinstellungen."
+camera_needed = "Cap braucht Ihre Zustimmung, um Ihre Kamera zu verwenden."
+microphone_denied = "Cap kann Ihr Mikrofon nicht verwenden. Aktivieren Sie es in den Systemeinstellungen."
+microphone_needed = "Cap braucht Ihre Zustimmung, um Ihr Mikrofon zu verwenden."
+open_system_settings = "Systemeinstellungen öffnen"
+turn_on_in_settings = "Einstellungen öffnen"
+
+[main.device.format]
+apply_failed = "Gerätformat konnte nicht angewendet werden: {error}"
+applying = "Format wird angewendet..."
+available = "Verfügbar: {format}"
+camera_changed = "Die Kamera wurde gewechselt oder getrennt. Öffnen Sie ihre Formateinstellungen erneut."
+channels = { one = "{count} Kanal", other = "{count} Kanäle" }
+current = "Aktuell: {format}"
+default = "Standard"
+loading = "Formate werden geladen..."
+mono = "Mono"
+preferred = "Bevorzugtes Format"
+save_failed = "Das bevorzugte Geräteformat konnte nicht gespeichert werden. Versuchen Sie es erneut."
+stereo = "Stereo"
+
+[main.device.pill]
+allow = "Erlauben"
+allow_in_settings = "Einstellungen öffnen"
+asking = "Anfrage…"
+not_connected = "Nicht verbunden"
+off = "Aus"
+on = "Ein"
+
+[main.error]
+camera_only_needs_camera = "Für reine Kameraaufnahmen muss eine Kamera ausgewählt sein."
+copy = "Fehler kopieren"
+devices_not_ready = "Die Aufnahmegeräte sind nicht bereit. Öffnen Sie den Recorder und versuchen Sie es erneut."
+title = "Etwas ist schiefgelaufen"
+
+[main.header]
+changelog = "Änderungsprotokoll"
+help = "Hilfe & Tour"
+recordings = "Aufnahmen"
+screenshots = "Bildschirmfotos"
+settings = "Einstellungen"
+teleprompter = "Teleprompter"
+
+[main.library]
+clips = { one = "{count} Clip", other = "{count} Clips" }
+copy_screenshot_failed = "Bildschirmfoto konnte nicht kopiert werden"
+import_recordings = "Importieren"
+import_screenshots = "Bild importieren"
+importing = "Import läuft"
+no_matching_recordings = "Keine passenden Aufnahmen"
+no_matching_screenshots = "Keine passenden Bildschirmfotos"
+no_recordings = "Noch keine Aufnahmen"
+no_screenshots = "Noch keine Bildschirmfotos"
+recordings_description = "Hier erscheinen Ihre Bildschirmaufnahmen. Starten Sie eine Aufnahme, um loszulegen!"
+screenshots_description = "Hier erscheinen Ihre Bildschirmfotos. Machen Sie ein Bildschirmfoto, um loszulegen!"
+view_all_recordings = "Alle Aufnahmen anzeigen"
+view_all_screenshots = "Alle Bildschirmfotos anzeigen"
+
+[main.mic_warning]
+body = "Diese Aufnahme enthält Ihre Stimme nicht. Wählen Sie ein Mikrofon oder fahren Sie ohne fort."
+dont_show_again = "Nicht mehr anzeigen"
+record_without = "Ohne Mikrofon aufnehmen"
+save_failed = "Ihre Einstellung konnte nicht gespeichert werden. Versuchen Sie es erneut oder lassen Sie das Kästchen leer."
+title = "Kein Mikrofon erkannt"
+
+[main.mode]
+info_tooltip = "Infos zu den Aufnahmemodi"
+
+[main.mode.header]
+instant = "Instant-Modus"
+screenshot = "Bildschirmfoto-Modus"
+studio = "Studio-Modus"
+
+[main.mode.hover]
+instant = "Instant-Modus"
+instant_description = "Kein Rendern nötig: Der Upload läuft während der Aufnahme, sodass Sie den Link sofort nach dem Stoppen teilen können."
+quality_settings = "Qualitätseinstellungen"
+screenshot = "Bildschirmfoto-Modus"
+screenshot_description = "Standbilder aufnehmen und beschriften."
+studio = "Studio-Modus"
+studio_description = "Speichert auf Ihrem Computer und öffnet beim Stoppen den Editor. Die Aufnahmequalität wählen Sie in den Einstellungen."
+
+[main.mode.info]
+instant = "Sofort per Link teilen. Ihre Aufnahme wird schon während der Aufnahme hochgeladen, sodass Sie sie gleich nach dem Beenden teilen können."
+screenshot = "Bildschirmfotos sofort aufnehmen und beschriften. Ideal für schnelle Aufnahmen, Fehlerberichte und visuelle Kommunikation."
+studio = "Lokal in höchster Qualität aufnehmen und später bearbeiten. Perfekt für ausgefeilte Inhalte mit Effekten und Übergängen."
+title = "Aufnahmemodi"
+
+[main.mode.name]
+instant = "Instant"
+screenshot = "Bildschirmfoto"
+studio = "Studio"
+
+[main.plan]
+commercial = "Kommerziell"
+personal = "Privat"
+
+[main.recording]
+cancel = "Aufnahme abbrechen"
+paused_notice = "Aufnahme pausiert. Cap wird vor dem Fortsetzen ausgeblendet."
+resume = "Fortsetzen"
+starting = "Wird gestartet..."
+starts_in = "Aufnahme beginnt in {remaining}"
+stop = "Aufnahme beenden"
+stopping = "Wird beendet..."
+
+[main.recovery]
+discard = "Verwerfen"
+duration_minutes = "~{minutes} Min."
+duration_minutes_seconds = "~{minutes} Min. {seconds} Sek."
+duration_seconds = "~{seconds} Sek."
+recover = "Wiederherstellen"
+segments = { one = "{count} Segment", other = "{count} Segmente" }
+segments_with_duration = { one = "{count} Segment · {duration}", other = "{count} Segmente · {duration}" }
+title = "Unvollständige Aufnahme"
+
+[main.sign_in]
+message = "Der Instant-Modus lädt schon während der Aufnahme hoch, sodass Ihr Link zum Teilen sofort nach dem Stoppen bereit ist."
+not_now = "Nicht jetzt"
+open_browser_again = "Browser erneut öffnen"
+pending_message = "Schließen Sie die Anmeldung bei Cap in Ihrem Browser ab. Danach kehrt Cap hierher zurück und öffnet den Recorder."
+sign_in = "Anmelden"
+timed_out = "Zeitüberschreitung bei der Anmeldung. Versuchen Sie es erneut."
+title = "Melden Sie sich an, um den Instant-Modus zu nutzen"
+use_studio = "Studio verwenden"
+waiting = "Warten auf Ihren Browser"
+
+[main.storage]
+blocked = "Auf Ihrem Aufnahmelaufwerk sind nur {available} GB frei. Geben Sie Speicherplatz frei, sodass vor der Aufnahme mindestens 512 MB verfügbar sind."
+can_start = "Auf Ihrem Aufnahmelaufwerk sind nur {available} GB frei. Cap beendet die Aufnahme automatisch, wenn der Speicher zu knapp wird, und sichert sie dabei."
+check_failed = "Der Speicher für Aufnahmen konnte nicht geprüft werden: {error}"
+record_anyway = "Trotzdem aufnehmen"
+title = "Wenig Speicherplatz"
+
+[main.target]
+area = "Bereich"
+camera_only = "Nur Kamera"
+choose_display = "Bildschirm wählen"
+choose_window = "Fenster wählen"
+display = "Bildschirm"
+heading = "Aufnahmequelle wählen"
+no_displays = "Keine Bildschirme gefunden"
+no_matching_displays = "Keine passenden Bildschirme"
+no_matching_windows = "Keine passenden Fenster"
+no_windows = "Keine Fenster gefunden"
+window = "Fenster"
+
+[controls]
+disk_full_resume = "Nicht genug Speicherplatz zum Fortsetzen. Geben Sie Speicher frei und versuchen Sie es erneut, oder drücken Sie Stopp, um zu speichern."
+low_storage = "Wenig Speicherplatz. Cap beendet die Aufnahme bald, um sie zu sichern."
+
+[controls.confirm]
+delete = "Löschen"
+delete_message = "Möchten Sie die Aufnahme wirklich löschen?"
+delete_title = "Löschen bestätigen"
+restart = "Neu starten"
+restart_message = "Möchten Sie die Aufnahme wirklich neu starten? Die aktuelle Aufnahme wird verworfen."
+restart_title = "Neustart bestätigen"
+
+[controls.pause]
+pause = "Aufnahme pausieren"
+pausing = "Aufnahme wird pausiert…"
+resume = "Aufnahme fortsetzen"
+resuming = "Aufnahme wird fortgesetzt…"
+unconfirmed = "Der Aufnahmestatus ist unklar. Verwenden Sie Stopp."
+
+[controls.stop]
+error = "Fehler"
+paused = "Pausiert"
+pausing = "Pause…"
+resuming = "Weiter…"
+saving = "Sichert…"
+starting = "Startet"
+
+[camera]
+waiting_title = "Warten auf Kamerazugriff"
+
+[camera.effects]
+blur_message = "Ihre Kamera wird nicht weichgezeichnet."
+blur_title = "Hintergrundunschärfe nicht verfügbar"
+both_message = "Ihre Kamera wird weder weichgezeichnet noch gespiegelt."
+both_title = "Kameraeffekte nicht verfügbar"
+mirror_message = "Ihre Kameravorschau wird nicht gespiegelt."
+mirror_title = "Spiegeln nicht verfügbar"
+
+[camera.issue]
+access_message = "Klicken Sie hier, um Cap in den Systemeinstellungen den Zugriff auf Ihre Kamera zu erlauben."
+access_title = "Kamerazugriff erforderlich"
+generic = "Die ausgewählte Kamera konnte nicht gestartet werden. Wählen Sie eine andere Kamera oder verbinden Sie diese erneut."
+invalid_format = "Diese Kamera hat kein nutzbares Aufnahmeformat gemeldet."
+not_found = "Diese Kamera ist nicht mehr verfügbar. Prüfen Sie, ob sie verbunden ist und in den Systemberechtigungen erlaubt ist."
+start_failed = "Das System konnte diese Kamera nicht starten. Sie ist möglicherweise nicht verfügbar oder wird von einer anderen App verwendet."
+timeout = "Von dieser Kamera kamen keine Bilder. Sie ist möglicherweise geschlossen, getrennt, abgedeckt oder wird von einer anderen App verwendet."
+unavailable_title = "Kamera nicht verfügbar"
+
+[onboarding.customize]
+footer = "Alles davon können Sie jederzeit in den Einstellungen ändern"
+subtitle = "Passen Sie alles an, von Tastenkürzeln bis zum Speicherort. Cap richtet sich nach Ihrer Arbeitsweise."
+title = "Machen Sie Cap zu Ihrem"
+
+[onboarding.customize.domain]
+description = "Nutzen Sie Ihre eigene Domain für Links zum Teilen statt cap.so"
+title = "Eigene Domain"
+
+[onboarding.customize.preferences]
+description = "FPS, Qualität, Countdown, Cursor-Effekte und mehr"
+title = "Aufnahmeeinstellungen"
+
+[onboarding.customize.s3]
+description = "Verbinden Sie Ihren eigenen S3-kompatiblen Bucket für volle Kontrolle über Ihre Aufnahmen"
+title = "Eigener S3-Speicher"
+
+[onboarding.customize.shortcuts]
+description = "Globale Tastenkürzel für Aufnahmen, Bildschirmfotos und den Moduswechsel"
+title = "Tastenkürzel"
+
+[onboarding.demo]
+background = "HINTERGRUND"
+copied = "Kopiert!"
+copied_to_clipboard = "In die Zwischenablage kopiert"
+copy = "Kopieren"
+editor = "Cap Editor"
+export = "Exportieren"
+export_complete = "Export abgeschlossen!"
+exporting = "Wird exportiert..."
+link_ready = "Link bereit zum Teilen!"
+save = "Sichern"
+start_recording = "Aufnahme starten"
+stopped = "Beendet"
+style = "STIL"
+
+[onboarding.demo.steps]
+beautify = "Verschönern"
+edit = "Bearbeiten"
+record = "Aufnehmen"
+select_area = "Bereich wählen"
+share_link = "Link teilen"
+stop = "Stoppen"
+
+[onboarding.error]
+save_progress = "Der Einrichtungsfortschritt konnte nicht gespeichert werden. Bitte versuchen Sie es erneut."
+save_sound = "Die Toneinstellung konnte nicht gespeichert werden."
+
+[onboarding.faq]
+pricing = "Preise ansehen"
+pricing_link = "Preise ansehen ↗"
+subtitle = "Alles, was Sie für den Einstieg wissen müssen."
+title = "Häufige Fragen"
+
+[onboarding.faq.free]
+answer = "Cap ist für die private Nutzung kostenlos. Für Teams und kommerzielle Nutzung finden Sie unsere Tarife auf der Preisseite."
+question = "Ist Cap kostenlos?"
+
+[onboarding.faq.instant_vs_studio]
+answer = "Der Instant-Modus lädt schon während der Aufnahme hoch: Stoppen Sie, und Ihr Link zum Teilen ist sofort da. Der Studio-Modus nimmt lokal in voller Qualität auf, sodass Sie vor dem Teilen Hintergründe, Effekte und mehr hinzufügen können."
+question = "Was ist der Unterschied zwischen Instant und Studio?"
+
+[onboarding.faq.sharing]
+answer = "Im Instant-Modus erhalten Sie automatisch einen Link zum Teilen, sobald Sie die Aufnahme beenden. Im Studio-Modus exportieren Sie Ihr bearbeitetes Video und teilen es über die Cap Cloud oder speichern es lokal."
+question = "Wie funktioniert das Teilen?"
+
+[onboarding.faq.shortcuts]
+answer = "Unter Einstellungen → Tastenkürzel können Sie jederzeit alle Ihre Tastenkürzel anpassen."
+question = "Kann ich meine Tastenkürzel später ändern?"
+
+[onboarding.faq.storage]
+answer = "Alle Aufnahmen werden lokal auf Ihrem Computer gespeichert. Im Instant-Modus werden sie zusätzlich in die Cap Cloud hochgeladen, damit Sie sie leicht teilen können. Den Speicher verwalten Sie in den Einstellungen."
+question = "Wo werden meine Aufnahmen gespeichert?"
+
+[onboarding.modes.instant]
+description = "Ihre Aufnahme wird schon während der Aufnahme hochgeladen. Stoppen Sie, und Sie erhalten sofort einen Link zum Teilen, ganz ohne Warten."
+feature_1 = "Sofortiger Link zum Teilen"
+feature_2 = "Upload im Hintergrund"
+feature_3 = "KI-Transkription & Zusammenfassung"
+feature_4 = "Wiedergabe im Browser"
+tagline = "In Sekunden aufnehmen & teilen"
+title = "Instant-Modus"
+
+[onboarding.modes.screenshot]
+description = "Machen Sie Bildschirmfotos mit einem einzigen Tastenkürzel, fügen Sie Beschriftungen und schöne Hintergründe hinzu und teilen oder kopieren Sie sie sofort."
+feature_1 = "Aufnahme per Tastenkürzel"
+feature_2 = "Beschriftungs- & Zeichenwerkzeuge"
+feature_3 = "Schöne Hintergründe"
+feature_4 = "Kopieren, sichern oder teilen"
+tagline = "Sofort aufnehmen & verschönern"
+title = "Bildschirmfoto-Modus"
+
+[onboarding.modes.studio]
+description = "Nehmen Sie lokal in voller Qualität auf und fügen Sie dann im integrierten Editor Hintergründe, Abstände, Cursor-Effekte und mehr hinzu."
+feature_1 = "Lokale Aufnahme in voller Qualität"
+feature_2 = "Integrierter Editor & Effekte"
+feature_3 = "Eigene Hintergründe & Abstände"
+feature_4 = "Exportieren oder teilen, wenn alles fertig ist"
+tagline = "Professionelle Bearbeitungswerkzeuge"
+title = "Studio-Modus"
+
+[onboarding.nav]
+back = "← Zurück"
+continue_to_cap = "Weiter zu Cap"
+keyboard_hint = "Drücken Sie Eingabe ↵ oder nutzen Sie die Pfeiltasten ← →"
+next = "Weiter"
+permissions_needed = "Erteilen Sie die erforderlichen Berechtigungen, um fortzufahren"
+relaunch = "Cap neu starten"
+skip = "Tour überspringen"
+start = "Cap verwenden"
+
+[onboarding.overview]
+subtitle = "Ob Tempo, Studioqualität oder ein schnelles Bildschirmfoto: Cap hat den passenden Modus."
+title = "Eine App für jeden Workflow"
+
+[onboarding.toggle]
+subtitle = "Wechseln Sie mit einem Klick im Hauptfenster von Cap zwischen den Modi."
+title = "Modus jederzeit wechseln"
+
+[onboarding.welcome]
+click_or_press = "Hier klicken oder drücken:"
+get_started = "Los geht’s"
+space_key = "Leertaste"
+tagline = "Die Open-Source-App zum Teilen des Bildschirms für alle."
diff --git a/apps/desktop-gpui/locales/en.toml b/apps/desktop-gpui/locales/en.toml
index 26bc6f554..e1e78c363 100644
--- a/apps/desktop-gpui/locales/en.toml
+++ b/apps/desktop-gpui/locales/en.toml
@@ -1,10 +1,20 @@
[common]
add = "Add"
+back = "Back"
cancel = "Cancel"
+choose_allow_prompt = "Choose Allow in the macOS prompt."
+close = "Close"
+copied = "Copied"
+dismiss = "Dismiss"
+go_back = "Go back"
+loading = "Loading..."
+no = "No"
ok = "OK"
reset = "Reset"
reset_to_default = "Reset to Default"
save = "Save"
+search = "Search"
+yes = "Yes"
[menu.app]
about = "About Cap"
@@ -225,3 +235,350 @@ title = "Privacy"
[settings.general.privacy.telemetry]
description = "Cap uses anonymous telemetry to improve reliability and fix bugs. We never collect recording contents, window titles, file paths, or personal information."
label = "Share anonymous telemetry"
+
+[main]
+delete_recording_confirm = "Are you sure you want to delete this recording?"
+delete_screenshot_confirm = "Are you sure you want to delete this screenshot?"
+
+[main.clean_capture]
+title = "Keep your capture clean"
+
+[main.clip]
+add_to_project = "Add to your current project"
+record_new = "Record a new clip"
+
+[main.device]
+camera = "Camera"
+fallback_camera = "Camera"
+heading = "Choose your camera and microphone"
+microphone = "Microphone"
+no_camera = { text = "No Camera", max_px = 180, size = 14 }
+no_cameras = "No cameras found"
+no_matching_cameras = "No matching cameras"
+no_matching_microphones = "No matching microphones"
+no_microphone = { text = "No Microphone", max_px = 180, size = 14 }
+no_microphones = "No microphones found"
+system_audio_off = { text = "No System Audio", max_px = 180, size = 14 }
+system_audio_on = { text = "Record System Audio", max_px = 180, size = 14 }
+
+[main.device.access]
+allow_access = { text = "Allow access", max_px = 130, size = 11 }
+camera_denied = "Cap can't use your camera. Turn it on in System Settings."
+camera_needed = "Cap needs your OK to use your camera."
+microphone_denied = "Cap can't use your microphone. Turn it on in System Settings."
+microphone_needed = "Cap needs your OK to use your microphone."
+open_system_settings = "Open System Settings"
+turn_on_in_settings = { text = "Turn on in Settings", max_px = 130, size = 11 }
+
+[main.device.format]
+apply_failed = { text = "Could not apply device format: {error}", context = "{error} is a technical error message, usually in English." }
+applying = "Applying format..."
+available = { text = "Available: {format}", context = "{format} is a camera or microphone format such as 1920×1080 @ 30fps." }
+camera_changed = "Camera changed or disconnected. Reopen its format settings."
+channels = { one = "{count} channel", other = "{count} channels", context = "Shown for three or more audio channels." }
+current = "Current: {format}"
+default = "Default"
+loading = "Loading formats..."
+mono = "Mono"
+preferred = "Preferred format"
+save_failed = "Could not save the device format preference. Try again."
+stereo = "Stereo"
+
+[main.device.pill]
+allow = { text = "Allow", max_px = 130, size = 11 }
+allow_in_settings = { text = "Allow in Settings", max_px = 130, size = 11 }
+asking = { text = "Asking…", max_px = 130, size = 11 }
+not_connected = { text = "Not connected", max_px = 130, size = 11 }
+off = { text = "Off", max_px = 130, size = 11 }
+on = { text = "On", max_px = 130, size = 11 }
+
+[main.error]
+camera_only_needs_camera = "Camera-only recording requires a selected camera."
+copy = "Copy error"
+devices_not_ready = "Recording devices are not ready. Open the recorder and try again."
+title = "Something went wrong"
+
+[main.header]
+changelog = "Changelog"
+help = "Help & Tour"
+recordings = "Recordings"
+screenshots = "Screenshots"
+settings = "Settings"
+teleprompter = "Teleprompter"
+
+[main.library]
+clips = { one = "{count} clip", other = "{count} clips", context = "Badge on a recording made of several clips; only shown for two or more." }
+copy_screenshot_failed = "Could not copy screenshot"
+import_recordings = "Import"
+import_screenshots = "Import image"
+importing = "Importing"
+no_matching_recordings = "No matching recordings"
+no_matching_screenshots = "No matching screenshots"
+no_recordings = "No recordings yet"
+no_screenshots = "No screenshots yet"
+recordings_description = "Your screen recordings will appear here. Start recording to get started!"
+screenshots_description = "Your screenshots will appear here. Take a screenshot to get started!"
+view_all_recordings = "View All Recordings"
+view_all_screenshots = "View All Screenshots"
+
+[main.mic_warning]
+body = "This recording will not include your voice. Select a microphone, or continue without one."
+dont_show_again = "Don't show again"
+record_without = "Record without microphone"
+save_failed = "Could not save your preference. Try again or leave the box unchecked."
+title = "No microphone detected"
+
+[main.mode]
+info_tooltip = "Recording mode info"
+
+[main.mode.header]
+instant = "Instant Mode"
+screenshot = "Screenshot Mode"
+studio = "Studio Mode"
+
+[main.mode.hover]
+instant = "Instant mode"
+instant_description = "No rendering required — uploads on the fly so you can share the link the moment you stop."
+quality_settings = "Quality settings"
+screenshot = "Screenshot mode"
+screenshot_description = "Capture and annotate stills."
+studio = "Studio mode"
+studio_description = "Saves to your computer and opens the editor when you stop. Choose recording quality in settings."
+
+[main.mode.info]
+instant = "Share instantly with a link. Your recording uploads as you record, so you can share it immediately when you're done."
+screenshot = "Capture and annotate screenshots instantly. Great for quick captures, bug reports, and visual communication."
+studio = "Record locally in the highest quality for editing later. Perfect for creating polished content with effects and transitions."
+title = "Recording Modes"
+
+[main.mode.name]
+instant = "Instant"
+screenshot = "Screenshot"
+studio = "Studio"
+
+[main.plan]
+commercial = "Commercial"
+personal = "Personal"
+
+[main.recording]
+cancel = "Cancel Recording"
+paused_notice = "Recording paused. Cap will hide before resuming."
+resume = "Resume"
+starting = "Starting..."
+starts_in = { text = "Recording starts in {remaining}", context = "{remaining} is a number of seconds." }
+stop = "Stop Recording"
+stopping = "Stopping..."
+
+[main.recovery]
+discard = "Discard"
+duration_minutes = "~{minutes}m"
+duration_minutes_seconds = "~{minutes}m {seconds}s"
+duration_seconds = "~{seconds}s"
+recover = "Recover"
+segments = { one = "{count} segment", other = "{count} segments" }
+segments_with_duration = { one = "{count} segment · {duration}", other = "{count} segments · {duration}", context = "{duration} is an estimate such as ~45s or ~2m 5s." }
+title = "Incomplete Recording"
+
+[main.sign_in]
+message = "Instant Mode uploads while you record, so your shareable link is ready the moment you stop."
+not_now = "Not now"
+open_browser_again = "Open browser again"
+pending_message = "Finish signing in to Cap in your browser. Cap comes back here and opens the recorder when you're done."
+sign_in = "Sign In"
+timed_out = "Sign in timed out. Try again."
+title = "Sign in to use Instant Mode"
+use_studio = "Use Studio"
+waiting = "Waiting for your browser"
+
+[main.storage]
+blocked = { text = "Only {available} GB is available on your recording drive. Free up space so at least 512 MB is available before recording.", context = "{available} is a number with two decimals, such as 0.40." }
+can_start = { text = "Only {available} GB is available on your recording drive. Cap will stop automatically if storage gets too low, preserving your recording.", context = "{available} is a number with two decimals, such as 3.25." }
+check_failed = { text = "Could not check recording storage: {error}", context = "{error} is a technical error message, usually in English." }
+record_anyway = "Record anyway"
+title = "Low storage"
+
+[main.target]
+area = { text = "Area", max_px = 140, size = 12 }
+camera_only = { text = "Camera Only", max_px = 140, size = 12 }
+choose_display = "Choose a display"
+choose_window = "Choose a window"
+display = { text = "Display", max_px = 100, size = 12 }
+heading = "Choose a capture source"
+no_displays = "No displays found"
+no_matching_displays = "No matching displays"
+no_matching_windows = "No matching windows"
+no_windows = "No windows found"
+window = { text = "Window", max_px = 100, size = 12 }
+
+[controls]
+disk_full_resume = "Not enough disk space to resume. Free up space and try again, or press Stop to save."
+low_storage = "Low storage. Cap will stop soon to save your recording."
+
+[controls.confirm]
+delete = "Delete"
+delete_message = "Are you sure you want to delete the recording?"
+delete_title = "Confirm Delete"
+restart = "Restart"
+restart_message = "Are you sure you want to restart the recording? The current recording will be discarded."
+restart_title = "Confirm Restart"
+
+[controls.pause]
+pause = "Pause recording"
+pausing = "Pausing recording…"
+resume = "Resume recording"
+resuming = "Resuming recording…"
+unconfirmed = "Capture state is unconfirmed. Use Stop."
+
+[controls.stop]
+error = { text = "Error", max_px = 73, size = 14 }
+paused = { text = "Paused", max_px = 73, size = 14 }
+pausing = { text = "Pausing…", max_px = 73, size = 14 }
+resuming = { text = "Resuming…", max_px = 73, size = 14 }
+saving = { text = "Saving…", max_px = 73, size = 14 }
+starting = { text = "Starting", max_px = 73, size = 14 }
+
+[camera]
+waiting_title = "Waiting for camera access"
+
+[camera.effects]
+blur_message = "Your camera is unblurred."
+blur_title = "Background blur unavailable"
+both_message = "Your camera is unblurred and not mirrored."
+both_title = "Camera effects unavailable"
+mirror_message = "Your camera preview is not mirrored."
+mirror_title = "Mirror unavailable"
+
+[camera.issue]
+access_message = "Click to allow Cap to use your camera in System Settings."
+access_title = "Camera access needed"
+generic = "The selected camera could not be started. Choose another camera or reconnect this one."
+invalid_format = "This camera did not report a usable capture format."
+not_found = "This camera is no longer available. Check that it is connected and allowed by system permissions."
+start_failed = "The system could not start this camera. It may be unavailable or in use by another app."
+timeout = "No frames were received from this camera. It may be closed, disconnected, covered, or in use by another app."
+unavailable_title = "Camera unavailable"
+
+[onboarding.customize]
+footer = "Change any of these at any time in Settings"
+subtitle = "Customize everything from keyboard shortcuts to storage. Cap adapts to your workflow."
+title = "Make Cap yours"
+
+[onboarding.customize.domain]
+description = "Use your own domain for shareable links instead of cap.so"
+title = "Custom Domain"
+
+[onboarding.customize.preferences]
+description = "FPS, quality, countdown timer, cursor effects, and more"
+title = "Recording Preferences"
+
+[onboarding.customize.s3]
+description = "Connect your own S3-compatible bucket for full control over your recordings"
+title = "Custom S3 Storage"
+
+[onboarding.customize.shortcuts]
+description = "Global hotkeys for recording, screenshots, and switching modes"
+title = "Keyboard Shortcuts"
+
+[onboarding.demo]
+background = "BACKGROUND"
+copied = "Copied!"
+copied_to_clipboard = "Copied to clipboard"
+copy = "Copy"
+editor = "Cap Editor"
+export = "Export"
+export_complete = "Export complete!"
+exporting = "Exporting..."
+link_ready = "Link ready to share!"
+save = "Save"
+start_recording = "Start Recording"
+stopped = "Stopped"
+style = "STYLE"
+
+[onboarding.demo.steps]
+beautify = "Beautify"
+edit = "Edit"
+record = "Record"
+select_area = "Select area"
+share_link = "Share link"
+stop = "Stop"
+
+[onboarding.error]
+save_progress = "Could not save onboarding progress. Please try again."
+save_sound = "Could not save the sound preference."
+
+[onboarding.faq]
+pricing = "View pricing plans"
+pricing_link = "View pricing plans ↗"
+subtitle = "Everything you need to know to get started."
+title = "Frequently Asked Questions"
+
+[onboarding.faq.free]
+answer = "Cap is free for personal use. For teams and commercial use, check out our pricing plans."
+question = "Is Cap free to use?"
+
+[onboarding.faq.instant_vs_studio]
+answer = "Instant mode uploads as you record — stop recording and you'll have a shareable link immediately. Studio mode records locally in full quality, letting you edit with backgrounds, effects, and more before sharing."
+question = "What's the difference between Instant and Studio?"
+
+[onboarding.faq.sharing]
+answer = "In Instant mode, you get a shareable link automatically when you stop recording. In Studio mode, export your edited video and share via Cap's cloud or save locally."
+question = "How does sharing work?"
+
+[onboarding.faq.shortcuts]
+answer = "Head to Settings → Shortcuts at any time to customize all your keyboard shortcuts."
+question = "Can I change my shortcuts later?"
+
+[onboarding.faq.storage]
+answer = "All recordings are stored locally on your computer. In Instant mode, they're also uploaded to Cap's cloud for easy sharing. You can manage storage in Settings."
+question = "Where are my recordings stored?"
+
+[onboarding.modes.instant]
+description = "Your recording uploads as you capture. Stop recording and instantly get a shareable link — no waiting."
+feature_1 = "Instant shareable link"
+feature_2 = "Background uploading"
+feature_3 = "AI transcription & summary"
+feature_4 = "Browser-based playback"
+tagline = "Record & share in seconds"
+title = "Instant Mode"
+
+[onboarding.modes.screenshot]
+description = "Take screenshots with a single hotkey, add annotations and beautiful backgrounds, then share or copy instantly."
+feature_1 = "Instant hotkey capture"
+feature_2 = "Annotation & drawing tools"
+feature_3 = "Beautiful backgrounds"
+feature_4 = "Copy, save, or share"
+tagline = "Capture & beautify instantly"
+title = "Screenshot Mode"
+
+[onboarding.modes.studio]
+description = "Record in full quality locally, then use the built-in editor to add backgrounds, padding, cursor effects, and more."
+feature_1 = "Full quality local recording"
+feature_2 = "Built-in editor & effects"
+feature_3 = "Custom backgrounds & padding"
+feature_4 = "Export or share when ready"
+tagline = "Professional editing tools"
+title = "Studio Mode"
+
+[onboarding.nav]
+back = "← Back"
+continue_to_cap = "Continue to Cap"
+keyboard_hint = "Press Enter ↵ or use ← → arrow keys"
+next = "Continue"
+permissions_needed = "Allow the required permissions to continue"
+relaunch = "Relaunch Cap"
+skip = "Skip the tour"
+start = "Start Using Cap"
+
+[onboarding.overview]
+subtitle = "Whether you need speed, studio quality, or a quick screenshot — Cap has a mode for it."
+title = "One app, every workflow"
+
+[onboarding.toggle]
+subtitle = "Toggle between modes with a single click from the main Cap window."
+title = "Switch modes anytime"
+
+[onboarding.welcome]
+click_or_press = "Click here, or press"
+get_started = "Get Started"
+space_key = "Space"
+tagline = "The open source screen sharing app for everyone."
diff --git a/apps/desktop-gpui/locales/es.toml b/apps/desktop-gpui/locales/es.toml
index 12584747a..96b2740f9 100644
--- a/apps/desktop-gpui/locales/es.toml
+++ b/apps/desktop-gpui/locales/es.toml
@@ -1,10 +1,20 @@
[common]
add = "Añadir"
+back = "Atrás"
cancel = "Cancelar"
+choose_allow_prompt = "Elige Permitir en el aviso de macOS."
+close = "Cerrar"
+copied = "Copiado"
+dismiss = "Cerrar"
+go_back = "Volver"
+loading = "Cargando..."
+no = "No"
ok = "Aceptar"
reset = "Restablecer"
reset_to_default = "Restablecer valores predeterminados"
save = "Guardar"
+search = "Buscar"
+yes = "Sí"
[menu.app]
about = "Acerca de Cap"
@@ -223,3 +233,350 @@ title = "Privacidad"
[settings.general.privacy.telemetry]
description = "Cap usa telemetría anónima para mejorar la fiabilidad y corregir errores. Nunca recopilamos el contenido de las grabaciones, los títulos de las ventanas, las rutas de los archivos ni información personal."
label = "Compartir telemetría anónima"
+
+[main]
+delete_recording_confirm = "¿Seguro que quieres eliminar esta grabación?"
+delete_screenshot_confirm = "¿Seguro que quieres eliminar esta captura de pantalla?"
+
+[main.clean_capture]
+title = "Mantén limpia tu captura"
+
+[main.clip]
+add_to_project = "Añadir a tu proyecto actual"
+record_new = "Grabar un clip nuevo"
+
+[main.device]
+camera = "Cámara"
+fallback_camera = "Cámara"
+heading = "Elige tu cámara y tu micrófono"
+microphone = "Micrófono"
+no_camera = "Sin cámara"
+no_cameras = "No se encontraron cámaras"
+no_matching_cameras = "No hay cámaras que coincidan"
+no_matching_microphones = "No hay micrófonos que coincidan"
+no_microphone = "Sin micrófono"
+no_microphones = "No se encontraron micrófonos"
+system_audio_off = "Sin audio del sistema"
+system_audio_on = "Con audio del sistema"
+
+[main.device.access]
+allow_access = "Permitir acceso"
+camera_denied = "Cap no puede usar tu cámara. Actívala en Ajustes del Sistema."
+camera_needed = "Cap necesita tu permiso para usar tu cámara."
+microphone_denied = "Cap no puede usar tu micrófono. Actívalo en Ajustes del Sistema."
+microphone_needed = "Cap necesita tu permiso para usar tu micrófono."
+open_system_settings = "Abrir Ajustes del Sistema"
+turn_on_in_settings = "Activar en Ajustes"
+
+[main.device.format]
+apply_failed = "No se pudo aplicar el formato del dispositivo: {error}"
+applying = "Aplicando formato..."
+available = "Disponible: {format}"
+camera_changed = "La cámara cambió o se desconectó. Vuelve a abrir sus ajustes de formato."
+channels = { one = "{count} canal", many = "{count} de canales", other = "{count} canales" }
+current = "Actual: {format}"
+default = "Predeterminado"
+loading = "Cargando formatos..."
+mono = "Mono"
+preferred = "Formato preferido"
+save_failed = "No se pudo guardar el formato preferido del dispositivo. Inténtalo de nuevo."
+stereo = "Estéreo"
+
+[main.device.pill]
+allow = "Permitir"
+allow_in_settings = "Permitir en Ajustes"
+asking = "Solicitando…"
+not_connected = "Desconectado"
+off = "Desactivado"
+on = "Activado"
+
+[main.error]
+camera_only_needs_camera = "Para grabar solo con cámara hay que seleccionar una cámara."
+copy = "Copiar error"
+devices_not_ready = "Los dispositivos de grabación no están listos. Abre la grabadora e inténtalo de nuevo."
+title = "Algo salió mal"
+
+[main.header]
+changelog = "Novedades"
+help = "Ayuda y recorrido"
+recordings = "Grabaciones"
+screenshots = "Capturas de pantalla"
+settings = "Ajustes"
+teleprompter = "Teleprompter"
+
+[main.library]
+clips = { one = "{count} clip", many = "{count} de clips", other = "{count} clips" }
+copy_screenshot_failed = "No se pudo copiar la captura de pantalla"
+import_recordings = "Importar"
+import_screenshots = "Importar imagen"
+importing = "Importando"
+no_matching_recordings = "No hay grabaciones que coincidan"
+no_matching_screenshots = "No hay capturas que coincidan"
+no_recordings = "Aún no hay grabaciones"
+no_screenshots = "Aún no hay capturas de pantalla"
+recordings_description = "Tus grabaciones de pantalla aparecerán aquí. ¡Empieza a grabar para comenzar!"
+screenshots_description = "Tus capturas de pantalla aparecerán aquí. ¡Haz una captura para comenzar!"
+view_all_recordings = "Ver todas las grabaciones"
+view_all_screenshots = "Ver todas las capturas"
+
+[main.mic_warning]
+body = "Esta grabación no incluirá tu voz. Selecciona un micrófono o continúa sin él."
+dont_show_again = "No volver a mostrar"
+record_without = "Grabar sin micrófono"
+save_failed = "No se pudo guardar tu preferencia. Inténtalo de nuevo o deja la casilla sin marcar."
+title = "No se detectó ningún micrófono"
+
+[main.mode]
+info_tooltip = "Información de los modos de grabación"
+
+[main.mode.header]
+instant = "Modo Instant"
+screenshot = "Modo Captura de pantalla"
+studio = "Modo Studio"
+
+[main.mode.hover]
+instant = "Modo Instant"
+instant_description = "Sin renderizado: se sube mientras grabas para que compartas el enlace en cuanto termines."
+quality_settings = "Ajustes de calidad"
+screenshot = "Modo Captura de pantalla"
+screenshot_description = "Captura y anota imágenes fijas."
+studio = "Modo Studio"
+studio_description = "Guarda en tu ordenador y abre el editor al detener. Elige la calidad de grabación en los ajustes."
+
+[main.mode.info]
+instant = "Comparte al instante con un enlace. Tu grabación se sube mientras grabas, así que puedes compartirla en cuanto termines."
+screenshot = "Captura y anota capturas de pantalla al instante. Ideal para capturas rápidas, informes de errores y comunicación visual."
+studio = "Graba localmente con la máxima calidad para editar después. Perfecto para crear contenido pulido con efectos y transiciones."
+title = "Modos de grabación"
+
+[main.mode.name]
+instant = "Instant"
+screenshot = "Captura de pantalla"
+studio = "Studio"
+
+[main.plan]
+commercial = "Comercial"
+personal = "Personal"
+
+[main.recording]
+cancel = "Cancelar grabación"
+paused_notice = "Grabación en pausa. Cap se ocultará antes de reanudar."
+resume = "Reanudar"
+starting = "Iniciando..."
+starts_in = "La grabación empieza en {remaining}"
+stop = "Detener grabación"
+stopping = "Deteniendo..."
+
+[main.recovery]
+discard = "Descartar"
+duration_minutes = "~{minutes} min"
+duration_minutes_seconds = "~{minutes} min {seconds} s"
+duration_seconds = "~{seconds} s"
+recover = "Recuperar"
+segments = { one = "{count} segmento", many = "{count} de segmentos", other = "{count} segmentos" }
+segments_with_duration = { one = "{count} segmento · {duration}", many = "{count} de segmentos · {duration}", other = "{count} segmentos · {duration}" }
+title = "Grabación incompleta"
+
+[main.sign_in]
+message = "El modo Instant sube mientras grabas, así que tu enlace para compartir está listo en cuanto te detienes."
+not_now = "Ahora no"
+open_browser_again = "Volver a abrir el navegador"
+pending_message = "Termina de iniciar sesión en Cap en tu navegador. Cap volverá aquí y abrirá la grabadora cuando acabes."
+sign_in = "Iniciar sesión"
+timed_out = "Se agotó el tiempo para iniciar sesión. Inténtalo de nuevo."
+title = "Inicia sesión para usar el modo Instant"
+use_studio = "Usar Studio"
+waiting = "Esperando a tu navegador"
+
+[main.storage]
+blocked = "Solo hay {available} GB disponibles en tu unidad de grabación. Libera espacio para tener al menos 512 MB disponibles antes de grabar."
+can_start = "Solo hay {available} GB disponibles en tu unidad de grabación. Cap se detendrá automáticamente si queda poco espacio y conservará tu grabación."
+check_failed = "No se pudo comprobar el almacenamiento de grabación: {error}"
+record_anyway = "Grabar de todos modos"
+title = "Poco almacenamiento"
+
+[main.target]
+area = "Área"
+camera_only = "Solo cámara"
+choose_display = "Elegir una pantalla"
+choose_window = "Elegir una ventana"
+display = "Pantalla"
+heading = "Elige una fuente de captura"
+no_displays = "No se encontraron pantallas"
+no_matching_displays = "No hay pantallas que coincidan"
+no_matching_windows = "No hay ventanas que coincidan"
+no_windows = "No se encontraron ventanas"
+window = "Ventana"
+
+[controls]
+disk_full_resume = "No hay espacio suficiente para reanudar. Libera espacio e inténtalo de nuevo, o pulsa Detener para guardar."
+low_storage = "Poco almacenamiento. Cap se detendrá pronto para guardar tu grabación."
+
+[controls.confirm]
+delete = "Eliminar"
+delete_message = "¿Seguro que quieres eliminar la grabación?"
+delete_title = "Confirmar eliminación"
+restart = "Reiniciar"
+restart_message = "¿Seguro que quieres reiniciar la grabación? Se descartará la grabación actual."
+restart_title = "Confirmar reinicio"
+
+[controls.pause]
+pause = "Pausar grabación"
+pausing = "Pausando grabación…"
+resume = "Reanudar grabación"
+resuming = "Reanudando grabación…"
+unconfirmed = "No se ha confirmado el estado de la captura. Usa Detener."
+
+[controls.stop]
+error = "Error"
+paused = "En pausa"
+pausing = "Pausa…"
+resuming = "Continúa…"
+saving = "Guardar…"
+starting = "Iniciando"
+
+[camera]
+waiting_title = "Esperando acceso a la cámara"
+
+[camera.effects]
+blur_message = "Tu cámara no está desenfocada."
+blur_title = "Desenfoque de fondo no disponible"
+both_message = "Tu cámara no está desenfocada ni en espejo."
+both_title = "Efectos de cámara no disponibles"
+mirror_message = "La vista previa de tu cámara no está en espejo."
+mirror_title = "Espejo no disponible"
+
+[camera.issue]
+access_message = "Haz clic para permitir que Cap use tu cámara en Ajustes del Sistema."
+access_title = "Se necesita acceso a la cámara"
+generic = "No se pudo iniciar la cámara seleccionada. Elige otra cámara o vuelve a conectar esta."
+invalid_format = "Esta cámara no indicó ningún formato de captura utilizable."
+not_found = "Esta cámara ya no está disponible. Comprueba que esté conectada y permitida en los permisos del sistema."
+start_failed = "El sistema no pudo iniciar esta cámara. Puede que no esté disponible o que otra app la esté usando."
+timeout = "No se recibieron imágenes de esta cámara. Puede que esté cerrada, desconectada, tapada o en uso por otra app."
+unavailable_title = "Cámara no disponible"
+
+[onboarding.customize]
+footer = "Puedes cambiar todo esto en cualquier momento en Ajustes"
+subtitle = "Personaliza todo, desde los atajos de teclado hasta el almacenamiento. Cap se adapta a tu forma de trabajar."
+title = "Haz que Cap sea tuyo"
+
+[onboarding.customize.domain]
+description = "Usa tu propio dominio para los enlaces compartidos en lugar de cap.so"
+title = "Dominio personalizado"
+
+[onboarding.customize.preferences]
+description = "FPS, calidad, cuenta atrás, efectos del cursor y más"
+title = "Preferencias de grabación"
+
+[onboarding.customize.s3]
+description = "Conecta tu propio bucket compatible con S3 para tener control total sobre tus grabaciones"
+title = "Almacenamiento S3 propio"
+
+[onboarding.customize.shortcuts]
+description = "Atajos globales para grabar, hacer capturas y cambiar de modo"
+title = "Atajos de teclado"
+
+[onboarding.demo]
+background = "FONDO"
+copied = "¡Copiado!"
+copied_to_clipboard = "Copiado al portapapeles"
+copy = "Copiar"
+editor = "Editor de Cap"
+export = "Exportar"
+export_complete = "¡Exportación completada!"
+exporting = "Exportando..."
+link_ready = "¡Enlace listo para compartir!"
+save = "Guardar"
+start_recording = "Empezar a grabar"
+stopped = "Detenido"
+style = "ESTILO"
+
+[onboarding.demo.steps]
+beautify = "Embellecer"
+edit = "Editar"
+record = "Grabar"
+select_area = "Elegir área"
+share_link = "Compartir enlace"
+stop = "Detener"
+
+[onboarding.error]
+save_progress = "No se pudo guardar tu progreso. Inténtalo de nuevo."
+save_sound = "No se pudo guardar la preferencia de sonido."
+
+[onboarding.faq]
+pricing = "Ver planes y precios"
+pricing_link = "Ver planes y precios ↗"
+subtitle = "Todo lo que necesitas saber para empezar."
+title = "Preguntas frecuentes"
+
+[onboarding.faq.free]
+answer = "Cap es gratis para uso personal. Para equipos y uso comercial, consulta nuestros planes."
+question = "¿Cap es gratis?"
+
+[onboarding.faq.instant_vs_studio]
+answer = "El modo Instant sube mientras grabas: detén la grabación y tendrás un enlace para compartir al momento. El modo Studio graba localmente con calidad completa para que puedas editar con fondos, efectos y más antes de compartir."
+question = "¿Qué diferencia hay entre Instant y Studio?"
+
+[onboarding.faq.sharing]
+answer = "En el modo Instant obtienes un enlace para compartir automáticamente al detener la grabación. En el modo Studio, exporta tu vídeo editado y compártelo a través de la nube de Cap o guárdalo localmente."
+question = "¿Cómo funciona el uso compartido?"
+
+[onboarding.faq.shortcuts]
+answer = "Ve a Ajustes → Atajos en cualquier momento para personalizar todos tus atajos de teclado."
+question = "¿Puedo cambiar mis atajos más adelante?"
+
+[onboarding.faq.storage]
+answer = "Todas las grabaciones se guardan localmente en tu ordenador. En el modo Instant también se suben a la nube de Cap para compartirlas fácilmente. Puedes gestionar el almacenamiento en Ajustes."
+question = "¿Dónde se guardan mis grabaciones?"
+
+[onboarding.modes.instant]
+description = "Tu grabación se sube mientras capturas. Detén la grabación y obtén al instante un enlace para compartir, sin esperas."
+feature_1 = "Enlace para compartir al instante"
+feature_2 = "Subida en segundo plano"
+feature_3 = "Transcripción y resumen con IA"
+feature_4 = "Reproducción en el navegador"
+tagline = "Graba y comparte en segundos"
+title = "Modo Instant"
+
+[onboarding.modes.screenshot]
+description = "Haz capturas de pantalla con un solo atajo, añade anotaciones y fondos bonitos, y comparte o copia al instante."
+feature_1 = "Captura con un atajo"
+feature_2 = "Herramientas de anotación y dibujo"
+feature_3 = "Fondos bonitos"
+feature_4 = "Copia, guarda o comparte"
+tagline = "Captura y embellece al instante"
+title = "Modo Captura de pantalla"
+
+[onboarding.modes.studio]
+description = "Graba localmente con calidad completa y usa el editor integrado para añadir fondos, márgenes, efectos del cursor y más."
+feature_1 = "Grabación local con calidad completa"
+feature_2 = "Editor y efectos integrados"
+feature_3 = "Fondos y márgenes personalizados"
+feature_4 = "Exporta o comparte cuando quieras"
+tagline = "Herramientas de edición profesionales"
+title = "Modo Studio"
+
+[onboarding.nav]
+back = "← Atrás"
+continue_to_cap = "Continuar a Cap"
+keyboard_hint = "Pulsa Intro ↵ o usa las flechas ← →"
+next = "Continuar"
+permissions_needed = "Concede los permisos necesarios para continuar"
+relaunch = "Reiniciar Cap"
+skip = "Omitir el recorrido"
+start = "Empezar a usar Cap"
+
+[onboarding.overview]
+subtitle = "Tanto si buscas rapidez, calidad de estudio o una captura rápida, Cap tiene un modo para ello."
+title = "Una app para cada forma de trabajar"
+
+[onboarding.toggle]
+subtitle = "Cambia de modo con un solo clic desde la ventana principal de Cap."
+title = "Cambia de modo cuando quieras"
+
+[onboarding.welcome]
+click_or_press = "Haz clic aquí o pulsa"
+get_started = "Empezar"
+space_key = "Espacio"
+tagline = "La app de código abierto para compartir pantalla, para todo el mundo."
diff --git a/apps/desktop-gpui/locales/fr.toml b/apps/desktop-gpui/locales/fr.toml
index 8d41d4e8a..aba9bb556 100644
--- a/apps/desktop-gpui/locales/fr.toml
+++ b/apps/desktop-gpui/locales/fr.toml
@@ -1,10 +1,20 @@
[common]
add = "Ajouter"
+back = "Retour"
cancel = "Annuler"
+choose_allow_prompt = "Choisissez Autoriser dans la fenêtre de macOS."
+close = "Fermer"
+copied = "Copié"
+dismiss = "Fermer"
+go_back = "Retour"
+loading = "Chargement..."
+no = "Non"
ok = "OK"
reset = "Réinitialiser"
reset_to_default = "Rétablir par défaut"
save = "Enregistrer"
+search = "Rechercher"
+yes = "Oui"
[menu.app]
about = "À propos de Cap"
@@ -223,3 +233,350 @@ title = "Confidentialité"
[settings.general.privacy.telemetry]
description = "Cap utilise une télémétrie anonyme pour améliorer sa fiabilité et corriger des bugs. Nous ne collectons jamais le contenu des enregistrements, les titres de fenêtres, les chemins de fichiers ni aucune information personnelle."
label = "Partager la télémétrie anonyme"
+
+[main]
+delete_recording_confirm = "Voulez-vous vraiment supprimer cet enregistrement ?"
+delete_screenshot_confirm = "Voulez-vous vraiment supprimer cette capture d'écran ?"
+
+[main.clean_capture]
+title = "Gardez votre capture propre"
+
+[main.clip]
+add_to_project = "Ajouter à votre projet actuel"
+record_new = "Enregistrer un nouveau clip"
+
+[main.device]
+camera = "Caméra"
+fallback_camera = "Caméra"
+heading = "Choisissez votre caméra et votre micro"
+microphone = "Micro"
+no_camera = "Aucune caméra"
+no_cameras = "Aucune caméra trouvée"
+no_matching_cameras = "Aucune caméra correspondante"
+no_matching_microphones = "Aucun micro correspondant"
+no_microphone = "Aucun micro"
+no_microphones = "Aucun micro trouvé"
+system_audio_off = "Sans audio système"
+system_audio_on = "Avec l'audio système"
+
+[main.device.access]
+allow_access = "Autoriser l'accès"
+camera_denied = "Cap ne peut pas utiliser votre caméra. Activez-la dans Réglages Système."
+camera_needed = "Cap a besoin de votre accord pour utiliser votre caméra."
+microphone_denied = "Cap ne peut pas utiliser votre micro. Activez-le dans Réglages Système."
+microphone_needed = "Cap a besoin de votre accord pour utiliser votre micro."
+open_system_settings = "Ouvrir Réglages Système"
+turn_on_in_settings = "Activer dans Réglages"
+
+[main.device.format]
+apply_failed = "Impossible d'appliquer le format de l'appareil : {error}"
+applying = "Application du format..."
+available = "Disponible : {format}"
+camera_changed = "La caméra a changé ou a été déconnectée. Rouvrez ses réglages de format."
+channels = { one = "{count} canal", many = "{count} de canaux", other = "{count} canaux" }
+current = "Actuel : {format}"
+default = "Par défaut"
+loading = "Chargement des formats..."
+mono = "Mono"
+preferred = "Format préféré"
+save_failed = "Impossible d'enregistrer le format préféré de l'appareil. Réessayez."
+stereo = "Stéréo"
+
+[main.device.pill]
+allow = "Autoriser"
+allow_in_settings = "Activer dans Réglages"
+asking = "Demande…"
+not_connected = "Déconnecté"
+off = "Désactivé"
+on = "Activé"
+
+[main.error]
+camera_only_needs_camera = "L'enregistrement caméra seule nécessite une caméra sélectionnée."
+copy = "Copier l'erreur"
+devices_not_ready = "Les appareils d'enregistrement ne sont pas prêts. Ouvrez l'enregistreur et réessayez."
+title = "Un problème est survenu"
+
+[main.header]
+changelog = "Nouveautés"
+help = "Aide et visite guidée"
+recordings = "Enregistrements"
+screenshots = "Captures d'écran"
+settings = "Paramètres"
+teleprompter = "Prompteur"
+
+[main.library]
+clips = { one = "{count} clip", many = "{count} de clips", other = "{count} clips" }
+copy_screenshot_failed = "Impossible de copier la capture d'écran"
+import_recordings = "Importer"
+import_screenshots = "Importer une image"
+importing = "Importation"
+no_matching_recordings = "Aucun enregistrement correspondant"
+no_matching_screenshots = "Aucune capture d'écran correspondante"
+no_recordings = "Aucun enregistrement pour l'instant"
+no_screenshots = "Aucune capture d'écran pour l'instant"
+recordings_description = "Vos enregistrements d'écran apparaîtront ici. Lancez un enregistrement pour commencer !"
+screenshots_description = "Vos captures d'écran apparaîtront ici. Prenez une capture d'écran pour commencer !"
+view_all_recordings = "Voir tous les enregistrements"
+view_all_screenshots = "Voir toutes les captures d'écran"
+
+[main.mic_warning]
+body = "Cet enregistrement n'inclura pas votre voix. Sélectionnez un micro ou continuez sans."
+dont_show_again = "Ne plus afficher"
+record_without = "Enregistrer sans micro"
+save_failed = "Impossible d'enregistrer votre préférence. Réessayez ou laissez la case décochée."
+title = "Aucun micro détecté"
+
+[main.mode]
+info_tooltip = "Infos sur les modes d'enregistrement"
+
+[main.mode.header]
+instant = "Mode Instant"
+screenshot = "Mode Capture d'écran"
+studio = "Mode Studio"
+
+[main.mode.hover]
+instant = "Mode Instant"
+instant_description = "Aucun rendu nécessaire : la mise en ligne se fait en direct pour partager le lien dès l'arrêt."
+quality_settings = "Réglages de qualité"
+screenshot = "Mode Capture d'écran"
+screenshot_description = "Capturez et annotez des images fixes."
+studio = "Mode Studio"
+studio_description = "Enregistre sur votre ordinateur et ouvre l'éditeur à l'arrêt. Choisissez la qualité d'enregistrement dans les paramètres."
+
+[main.mode.info]
+instant = "Partagez instantanément avec un lien. Votre enregistrement est mis en ligne pendant que vous enregistrez, pour le partager dès que vous avez terminé."
+screenshot = "Capturez et annotez des captures d'écran en un instant. Idéal pour les captures rapides, les rapports de bugs et la communication visuelle."
+studio = "Enregistrez localement dans la meilleure qualité pour monter plus tard. Parfait pour créer des contenus soignés avec effets et transitions."
+title = "Modes d'enregistrement"
+
+[main.mode.name]
+instant = "Instant"
+screenshot = "Capture d'écran"
+studio = "Studio"
+
+[main.plan]
+commercial = "Commercial"
+personal = "Personnel"
+
+[main.recording]
+cancel = "Annuler l'enregistrement"
+paused_notice = "Enregistrement en pause. Cap se masquera avant de reprendre."
+resume = "Reprendre"
+starting = "Démarrage..."
+starts_in = "L'enregistrement commence dans {remaining}"
+stop = "Arrêter l'enregistrement"
+stopping = "Arrêt..."
+
+[main.recovery]
+discard = "Supprimer"
+duration_minutes = "~{minutes} min"
+duration_minutes_seconds = "~{minutes} min {seconds} s"
+duration_seconds = "~{seconds} s"
+recover = "Récupérer"
+segments = { one = "{count} segment", many = "{count} de segments", other = "{count} segments" }
+segments_with_duration = { one = "{count} segment · {duration}", many = "{count} de segments · {duration}", other = "{count} segments · {duration}" }
+title = "Enregistrement incomplet"
+
+[main.sign_in]
+message = "Le mode Instant met en ligne pendant l'enregistrement : votre lien de partage est prêt dès l'arrêt."
+not_now = "Pas maintenant"
+open_browser_again = "Rouvrir le navigateur"
+pending_message = "Terminez la connexion à Cap dans votre navigateur. Cap reviendra ici et ouvrira l'enregistreur une fois que ce sera fait."
+sign_in = "Se connecter"
+timed_out = "Le délai de connexion a expiré. Réessayez."
+title = "Connectez-vous pour utiliser le mode Instant"
+use_studio = "Utiliser Studio"
+waiting = "En attente de votre navigateur"
+
+[main.storage]
+blocked = "Seulement {available} Go disponibles sur le disque d'enregistrement. Libérez de l'espace pour avoir au moins 512 Mo disponibles avant d'enregistrer."
+can_start = "Seulement {available} Go disponibles sur le disque d'enregistrement. Cap s'arrêtera automatiquement si l'espace devient trop faible, en préservant votre enregistrement."
+check_failed = "Impossible de vérifier l'espace d'enregistrement : {error}"
+record_anyway = "Enregistrer quand même"
+title = "Espace de stockage faible"
+
+[main.target]
+area = "Zone"
+camera_only = "Caméra seule"
+choose_display = "Choisir un écran"
+choose_window = "Choisir une fenêtre"
+display = "Écran"
+heading = "Choisissez une source de capture"
+no_displays = "Aucun écran trouvé"
+no_matching_displays = "Aucun écran correspondant"
+no_matching_windows = "Aucune fenêtre correspondante"
+no_windows = "Aucune fenêtre trouvée"
+window = "Fenêtre"
+
+[controls]
+disk_full_resume = "Espace disque insuffisant pour reprendre. Libérez de l'espace et réessayez, ou appuyez sur Arrêter pour enregistrer."
+low_storage = "Espace de stockage faible. Cap va bientôt s'arrêter pour préserver votre enregistrement."
+
+[controls.confirm]
+delete = "Supprimer"
+delete_message = "Voulez-vous vraiment supprimer l'enregistrement ?"
+delete_title = "Confirmer la suppression"
+restart = "Recommencer"
+restart_message = "Voulez-vous vraiment recommencer l'enregistrement ? L'enregistrement actuel sera supprimé."
+restart_title = "Confirmer le redémarrage"
+
+[controls.pause]
+pause = "Mettre en pause"
+pausing = "Mise en pause…"
+resume = "Reprendre l'enregistrement"
+resuming = "Reprise de l'enregistrement…"
+unconfirmed = "L'état de la capture n'est pas confirmé. Utilisez Arrêter."
+
+[controls.stop]
+error = "Erreur"
+paused = "En pause"
+pausing = "Pause…"
+resuming = "Reprise…"
+saving = "Arrêt…"
+starting = "Début…"
+
+[camera]
+waiting_title = "En attente de l'accès à la caméra"
+
+[camera.effects]
+blur_message = "Votre caméra n'est pas floutée."
+blur_title = "Flou d'arrière-plan indisponible"
+both_message = "Votre caméra n'est ni floutée ni en miroir."
+both_title = "Effets de caméra indisponibles"
+mirror_message = "L'aperçu de votre caméra n'est pas en miroir."
+mirror_title = "Miroir indisponible"
+
+[camera.issue]
+access_message = "Cliquez pour autoriser Cap à utiliser votre caméra dans Réglages Système."
+access_title = "Accès à la caméra requis"
+generic = "La caméra sélectionnée n'a pas pu démarrer. Choisissez une autre caméra ou reconnectez celle-ci."
+invalid_format = "Cette caméra n'a signalé aucun format de capture utilisable."
+not_found = "Cette caméra n'est plus disponible. Vérifiez qu'elle est connectée et autorisée dans les autorisations du système."
+start_failed = "Le système n'a pas pu démarrer cette caméra. Elle est peut-être indisponible ou utilisée par une autre app."
+timeout = "Aucune image n'a été reçue de cette caméra. Elle est peut-être fermée, déconnectée, masquée ou utilisée par une autre app."
+unavailable_title = "Caméra indisponible"
+
+[onboarding.customize]
+footer = "Vous pouvez modifier tout cela à tout moment dans les paramètres"
+subtitle = "Personnalisez tout, des raccourcis clavier au stockage. Cap s'adapte à votre façon de travailler."
+title = "Faites de Cap le vôtre"
+
+[onboarding.customize.domain]
+description = "Utilisez votre propre domaine pour les liens de partage au lieu de cap.so"
+title = "Domaine personnalisé"
+
+[onboarding.customize.preferences]
+description = "FPS, qualité, compte à rebours, effets de curseur, etc."
+title = "Préférences d'enregistrement"
+
+[onboarding.customize.s3]
+description = "Connectez votre propre bucket compatible S3 pour garder le contrôle total de vos enregistrements"
+title = "Stockage S3 personnalisé"
+
+[onboarding.customize.shortcuts]
+description = "Raccourcis globaux pour enregistrer, faire des captures et changer de mode"
+title = "Raccourcis clavier"
+
+[onboarding.demo]
+background = "ARRIÈRE-PLAN"
+copied = "Copié !"
+copied_to_clipboard = "Copié dans le presse-papiers"
+copy = "Copier"
+editor = "Éditeur Cap"
+export = "Exporter"
+export_complete = "Exportation terminée !"
+exporting = "Exportation..."
+link_ready = "Lien prêt à partager !"
+save = "Enregistrer"
+start_recording = "Lancer l'enregistrement"
+stopped = "Arrêté"
+style = "STYLE"
+
+[onboarding.demo.steps]
+beautify = "Embellir"
+edit = "Monter"
+record = "Enregistrer"
+select_area = "Choisir une zone"
+share_link = "Partager le lien"
+stop = "Arrêter"
+
+[onboarding.error]
+save_progress = "Impossible d'enregistrer votre progression. Veuillez réessayer."
+save_sound = "Impossible d'enregistrer la préférence de son."
+
+[onboarding.faq]
+pricing = "Voir les forfaits"
+pricing_link = "Voir les forfaits ↗"
+subtitle = "Tout ce qu'il faut savoir pour bien démarrer."
+title = "Questions fréquentes"
+
+[onboarding.faq.free]
+answer = "Cap est gratuit pour un usage personnel. Pour les équipes et un usage commercial, consultez nos forfaits."
+question = "Cap est-il gratuit ?"
+
+[onboarding.faq.instant_vs_studio]
+answer = "Le mode Instant met en ligne pendant l'enregistrement : arrêtez et votre lien de partage est prêt immédiatement. Le mode Studio enregistre localement en pleine qualité pour que vous puissiez ajouter arrière-plans, effets et plus encore avant de partager."
+question = "Quelle est la différence entre Instant et Studio ?"
+
+[onboarding.faq.sharing]
+answer = "En mode Instant, vous obtenez automatiquement un lien de partage à l'arrêt de l'enregistrement. En mode Studio, exportez votre vidéo montée puis partagez-la via le cloud de Cap ou enregistrez-la localement."
+question = "Comment fonctionne le partage ?"
+
+[onboarding.faq.shortcuts]
+answer = "Rendez-vous dans Paramètres → Raccourcis à tout moment pour personnaliser tous vos raccourcis clavier."
+question = "Puis-je modifier mes raccourcis plus tard ?"
+
+[onboarding.faq.storage]
+answer = "Tous les enregistrements sont stockés localement sur votre ordinateur. En mode Instant, ils sont aussi mis en ligne sur le cloud de Cap pour faciliter le partage. Vous pouvez gérer le stockage dans les paramètres."
+question = "Où sont stockés mes enregistrements ?"
+
+[onboarding.modes.instant]
+description = "Votre enregistrement est mis en ligne pendant la capture. Arrêtez et obtenez aussitôt un lien de partage, sans attendre."
+feature_1 = "Lien de partage instantané"
+feature_2 = "Mise en ligne en arrière-plan"
+feature_3 = "Transcription et résumé par IA"
+feature_4 = "Lecture dans le navigateur"
+tagline = "Enregistrez et partagez en quelques secondes"
+title = "Mode Instant"
+
+[onboarding.modes.screenshot]
+description = "Prenez des captures d'écran avec un seul raccourci, ajoutez des annotations et de beaux arrière-plans, puis partagez ou copiez instantanément."
+feature_1 = "Capture par raccourci"
+feature_2 = "Outils d'annotation et de dessin"
+feature_3 = "De beaux arrière-plans"
+feature_4 = "Copier, enregistrer ou partager"
+tagline = "Capturez et embellissez en un instant"
+title = "Mode Capture d'écran"
+
+[onboarding.modes.studio]
+description = "Enregistrez localement en pleine qualité, puis utilisez l'éditeur intégré pour ajouter arrière-plans, marges, effets de curseur et plus encore."
+feature_1 = "Enregistrement local en pleine qualité"
+feature_2 = "Éditeur et effets intégrés"
+feature_3 = "Arrière-plans et marges personnalisés"
+feature_4 = "Exportez ou partagez quand c'est prêt"
+tagline = "Outils de montage professionnels"
+title = "Mode Studio"
+
+[onboarding.nav]
+back = "← Retour"
+continue_to_cap = "Continuer vers Cap"
+keyboard_hint = "Appuyez sur Entrée ↵ ou utilisez les flèches ← →"
+next = "Continuer"
+permissions_needed = "Accordez les autorisations requises pour continuer"
+relaunch = "Relancer Cap"
+skip = "Passer la visite"
+start = "Commencer à utiliser Cap"
+
+[onboarding.overview]
+subtitle = "Que vous ayez besoin de rapidité, de qualité studio ou d'une capture rapide, Cap a un mode pour cela."
+title = "Une app, tous les usages"
+
+[onboarding.toggle]
+subtitle = "Passez d'un mode à l'autre en un clic depuis la fenêtre principale de Cap."
+title = "Changez de mode à tout moment"
+
+[onboarding.welcome]
+click_or_press = "Cliquez ici ou appuyez sur"
+get_started = "Commencer"
+space_key = "Espace"
+tagline = "L'app open source de partage d'écran pour tout le monde."
diff --git a/apps/desktop-gpui/locales/hi.toml b/apps/desktop-gpui/locales/hi.toml
index 988fdb2c0..d0623352b 100644
--- a/apps/desktop-gpui/locales/hi.toml
+++ b/apps/desktop-gpui/locales/hi.toml
@@ -1,10 +1,20 @@
[common]
add = "जोड़ें"
+back = "वापस"
cancel = "रद्द करें"
+choose_allow_prompt = "macOS के संकेत में “अनुमति दें” चुनें।"
+close = "बंद करें"
+copied = "कॉपी हो गया"
+dismiss = "बंद करें"
+go_back = "वापस जाएँ"
+loading = "लोड हो रहा है..."
+no = "नहीं"
ok = "ठीक है"
reset = "रीसेट करें"
reset_to_default = "डिफ़ॉल्ट पर रीसेट करें"
save = "सहेजें"
+search = "खोजें"
+yes = "हाँ"
[menu.app]
about = "Cap के बारे में"
@@ -223,3 +233,350 @@ title = "गोपनीयता"
[settings.general.privacy.telemetry]
description = "Cap विश्वसनीयता बेहतर करने और गड़बड़ियाँ ठीक करने के लिए अनाम टेलीमेट्री का उपयोग करता है। हम रिकॉर्डिंग की सामग्री, विंडो के शीर्षक, फ़ाइल पाथ या निजी जानकारी कभी इकट्ठा नहीं करते।"
label = "अनाम टेलीमेट्री साझा करें"
+
+[main]
+delete_recording_confirm = "क्या आप वाकई यह रिकॉर्डिंग हटाना चाहते हैं?"
+delete_screenshot_confirm = "क्या आप वाकई यह स्क्रीनशॉट हटाना चाहते हैं?"
+
+[main.clean_capture]
+title = "अपना कैप्चर साफ़ रखें"
+
+[main.clip]
+add_to_project = "अपने मौजूदा प्रोजेक्ट में जोड़ें"
+record_new = "नई क्लिप रिकॉर्ड करें"
+
+[main.device]
+camera = "कैमरा"
+fallback_camera = "कैमरा"
+heading = "अपना कैमरा और माइक्रोफ़ोन चुनें"
+microphone = "माइक्रोफ़ोन"
+no_camera = "कोई कैमरा नहीं"
+no_cameras = "कोई कैमरा नहीं मिला"
+no_matching_cameras = "कोई मिलता-जुलता कैमरा नहीं"
+no_matching_microphones = "कोई मिलता-जुलता माइक्रोफ़ोन नहीं"
+no_microphone = "कोई माइक्रोफ़ोन नहीं"
+no_microphones = "कोई माइक्रोफ़ोन नहीं मिला"
+system_audio_off = "सिस्टम ऑडियो नहीं"
+system_audio_on = "सिस्टम ऑडियो रिकॉर्ड करें"
+
+[main.device.access]
+allow_access = "एक्सेस दें"
+camera_denied = "Cap आपका कैमरा इस्तेमाल नहीं कर सकता। इसे सिस्टम सेटिंग्स में चालू करें।"
+camera_needed = "आपका कैमरा इस्तेमाल करने के लिए Cap को आपकी अनुमति चाहिए।"
+microphone_denied = "Cap आपका माइक्रोफ़ोन इस्तेमाल नहीं कर सकता। इसे सिस्टम सेटिंग्स में चालू करें।"
+microphone_needed = "आपका माइक्रोफ़ोन इस्तेमाल करने के लिए Cap को आपकी अनुमति चाहिए।"
+open_system_settings = "सिस्टम सेटिंग्स खोलें"
+turn_on_in_settings = "सेटिंग्स में चालू करें"
+
+[main.device.format]
+apply_failed = "डिवाइस फ़ॉर्मैट लागू नहीं हो सका: {error}"
+applying = "फ़ॉर्मैट लागू हो रहा है..."
+available = "उपलब्ध: {format}"
+camera_changed = "कैमरा बदल गया या डिस्कनेक्ट हो गया। इसकी फ़ॉर्मैट सेटिंग्स फिर से खोलें।"
+channels = { one = "{count} चैनल", other = "{count} चैनल" }
+current = "मौजूदा: {format}"
+default = "डिफ़ॉल्ट"
+loading = "फ़ॉर्मैट लोड हो रहे हैं..."
+mono = "मोनो"
+preferred = "पसंदीदा फ़ॉर्मैट"
+save_failed = "पसंदीदा डिवाइस फ़ॉर्मैट सहेजा नहीं जा सका। फिर से कोशिश करें।"
+stereo = "स्टीरियो"
+
+[main.device.pill]
+allow = "अनुमति दें"
+allow_in_settings = "सेटिंग्स में अनुमति दें"
+asking = "पूछ रहा है…"
+not_connected = "कनेक्ट नहीं है"
+off = "बंद"
+on = "चालू"
+
+[main.error]
+camera_only_needs_camera = "सिर्फ़ कैमरा रिकॉर्डिंग के लिए कोई कैमरा चुना होना ज़रूरी है।"
+copy = "त्रुटि कॉपी करें"
+devices_not_ready = "रिकॉर्डिंग डिवाइस तैयार नहीं हैं। रिकॉर्डर खोलें और फिर से कोशिश करें।"
+title = "कुछ गड़बड़ हो गई"
+
+[main.header]
+changelog = "बदलावों की सूची"
+help = "सहायता और टूर"
+recordings = "रिकॉर्डिंग"
+screenshots = "स्क्रीनशॉट"
+settings = "सेटिंग्स"
+teleprompter = "टेलीप्रॉम्प्टर"
+
+[main.library]
+clips = { one = "{count} क्लिप", other = "{count} क्लिप" }
+copy_screenshot_failed = "स्क्रीनशॉट कॉपी नहीं हो सका"
+import_recordings = "इम्पोर्ट करें"
+import_screenshots = "इमेज इम्पोर्ट करें"
+importing = "इम्पोर्ट हो रहा है"
+no_matching_recordings = "कोई मिलती-जुलती रिकॉर्डिंग नहीं"
+no_matching_screenshots = "कोई मिलता-जुलता स्क्रीनशॉट नहीं"
+no_recordings = "अभी कोई रिकॉर्डिंग नहीं"
+no_screenshots = "अभी कोई स्क्रीनशॉट नहीं"
+recordings_description = "आपकी स्क्रीन रिकॉर्डिंग यहाँ दिखेंगी। शुरू करने के लिए रिकॉर्डिंग शुरू करें!"
+screenshots_description = "आपके स्क्रीनशॉट यहाँ दिखेंगे। शुरू करने के लिए एक स्क्रीनशॉट लें!"
+view_all_recordings = "सभी रिकॉर्डिंग देखें"
+view_all_screenshots = "सभी स्क्रीनशॉट देखें"
+
+[main.mic_warning]
+body = "इस रिकॉर्डिंग में आपकी आवाज़ शामिल नहीं होगी। कोई माइक्रोफ़ोन चुनें, या उसके बिना जारी रखें।"
+dont_show_again = "दोबारा न दिखाएँ"
+record_without = "बिना माइक्रोफ़ोन के रिकॉर्ड करें"
+save_failed = "आपकी पसंद सहेजी नहीं जा सकी। फिर से कोशिश करें या बॉक्स को अनचेक रहने दें।"
+title = "कोई माइक्रोफ़ोन नहीं मिला"
+
+[main.mode]
+info_tooltip = "रिकॉर्डिंग मोड की जानकारी"
+
+[main.mode.header]
+instant = "Instant मोड"
+screenshot = "स्क्रीनशॉट मोड"
+studio = "Studio मोड"
+
+[main.mode.hover]
+instant = "Instant मोड"
+instant_description = "रेंडरिंग की ज़रूरत नहीं: रिकॉर्ड करते-करते अपलोड होता है, ताकि रोकते ही आप लिंक शेयर कर सकें।"
+quality_settings = "क्वालिटी सेटिंग्स"
+screenshot = "स्क्रीनशॉट मोड"
+screenshot_description = "स्टिल इमेज कैप्चर करें और उन पर नोट्स जोड़ें।"
+studio = "Studio मोड"
+studio_description = "आपके कंप्यूटर पर सहेजता है और रोकने पर एडिटर खोलता है। रिकॉर्डिंग क्वालिटी सेटिंग्स में चुनें।"
+
+[main.mode.info]
+instant = "लिंक के साथ तुरंत शेयर करें। आपकी रिकॉर्डिंग रिकॉर्ड करते-करते अपलोड होती है, ताकि पूरा होते ही आप उसे शेयर कर सकें।"
+screenshot = "तुरंत स्क्रीनशॉट लें और उन पर नोट्स जोड़ें। झटपट कैप्चर, बग रिपोर्ट और विज़ुअल बातचीत के लिए बढ़िया।"
+studio = "बाद में एडिट करने के लिए सबसे अच्छी क्वालिटी में लोकल रिकॉर्ड करें। इफ़ेक्ट और ट्रांज़िशन के साथ बढ़िया कंटेंट बनाने के लिए एकदम सही।"
+title = "रिकॉर्डिंग मोड"
+
+[main.mode.name]
+instant = "Instant"
+screenshot = "स्क्रीनशॉट"
+studio = "Studio"
+
+[main.plan]
+commercial = "कमर्शियल"
+personal = "पर्सनल"
+
+[main.recording]
+cancel = "रिकॉर्डिंग रद्द करें"
+paused_notice = "रिकॉर्डिंग रुकी हुई है। फिर से शुरू करने से पहले Cap छिप जाएगा।"
+resume = "फिर से शुरू करें"
+starting = "शुरू हो रहा है..."
+starts_in = "रिकॉर्डिंग {remaining} सेकंड में शुरू होगी"
+stop = "रिकॉर्डिंग रोकें"
+stopping = "रोका जा रहा है..."
+
+[main.recovery]
+discard = "हटाएँ"
+duration_minutes = "~{minutes} मिनट"
+duration_minutes_seconds = "~{minutes} मिनट {seconds} सेकंड"
+duration_seconds = "~{seconds} सेकंड"
+recover = "रिकवर करें"
+segments = { one = "{count} सेगमेंट", other = "{count} सेगमेंट" }
+segments_with_duration = { one = "{count} सेगमेंट · {duration}", other = "{count} सेगमेंट · {duration}" }
+title = "अधूरी रिकॉर्डिंग"
+
+[main.sign_in]
+message = "Instant मोड रिकॉर्ड करते-करते अपलोड करता है, ताकि रोकते ही आपका शेयर करने लायक लिंक तैयार हो।"
+not_now = "अभी नहीं"
+open_browser_again = "ब्राउज़र फिर से खोलें"
+pending_message = "अपने ब्राउज़र में Cap में साइन इन पूरा करें। पूरा होने पर Cap यहाँ लौटकर रिकॉर्डर खोल देगा।"
+sign_in = "साइन इन करें"
+timed_out = "साइन इन का समय खत्म हो गया। फिर से कोशिश करें।"
+title = "Instant मोड इस्तेमाल करने के लिए साइन इन करें"
+use_studio = "Studio इस्तेमाल करें"
+waiting = "आपके ब्राउज़र का इंतज़ार है"
+
+[main.storage]
+blocked = "आपकी रिकॉर्डिंग ड्राइव पर सिर्फ़ {available} GB खाली है। रिकॉर्ड करने से पहले जगह खाली करें, ताकि कम से कम 512 MB उपलब्ध हो।"
+can_start = "आपकी रिकॉर्डिंग ड्राइव पर सिर्फ़ {available} GB खाली है। स्टोरेज बहुत कम होने पर Cap आपकी रिकॉर्डिंग सुरक्षित रखते हुए अपने-आप रुक जाएगा।"
+check_failed = "रिकॉर्डिंग स्टोरेज की जाँच नहीं हो सकी: {error}"
+record_anyway = "फिर भी रिकॉर्ड करें"
+title = "स्टोरेज कम है"
+
+[main.target]
+area = "क्षेत्र"
+camera_only = "सिर्फ़ कैमरा"
+choose_display = "डिस्प्ले चुनें"
+choose_window = "विंडो चुनें"
+display = "डिस्प्ले"
+heading = "कैप्चर का स्रोत चुनें"
+no_displays = "कोई डिस्प्ले नहीं मिला"
+no_matching_displays = "कोई मिलता-जुलता डिस्प्ले नहीं"
+no_matching_windows = "कोई मिलती-जुलती विंडो नहीं"
+no_windows = "कोई विंडो नहीं मिली"
+window = "विंडो"
+
+[controls]
+disk_full_resume = "फिर से शुरू करने के लिए डिस्क में जगह कम है। जगह खाली करके फिर कोशिश करें, या सहेजने के लिए रोकें दबाएँ।"
+low_storage = "स्टोरेज कम है। आपकी रिकॉर्डिंग सहेजने के लिए Cap जल्द ही रुक जाएगा।"
+
+[controls.confirm]
+delete = "हटाएँ"
+delete_message = "क्या आप वाकई रिकॉर्डिंग हटाना चाहते हैं?"
+delete_title = "हटाने की पुष्टि करें"
+restart = "फिर से शुरू करें"
+restart_message = "क्या आप वाकई रिकॉर्डिंग फिर से शुरू करना चाहते हैं? मौजूदा रिकॉर्डिंग हटा दी जाएगी।"
+restart_title = "फिर से शुरू करने की पुष्टि करें"
+
+[controls.pause]
+pause = "रिकॉर्डिंग पॉज़ करें"
+pausing = "रिकॉर्डिंग पॉज़ हो रही है…"
+resume = "रिकॉर्डिंग फिर से शुरू करें"
+resuming = "रिकॉर्डिंग फिर से शुरू हो रही है…"
+unconfirmed = "कैप्चर की स्थिति पक्की नहीं है। रोकें इस्तेमाल करें।"
+
+[controls.stop]
+error = "त्रुटि"
+paused = "पॉज़"
+pausing = "पॉज़…"
+resuming = "फिर शुरू…"
+saving = "सहेज रहा…"
+starting = "शुरू हो रहा"
+
+[camera]
+waiting_title = "कैमरा एक्सेस का इंतज़ार है"
+
+[camera.effects]
+blur_message = "आपका कैमरा धुंधला नहीं किया गया है।"
+blur_title = "बैकग्राउंड ब्लर उपलब्ध नहीं"
+both_message = "आपका कैमरा न धुंधला है, न मिरर किया गया है।"
+both_title = "कैमरा इफ़ेक्ट उपलब्ध नहीं"
+mirror_message = "आपके कैमरे का प्रीव्यू मिरर नहीं किया गया है।"
+mirror_title = "मिरर उपलब्ध नहीं"
+
+[camera.issue]
+access_message = "सिस्टम सेटिंग्स में Cap को अपना कैमरा इस्तेमाल करने देने के लिए क्लिक करें।"
+access_title = "कैमरा एक्सेस ज़रूरी है"
+generic = "चुना गया कैमरा शुरू नहीं हो सका। कोई दूसरा कैमरा चुनें या इसे फिर से कनेक्ट करें।"
+invalid_format = "इस कैमरे ने कोई इस्तेमाल लायक कैप्चर फ़ॉर्मैट नहीं बताया।"
+not_found = "यह कैमरा अब उपलब्ध नहीं है। जाँचें कि यह कनेक्ट है और सिस्टम की अनुमतियों में इसकी अनुमति है।"
+start_failed = "सिस्टम यह कैमरा शुरू नहीं कर सका। हो सकता है यह उपलब्ध न हो या कोई दूसरा ऐप इसे इस्तेमाल कर रहा हो।"
+timeout = "इस कैमरे से कोई फ़्रेम नहीं मिला। हो सकता है यह बंद, डिस्कनेक्ट या ढका हुआ हो, या कोई दूसरा ऐप इसे इस्तेमाल कर रहा हो।"
+unavailable_title = "कैमरा उपलब्ध नहीं"
+
+[onboarding.customize]
+footer = "इनमें से कुछ भी आप कभी भी सेटिंग्स में बदल सकते हैं"
+subtitle = "कीबोर्ड शॉर्टकट से लेकर स्टोरेज तक, सब कुछ अपने हिसाब से बदलें। Cap आपके काम करने के तरीके के अनुसार ढल जाता है।"
+title = "Cap को अपना बनाएँ"
+
+[onboarding.customize.domain]
+description = "शेयर करने लायक लिंक के लिए cap.so की जगह अपना डोमेन इस्तेमाल करें"
+title = "कस्टम डोमेन"
+
+[onboarding.customize.preferences]
+description = "FPS, क्वालिटी, काउंटडाउन टाइमर, कर्सर इफ़ेक्ट और बहुत कुछ"
+title = "रिकॉर्डिंग की पसंद"
+
+[onboarding.customize.s3]
+description = "अपनी रिकॉर्डिंग पर पूरे नियंत्रण के लिए अपना S3-कम्पैटिबल बकेट जोड़ें"
+title = "कस्टम S3 स्टोरेज"
+
+[onboarding.customize.shortcuts]
+description = "रिकॉर्डिंग, स्क्रीनशॉट और मोड बदलने के लिए ग्लोबल हॉटकी"
+title = "कीबोर्ड शॉर्टकट"
+
+[onboarding.demo]
+background = "बैकग्राउंड"
+copied = "कॉपी हो गया!"
+copied_to_clipboard = "क्लिपबोर्ड पर कॉपी हो गया"
+copy = "कॉपी करें"
+editor = "Cap एडिटर"
+export = "एक्सपोर्ट करें"
+export_complete = "एक्सपोर्ट पूरा हुआ!"
+exporting = "एक्सपोर्ट हो रहा है..."
+link_ready = "लिंक शेयर करने के लिए तैयार है!"
+save = "सहेजें"
+start_recording = "रिकॉर्डिंग शुरू करें"
+stopped = "रुका"
+style = "स्टाइल"
+
+[onboarding.demo.steps]
+beautify = "सजाएँ"
+edit = "एडिट करें"
+record = "रिकॉर्ड करें"
+select_area = "क्षेत्र चुनें"
+share_link = "लिंक शेयर करें"
+stop = "रोकें"
+
+[onboarding.error]
+save_progress = "ऑनबोर्डिंग की प्रगति सहेजी नहीं जा सकी। कृपया फिर से कोशिश करें।"
+save_sound = "साउंड की पसंद सहेजी नहीं जा सकी।"
+
+[onboarding.faq]
+pricing = "प्राइसिंग प्लान देखें"
+pricing_link = "प्राइसिंग प्लान देखें ↗"
+subtitle = "शुरू करने के लिए जो कुछ जानना ज़रूरी है।"
+title = "अक्सर पूछे जाने वाले सवाल"
+
+[onboarding.faq.free]
+answer = "Cap निजी इस्तेमाल के लिए मुफ़्त है। टीम और कमर्शियल इस्तेमाल के लिए हमारे प्राइसिंग प्लान देखें।"
+question = "क्या Cap मुफ़्त है?"
+
+[onboarding.faq.instant_vs_studio]
+answer = "Instant मोड रिकॉर्ड करते-करते अपलोड करता है: रिकॉर्डिंग रोकते ही आपके पास शेयर करने लायक लिंक होगा। Studio मोड पूरी क्वालिटी में लोकल रिकॉर्ड करता है, ताकि शेयर करने से पहले आप बैकग्राउंड, इफ़ेक्ट और बहुत कुछ के साथ एडिट कर सकें।"
+question = "Instant और Studio में क्या अंतर है?"
+
+[onboarding.faq.sharing]
+answer = "Instant मोड में रिकॉर्डिंग रोकते ही आपको अपने-आप शेयर करने लायक लिंक मिल जाता है। Studio मोड में अपना एडिट किया हुआ वीडियो एक्सपोर्ट करें और Cap के क्लाउड से शेयर करें या लोकल सहेजें।"
+question = "शेयर करना कैसे काम करता है?"
+
+[onboarding.faq.shortcuts]
+answer = "अपने सभी कीबोर्ड शॉर्टकट बदलने के लिए कभी भी सेटिंग्स → शॉर्टकट पर जाएँ।"
+question = "क्या मैं बाद में अपने शॉर्टकट बदल सकता हूँ?"
+
+[onboarding.faq.storage]
+answer = "सभी रिकॉर्डिंग आपके कंप्यूटर पर लोकल सहेजी जाती हैं। Instant मोड में आसानी से शेयर करने के लिए वे Cap के क्लाउड पर भी अपलोड होती हैं। आप सेटिंग्स में स्टोरेज मैनेज कर सकते हैं।"
+question = "मेरी रिकॉर्डिंग कहाँ सहेजी जाती हैं?"
+
+[onboarding.modes.instant]
+description = "आपकी रिकॉर्डिंग कैप्चर के साथ-साथ अपलोड होती है। रिकॉर्डिंग रोकें और बिना इंतज़ार तुरंत शेयर करने लायक लिंक पाएँ।"
+feature_1 = "तुरंत शेयर करने लायक लिंक"
+feature_2 = "बैकग्राउंड में अपलोड"
+feature_3 = "AI ट्रांसक्रिप्शन और सारांश"
+feature_4 = "ब्राउज़र में प्लेबैक"
+tagline = "सेकंडों में रिकॉर्ड करें और शेयर करें"
+title = "Instant मोड"
+
+[onboarding.modes.screenshot]
+description = "एक ही हॉटकी से स्क्रीनशॉट लें, नोट्स और सुंदर बैकग्राउंड जोड़ें, फिर तुरंत शेयर या कॉपी करें।"
+feature_1 = "हॉटकी से तुरंत कैप्चर"
+feature_2 = "नोट्स और ड्रॉइंग टूल"
+feature_3 = "सुंदर बैकग्राउंड"
+feature_4 = "कॉपी करें, सहेजें या शेयर करें"
+tagline = "तुरंत कैप्चर करें और सजाएँ"
+title = "स्क्रीनशॉट मोड"
+
+[onboarding.modes.studio]
+description = "पूरी क्वालिटी में लोकल रिकॉर्ड करें, फिर बिल्ट-इन एडिटर से बैकग्राउंड, पैडिंग, कर्सर इफ़ेक्ट और बहुत कुछ जोड़ें।"
+feature_1 = "पूरी क्वालिटी में लोकल रिकॉर्डिंग"
+feature_2 = "बिल्ट-इन एडिटर और इफ़ेक्ट"
+feature_3 = "कस्टम बैकग्राउंड और पैडिंग"
+feature_4 = "तैयार होने पर एक्सपोर्ट या शेयर करें"
+tagline = "प्रोफ़ेशनल एडिटिंग टूल"
+title = "Studio मोड"
+
+[onboarding.nav]
+back = "← वापस"
+continue_to_cap = "Cap पर जारी रखें"
+keyboard_hint = "Enter ↵ दबाएँ या ← → ऐरो की इस्तेमाल करें"
+next = "जारी रखें"
+permissions_needed = "जारी रखने के लिए ज़रूरी अनुमतियाँ दें"
+relaunch = "Cap फिर से खोलें"
+skip = "टूर छोड़ें"
+start = "Cap इस्तेमाल करना शुरू करें"
+
+[onboarding.overview]
+subtitle = "चाहे आपको रफ़्तार चाहिए, स्टूडियो जैसी क्वालिटी या झटपट स्क्रीनशॉट, Cap में हर ज़रूरत के लिए एक मोड है।"
+title = "एक ऐप, हर काम के लिए"
+
+[onboarding.toggle]
+subtitle = "Cap की मुख्य विंडो से एक क्लिक में मोड बदलें।"
+title = "कभी भी मोड बदलें"
+
+[onboarding.welcome]
+click_or_press = "यहाँ क्लिक करें, या दबाएँ"
+get_started = "शुरू करें"
+space_key = "स्पेस"
+tagline = "सबके लिए ओपन सोर्स स्क्रीन शेयरिंग ऐप।"
diff --git a/apps/desktop-gpui/locales/ja.toml b/apps/desktop-gpui/locales/ja.toml
index 3c7eeb22b..0609512ae 100644
--- a/apps/desktop-gpui/locales/ja.toml
+++ b/apps/desktop-gpui/locales/ja.toml
@@ -1,10 +1,20 @@
[common]
add = "追加"
+back = "戻る"
cancel = "キャンセル"
+choose_allow_prompt = "macOSのダイアログで「許可」を選択してください。"
+close = "閉じる"
+copied = "コピーしました"
+dismiss = "閉じる"
+go_back = "戻る"
+loading = "読み込み中..."
+no = "いいえ"
ok = "OK"
reset = "リセット"
reset_to_default = "デフォルトに戻す"
save = "保存"
+search = "検索"
+yes = "はい"
[menu.app]
about = "Capについて"
@@ -223,3 +233,350 @@ title = "プライバシー"
[settings.general.privacy.telemetry]
description = "Capは信頼性の向上と不具合の修正のために匿名のテレメトリを使用します。録画の内容、ウィンドウのタイトル、ファイルパス、個人情報を収集することはありません。"
label = "匿名のテレメトリを共有"
+
+[main]
+delete_recording_confirm = "この録画を削除してもよろしいですか?"
+delete_screenshot_confirm = "このスクリーンショットを削除してもよろしいですか?"
+
+[main.clean_capture]
+title = "余計なものを映さずに録画"
+
+[main.clip]
+add_to_project = "現在のプロジェクトに追加"
+record_new = "新しいクリップを録画"
+
+[main.device]
+camera = "カメラ"
+fallback_camera = "カメラ"
+heading = "カメラとマイクを選択"
+microphone = "マイク"
+no_camera = "カメラなし"
+no_cameras = "カメラが見つかりません"
+no_matching_cameras = "一致するカメラはありません"
+no_matching_microphones = "一致するマイクはありません"
+no_microphone = "マイクなし"
+no_microphones = "マイクが見つかりません"
+system_audio_off = "システム音声なし"
+system_audio_on = "システム音声を録音"
+
+[main.device.access]
+allow_access = "アクセスを許可"
+camera_denied = "Capはカメラを使用できません。システム設定でオンにしてください。"
+camera_needed = "Capがカメラを使用するには許可が必要です。"
+microphone_denied = "Capはマイクを使用できません。システム設定でオンにしてください。"
+microphone_needed = "Capがマイクを使用するには許可が必要です。"
+open_system_settings = "システム設定を開く"
+turn_on_in_settings = "設定でオンにする"
+
+[main.device.format]
+apply_failed = "デバイスのフォーマットを適用できませんでした: {error}"
+applying = "フォーマットを適用中..."
+available = "利用可能: {format}"
+camera_changed = "カメラが変更されたか、接続が切れました。フォーマット設定を開き直してください。"
+channels = { other = "{count}チャンネル" }
+current = "現在: {format}"
+default = "デフォルト"
+loading = "フォーマットを読み込み中..."
+mono = "モノラル"
+preferred = "優先するフォーマット"
+save_failed = "デバイスの優先フォーマットを保存できませんでした。もう一度お試しください。"
+stereo = "ステレオ"
+
+[main.device.pill]
+allow = "許可"
+allow_in_settings = "設定で許可"
+asking = "確認中…"
+not_connected = "未接続"
+off = "オフ"
+on = "オン"
+
+[main.error]
+camera_only_needs_camera = "カメラのみの録画にはカメラを選択する必要があります。"
+copy = "エラーをコピー"
+devices_not_ready = "録画デバイスの準備ができていません。レコーダーを開いてもう一度お試しください。"
+title = "問題が発生しました"
+
+[main.header]
+changelog = "変更履歴"
+help = "ヘルプとツアー"
+recordings = "録画"
+screenshots = "スクリーンショット"
+settings = "設定"
+teleprompter = "テレプロンプター"
+
+[main.library]
+clips = { other = "{count}クリップ" }
+copy_screenshot_failed = "スクリーンショットをコピーできませんでした"
+import_recordings = "読み込む"
+import_screenshots = "画像を読み込む"
+importing = "読み込み中"
+no_matching_recordings = "一致する録画はありません"
+no_matching_screenshots = "一致するスクリーンショットはありません"
+no_recordings = "録画はまだありません"
+no_screenshots = "スクリーンショットはまだありません"
+recordings_description = "画面録画はここに表示されます。録画を始めてみましょう!"
+screenshots_description = "スクリーンショットはここに表示されます。スクリーンショットを撮ってみましょう!"
+view_all_recordings = "すべての録画を表示"
+view_all_screenshots = "すべてのスクリーンショットを表示"
+
+[main.mic_warning]
+body = "この録画には声が入りません。マイクを選択するか、マイクなしで続けてください。"
+dont_show_again = "今後表示しない"
+record_without = "マイクなしで録画"
+save_failed = "設定を保存できませんでした。もう一度試すか、チェックを外したままにしてください。"
+title = "マイクが検出されません"
+
+[main.mode]
+info_tooltip = "録画モードについて"
+
+[main.mode.header]
+instant = "Instantモード"
+screenshot = "スクリーンショットモード"
+studio = "Studioモード"
+
+[main.mode.hover]
+instant = "Instantモード"
+instant_description = "レンダリング不要。録画しながらアップロードするので、停止した瞬間にリンクを共有できます。"
+quality_settings = "画質設定"
+screenshot = "スクリーンショットモード"
+screenshot_description = "静止画を撮影して注釈を付けます。"
+studio = "Studioモード"
+studio_description = "コンピュータに保存し、停止するとエディタが開きます。録画品質は設定で選択できます。"
+
+[main.mode.info]
+instant = "リンクですぐに共有。録画しながらアップロードされるので、終わったらすぐに共有できます。"
+screenshot = "スクリーンショットをすばやく撮影して注釈を付けます。手早いキャプチャやバグ報告、視覚的なコミュニケーションに最適です。"
+studio = "最高画質でローカルに録画し、あとで編集します。エフェクトやトランジションを使った仕上がりのよいコンテンツ作りに最適です。"
+title = "録画モード"
+
+[main.mode.name]
+instant = "Instant"
+screenshot = "スクリーンショット"
+studio = "Studio"
+
+[main.plan]
+commercial = "商用"
+personal = "個人"
+
+[main.recording]
+cancel = "録画をキャンセル"
+paused_notice = "録画を一時停止しました。再開前にCapは非表示になります。"
+resume = "再開"
+starting = "開始しています..."
+starts_in = "{remaining}秒後に録画を開始します"
+stop = "録画を停止"
+stopping = "停止しています..."
+
+[main.recovery]
+discard = "破棄"
+duration_minutes = "約{minutes}分"
+duration_minutes_seconds = "約{minutes}分{seconds}秒"
+duration_seconds = "約{seconds}秒"
+recover = "復元"
+segments = { other = "{count}セグメント" }
+segments_with_duration = { other = "{count}セグメント · {duration}" }
+title = "未完了の録画"
+
+[main.sign_in]
+message = "Instantモードは録画しながらアップロードするので、停止した瞬間に共有リンクが用意されます。"
+not_now = "今はしない"
+open_browser_again = "ブラウザをもう一度開く"
+pending_message = "ブラウザでCapへのサインインを完了してください。完了するとCapがここに戻り、レコーダーを開きます。"
+sign_in = "サインイン"
+timed_out = "サインインがタイムアウトしました。もう一度お試しください。"
+title = "Instantモードを使うにはサインインしてください"
+use_studio = "Studioを使う"
+waiting = "ブラウザを待っています"
+
+[main.storage]
+blocked = "録画用ドライブの空き容量は{available} GBしかありません。録画する前に、512 MB以上の空きを確保してください。"
+can_start = "録画用ドライブの空き容量は{available} GBしかありません。容量が足りなくなるとCapは録画を保存して自動的に停止します。"
+check_failed = "録画用ストレージを確認できませんでした: {error}"
+record_anyway = "このまま録画"
+title = "空き容量が不足しています"
+
+[main.target]
+area = "範囲"
+camera_only = "カメラのみ"
+choose_display = "ディスプレイを選択"
+choose_window = "ウィンドウを選択"
+display = "ディスプレイ"
+heading = "キャプチャするソースを選択"
+no_displays = "ディスプレイが見つかりません"
+no_matching_displays = "一致するディスプレイはありません"
+no_matching_windows = "一致するウィンドウはありません"
+no_windows = "ウィンドウが見つかりません"
+window = "ウィンドウ"
+
+[controls]
+disk_full_resume = "再開するための空き容量が足りません。空きを確保してもう一度試すか、停止を押して保存してください。"
+low_storage = "空き容量が不足しています。録画を保存するため、Capはまもなく停止します。"
+
+[controls.confirm]
+delete = "削除"
+delete_message = "録画を削除してもよろしいですか?"
+delete_title = "削除の確認"
+restart = "やり直す"
+restart_message = "録画をやり直してもよろしいですか?現在の録画は破棄されます。"
+restart_title = "やり直しの確認"
+
+[controls.pause]
+pause = "録画を一時停止"
+pausing = "録画を一時停止しています…"
+resume = "録画を再開"
+resuming = "録画を再開しています…"
+unconfirmed = "キャプチャの状態を確認できません。停止を使ってください。"
+
+[controls.stop]
+error = "エラー"
+paused = "一時停止"
+pausing = "休止中…"
+resuming = "再開中…"
+saving = "保存中…"
+starting = "開始中"
+
+[camera]
+waiting_title = "カメラへのアクセスを待っています"
+
+[camera.effects]
+blur_message = "カメラはぼかされていません。"
+blur_title = "背景ぼかしを使用できません"
+both_message = "カメラはぼかしも反転もされていません。"
+both_title = "カメラエフェクトを使用できません"
+mirror_message = "カメラのプレビューは反転されていません。"
+mirror_title = "反転を使用できません"
+
+[camera.issue]
+access_message = "クリックして、システム設定でCapにカメラの使用を許可してください。"
+access_title = "カメラへのアクセスが必要です"
+generic = "選択したカメラを起動できませんでした。別のカメラを選ぶか、このカメラを接続し直してください。"
+invalid_format = "このカメラは使用可能なキャプチャフォーマットを報告しませんでした。"
+not_found = "このカメラは使用できなくなりました。接続されていて、システムの権限で許可されているか確認してください。"
+start_failed = "システムがこのカメラを起動できませんでした。使用できないか、ほかのアプリで使用中の可能性があります。"
+timeout = "このカメラから映像が届きませんでした。閉じている、接続が切れている、覆われている、またはほかのアプリで使用中の可能性があります。"
+unavailable_title = "カメラを使用できません"
+
+[onboarding.customize]
+footer = "これらはすべて、いつでも設定で変更できます"
+subtitle = "キーボードショートカットから保存先まで、すべてをカスタマイズ。Capはあなたの作業スタイルに合わせます。"
+title = "Capを自分仕様に"
+
+[onboarding.customize.domain]
+description = "共有リンクにcap.soではなく独自ドメインを使えます"
+title = "カスタムドメイン"
+
+[onboarding.customize.preferences]
+description = "FPS、画質、カウントダウン、カーソルエフェクトなど"
+title = "録画の設定"
+
+[onboarding.customize.s3]
+description = "S3互換のバケットを接続して、録画を完全に管理できます"
+title = "カスタムS3ストレージ"
+
+[onboarding.customize.shortcuts]
+description = "録画、スクリーンショット、モード切り替えのためのグローバルショートカット"
+title = "キーボードショートカット"
+
+[onboarding.demo]
+background = "背景"
+copied = "コピーしました!"
+copied_to_clipboard = "クリップボードにコピーしました"
+copy = "コピー"
+editor = "Capエディタ"
+export = "書き出す"
+export_complete = "書き出しが完了しました!"
+exporting = "書き出し中..."
+link_ready = "共有リンクの準備ができました!"
+save = "保存"
+start_recording = "録画を開始"
+stopped = "停止"
+style = "スタイル"
+
+[onboarding.demo.steps]
+beautify = "仕上げる"
+edit = "編集"
+record = "録画"
+select_area = "範囲を選択"
+share_link = "リンクを共有"
+stop = "停止"
+
+[onboarding.error]
+save_progress = "進行状況を保存できませんでした。もう一度お試しください。"
+save_sound = "サウンドの設定を保存できませんでした。"
+
+[onboarding.faq]
+pricing = "料金プランを見る"
+pricing_link = "料金プランを見る ↗"
+subtitle = "使い始めるために知っておきたいことをまとめました。"
+title = "よくある質問"
+
+[onboarding.faq.free]
+answer = "Capは個人利用なら無料です。チームや商用での利用については料金プランをご覧ください。"
+question = "Capは無料で使えますか?"
+
+[onboarding.faq.instant_vs_studio]
+answer = "Instantモードは録画しながらアップロードするので、停止するとすぐに共有リンクが手に入ります。Studioモードはフル画質でローカルに録画し、共有前に背景やエフェクトなどを加えて編集できます。"
+question = "InstantとStudioの違いは何ですか?"
+
+[onboarding.faq.sharing]
+answer = "Instantモードでは、録画を停止すると自動的に共有リンクが作成されます。Studioモードでは、編集した動画を書き出して、Capのクラウドで共有するかローカルに保存します。"
+question = "共有はどのように行いますか?"
+
+[onboarding.faq.shortcuts]
+answer = "いつでも 設定 → ショートカット から、すべてのキーボードショートカットをカスタマイズできます。"
+question = "ショートカットはあとで変更できますか?"
+
+[onboarding.faq.storage]
+answer = "録画はすべてコンピュータにローカル保存されます。Instantモードでは、簡単に共有できるようにCapのクラウドにもアップロードされます。保存先の管理は設定から行えます。"
+question = "録画はどこに保存されますか?"
+
+[onboarding.modes.instant]
+description = "録画しながらアップロードします。録画を止めればすぐに共有リンクが手に入り、待つ必要はありません。"
+feature_1 = "すぐに使える共有リンク"
+feature_2 = "バックグラウンドでアップロード"
+feature_3 = "AIによる文字起こしと要約"
+feature_4 = "ブラウザで再生"
+tagline = "数秒で録画して共有"
+title = "Instantモード"
+
+[onboarding.modes.screenshot]
+description = "ひとつのショートカットでスクリーンショットを撮影し、注釈やきれいな背景を加えて、すぐに共有またはコピーできます。"
+feature_1 = "ショートカットですぐ撮影"
+feature_2 = "注釈と描画ツール"
+feature_3 = "きれいな背景"
+feature_4 = "コピー、保存、共有"
+tagline = "撮ってすぐに美しく"
+title = "スクリーンショットモード"
+
+[onboarding.modes.studio]
+description = "フル画質でローカルに録画し、内蔵エディタで背景、余白、カーソルエフェクトなどを追加できます。"
+feature_1 = "フル画質のローカル録画"
+feature_2 = "内蔵エディタとエフェクト"
+feature_3 = "カスタム背景と余白"
+feature_4 = "準備ができたら書き出しや共有"
+tagline = "プロ仕様の編集ツール"
+title = "Studioモード"
+
+[onboarding.nav]
+back = "← 戻る"
+continue_to_cap = "Capへ進む"
+keyboard_hint = "Enter ↵ を押すか、← → キーで移動"
+next = "続ける"
+permissions_needed = "続けるには必要な権限を許可してください"
+relaunch = "Capを再起動"
+skip = "ツアーをスキップ"
+start = "Capを使い始める"
+
+[onboarding.overview]
+subtitle = "スピード重視でも、スタジオ品質でも、手早いスクリーンショットでも。Capにはそれぞれに合ったモードがあります。"
+title = "ひとつのアプリで、あらゆる作業に"
+
+[onboarding.toggle]
+subtitle = "Capのメインウィンドウから、ワンクリックでモードを切り替えられます。"
+title = "モードはいつでも切り替え可能"
+
+[onboarding.welcome]
+click_or_press = "ここをクリックするか、次のキーを押す:"
+get_started = "はじめる"
+space_key = "スペース"
+tagline = "誰もが使えるオープンソースの画面共有アプリ。"
diff --git a/apps/desktop-gpui/locales/zh-CN.toml b/apps/desktop-gpui/locales/zh-CN.toml
index 307d89f36..cbb1fb71c 100644
--- a/apps/desktop-gpui/locales/zh-CN.toml
+++ b/apps/desktop-gpui/locales/zh-CN.toml
@@ -1,10 +1,20 @@
[common]
add = "添加"
+back = "返回"
cancel = "取消"
+choose_allow_prompt = "请在 macOS 提示中选择“允许”。"
+close = "关闭"
+copied = "已拷贝"
+dismiss = "关闭"
+go_back = "返回"
+loading = "正在加载..."
+no = "否"
ok = "确定"
reset = "重置"
reset_to_default = "恢复默认"
save = "保存"
+search = "搜索"
+yes = "是"
[menu.app]
about = "关于 Cap"
@@ -223,3 +233,350 @@ title = "隐私"
[settings.general.privacy.telemetry]
description = "Cap 使用匿名遥测数据来提升稳定性并修复问题。我们绝不会收集录制内容、窗口标题、文件路径或任何个人信息。"
label = "共享匿名遥测数据"
+
+[main]
+delete_recording_confirm = "确定要删除这段录制吗?"
+delete_screenshot_confirm = "确定要删除这张截图吗?"
+
+[main.clean_capture]
+title = "保持画面整洁"
+
+[main.clip]
+add_to_project = "添加到当前项目"
+record_new = "录制新片段"
+
+[main.device]
+camera = "摄像头"
+fallback_camera = "摄像头"
+heading = "选择摄像头和麦克风"
+microphone = "麦克风"
+no_camera = "无摄像头"
+no_cameras = "未找到摄像头"
+no_matching_cameras = "没有匹配的摄像头"
+no_matching_microphones = "没有匹配的麦克风"
+no_microphone = "无麦克风"
+no_microphones = "未找到麦克风"
+system_audio_off = "不录制系统音频"
+system_audio_on = "录制系统音频"
+
+[main.device.access]
+allow_access = "允许访问"
+camera_denied = "Cap 无法使用你的摄像头。请在系统设置中开启。"
+camera_needed = "Cap 需要你的同意才能使用摄像头。"
+microphone_denied = "Cap 无法使用你的麦克风。请在系统设置中开启。"
+microphone_needed = "Cap 需要你的同意才能使用麦克风。"
+open_system_settings = "打开系统设置"
+turn_on_in_settings = "在设置中开启"
+
+[main.device.format]
+apply_failed = "无法应用设备格式:{error}"
+applying = "正在应用格式..."
+available = "可用:{format}"
+camera_changed = "摄像头已更换或断开连接。请重新打开它的格式设置。"
+channels = { other = "{count} 声道" }
+current = "当前:{format}"
+default = "默认"
+loading = "正在加载格式..."
+mono = "单声道"
+preferred = "首选格式"
+save_failed = "无法保存设备首选格式。请重试。"
+stereo = "立体声"
+
+[main.device.pill]
+allow = "允许"
+allow_in_settings = "在设置中允许"
+asking = "正在请求…"
+not_connected = "未连接"
+off = "关"
+on = "开"
+
+[main.error]
+camera_only_needs_camera = "仅摄像头录制需要先选择摄像头。"
+copy = "拷贝错误信息"
+devices_not_ready = "录制设备尚未就绪。请打开录制器后重试。"
+title = "出了点问题"
+
+[main.header]
+changelog = "更新日志"
+help = "帮助与导览"
+recordings = "录制"
+screenshots = "截图"
+settings = "设置"
+teleprompter = "提词器"
+
+[main.library]
+clips = { other = "{count} 个片段" }
+copy_screenshot_failed = "无法拷贝截图"
+import_recordings = "导入"
+import_screenshots = "导入图片"
+importing = "正在导入"
+no_matching_recordings = "没有匹配的录制"
+no_matching_screenshots = "没有匹配的截图"
+no_recordings = "还没有录制"
+no_screenshots = "还没有截图"
+recordings_description = "你的屏幕录制会显示在这里。开始录制吧!"
+screenshots_description = "你的截图会显示在这里。截一张图开始吧!"
+view_all_recordings = "查看所有录制"
+view_all_screenshots = "查看所有截图"
+
+[main.mic_warning]
+body = "这段录制不会包含你的声音。请选择一个麦克风,或在没有麦克风的情况下继续。"
+dont_show_again = "不再显示"
+record_without = "不使用麦克风录制"
+save_failed = "无法保存你的偏好设置。请重试,或保持该选项未勾选。"
+title = "未检测到麦克风"
+
+[main.mode]
+info_tooltip = "录制模式说明"
+
+[main.mode.header]
+instant = "Instant 模式"
+screenshot = "截图模式"
+studio = "Studio 模式"
+
+[main.mode.hover]
+instant = "Instant 模式"
+instant_description = "无需渲染:边录边上传,停止的那一刻就能分享链接。"
+quality_settings = "画质设置"
+screenshot = "截图模式"
+screenshot_description = "截取静态图片并添加标注。"
+studio = "Studio 模式"
+studio_description = "保存到你的电脑,停止后打开编辑器。录制质量可在设置中选择。"
+
+[main.mode.info]
+instant = "通过链接即时分享。录制内容会边录边上传,结束后即可立即分享。"
+screenshot = "即时截图并添加标注。非常适合快速截图、报告问题和视觉沟通。"
+studio = "以最高画质在本地录制,方便后期编辑。非常适合制作带特效和转场的精致内容。"
+title = "录制模式"
+
+[main.mode.name]
+instant = "Instant"
+screenshot = "截图"
+studio = "Studio"
+
+[main.plan]
+commercial = "商业版"
+personal = "个人版"
+
+[main.recording]
+cancel = "取消录制"
+paused_notice = "录制已暂停。继续录制前 Cap 会先隐藏。"
+resume = "继续"
+starting = "正在开始..."
+starts_in = "{remaining} 秒后开始录制"
+stop = "停止录制"
+stopping = "正在停止..."
+
+[main.recovery]
+discard = "丢弃"
+duration_minutes = "约 {minutes} 分钟"
+duration_minutes_seconds = "约 {minutes} 分 {seconds} 秒"
+duration_seconds = "约 {seconds} 秒"
+recover = "恢复"
+segments = { other = "{count} 个分段" }
+segments_with_duration = { other = "{count} 个分段 · {duration}" }
+title = "未完成的录制"
+
+[main.sign_in]
+message = "Instant 模式会边录边上传,停止的那一刻分享链接就已就绪。"
+not_now = "以后再说"
+open_browser_again = "重新打开浏览器"
+pending_message = "请在浏览器中完成 Cap 登录。完成后 Cap 会回到这里并打开录制器。"
+sign_in = "登录"
+timed_out = "登录超时。请重试。"
+title = "登录以使用 Instant 模式"
+use_studio = "使用 Studio"
+waiting = "正在等待浏览器"
+
+[main.storage]
+blocked = "录制所用磁盘仅剩 {available} GB 可用空间。请先释放空间,确保录制前至少有 512 MB 可用。"
+can_start = "录制所用磁盘仅剩 {available} GB 可用空间。如果空间过低,Cap 会自动停止并保留你的录制。"
+check_failed = "无法检查录制存储空间:{error}"
+record_anyway = "仍要录制"
+title = "存储空间不足"
+
+[main.target]
+area = "区域"
+camera_only = "仅摄像头"
+choose_display = "选择屏幕"
+choose_window = "选择窗口"
+display = "屏幕"
+heading = "选择捕获来源"
+no_displays = "未找到屏幕"
+no_matching_displays = "没有匹配的屏幕"
+no_matching_windows = "没有匹配的窗口"
+no_windows = "未找到窗口"
+window = "窗口"
+
+[controls]
+disk_full_resume = "磁盘空间不足,无法继续。请释放空间后重试,或按“停止”保存。"
+low_storage = "存储空间不足。Cap 即将停止以保存你的录制。"
+
+[controls.confirm]
+delete = "删除"
+delete_message = "确定要删除这段录制吗?"
+delete_title = "确认删除"
+restart = "重新开始"
+restart_message = "确定要重新开始录制吗?当前录制将被丢弃。"
+restart_title = "确认重新开始"
+
+[controls.pause]
+pause = "暂停录制"
+pausing = "正在暂停录制…"
+resume = "继续录制"
+resuming = "正在继续录制…"
+unconfirmed = "无法确认录制状态。请使用“停止”。"
+
+[controls.stop]
+error = "错误"
+paused = "已暂停"
+pausing = "暂停中…"
+resuming = "恢复中…"
+saving = "保存中…"
+starting = "正在开始"
+
+[camera]
+waiting_title = "正在等待摄像头权限"
+
+[camera.effects]
+blur_message = "你的摄像头画面未模糊。"
+blur_title = "背景模糊不可用"
+both_message = "你的摄像头画面未模糊,也未镜像。"
+both_title = "摄像头特效不可用"
+mirror_message = "你的摄像头预览未镜像。"
+mirror_title = "镜像不可用"
+
+[camera.issue]
+access_message = "点击以在系统设置中允许 Cap 使用你的摄像头。"
+access_title = "需要摄像头权限"
+generic = "无法启动所选摄像头。请选择其他摄像头,或重新连接此摄像头。"
+invalid_format = "此摄像头未提供可用的捕获格式。"
+not_found = "此摄像头已不可用。请检查它是否已连接,并已在系统权限中允许。"
+start_failed = "系统无法启动此摄像头。它可能不可用,或正被其他应用使用。"
+timeout = "未从此摄像头收到任何画面。它可能已关闭、断开连接、被遮挡,或正被其他应用使用。"
+unavailable_title = "摄像头不可用"
+
+[onboarding.customize]
+footer = "以上内容都可以随时在设置中更改"
+subtitle = "从键盘快捷键到存储,一切皆可自定义。Cap 会适应你的工作方式。"
+title = "打造你的专属 Cap"
+
+[onboarding.customize.domain]
+description = "分享链接使用你自己的域名,而不是 cap.so"
+title = "自定义域名"
+
+[onboarding.customize.preferences]
+description = "帧率、画质、倒计时、光标特效等"
+title = "录制偏好"
+
+[onboarding.customize.s3]
+description = "连接你自己的 S3 兼容存储桶,完全掌控你的录制"
+title = "自定义 S3 存储"
+
+[onboarding.customize.shortcuts]
+description = "用于录制、截图和切换模式的全局快捷键"
+title = "键盘快捷键"
+
+[onboarding.demo]
+background = "背景"
+copied = "已拷贝!"
+copied_to_clipboard = "已拷贝到剪贴板"
+copy = "拷贝"
+editor = "Cap 编辑器"
+export = "导出"
+export_complete = "导出完成!"
+exporting = "正在导出..."
+link_ready = "链接已可分享!"
+save = "保存"
+start_recording = "开始录制"
+stopped = "已停止"
+style = "样式"
+
+[onboarding.demo.steps]
+beautify = "美化"
+edit = "编辑"
+record = "录制"
+select_area = "选择区域"
+share_link = "分享链接"
+stop = "停止"
+
+[onboarding.error]
+save_progress = "无法保存引导进度。请重试。"
+save_sound = "无法保存声音偏好设置。"
+
+[onboarding.faq]
+pricing = "查看价格方案"
+pricing_link = "查看价格方案 ↗"
+subtitle = "开始使用前需要了解的一切。"
+title = "常见问题"
+
+[onboarding.faq.free]
+answer = "Cap 个人使用免费。团队和商业用途请查看我们的价格方案。"
+question = "Cap 可以免费使用吗?"
+
+[onboarding.faq.instant_vs_studio]
+answer = "Instant 模式边录边上传,停止录制后就能立即拿到分享链接。Studio 模式在本地以完整画质录制,分享前可以添加背景、特效等进行编辑。"
+question = "Instant 和 Studio 有什么区别?"
+
+[onboarding.faq.sharing]
+answer = "在 Instant 模式下,停止录制时会自动生成分享链接。在 Studio 模式下,导出编辑好的视频,然后通过 Cap 云分享或保存在本地。"
+question = "如何分享?"
+
+[onboarding.faq.shortcuts]
+answer = "随时前往 设置 → 快捷键,自定义所有键盘快捷键。"
+question = "以后可以更改快捷键吗?"
+
+[onboarding.faq.storage]
+answer = "所有录制都保存在你电脑本地。在 Instant 模式下,它们还会上传到 Cap 云以便分享。你可以在设置中管理存储。"
+question = "我的录制保存在哪里?"
+
+[onboarding.modes.instant]
+description = "边录制边上传。停止录制即可立刻获得分享链接,无需等待。"
+feature_1 = "即时分享链接"
+feature_2 = "后台上传"
+feature_3 = "AI 转录与摘要"
+feature_4 = "浏览器播放"
+tagline = "几秒内录制并分享"
+title = "Instant 模式"
+
+[onboarding.modes.screenshot]
+description = "一个快捷键即可截图,添加标注和漂亮的背景,然后立即分享或拷贝。"
+feature_1 = "快捷键一键截图"
+feature_2 = "标注与绘图工具"
+feature_3 = "漂亮的背景"
+feature_4 = "拷贝、保存或分享"
+tagline = "即时截图与美化"
+title = "截图模式"
+
+[onboarding.modes.studio]
+description = "在本地以完整画质录制,然后用内置编辑器添加背景、边距、光标特效等。"
+feature_1 = "完整画质本地录制"
+feature_2 = "内置编辑器与特效"
+feature_3 = "自定义背景与边距"
+feature_4 = "准备好后导出或分享"
+tagline = "专业编辑工具"
+title = "Studio 模式"
+
+[onboarding.nav]
+back = "← 返回"
+continue_to_cap = "继续使用 Cap"
+keyboard_hint = "按 Enter ↵ 或使用 ← → 方向键"
+next = "继续"
+permissions_needed = "请授予所需权限以继续"
+relaunch = "重新启动 Cap"
+skip = "跳过导览"
+start = "开始使用 Cap"
+
+[onboarding.overview]
+subtitle = "无论你需要速度、专业画质,还是快速截图,Cap 都有对应的模式。"
+title = "一个应用,满足所有工作流"
+
+[onboarding.toggle]
+subtitle = "在 Cap 主窗口中单击即可切换模式。"
+title = "随时切换模式"
+
+[onboarding.welcome]
+click_or_press = "点击此处,或按下"
+get_started = "开始使用"
+space_key = "空格"
+tagline = "人人可用的开源屏幕分享应用。"
diff --git a/apps/desktop-gpui/src/camera_window.rs b/apps/desktop-gpui/src/camera_window.rs
index a124548af..b28f5beef 100644
--- a/apps/desktop-gpui/src/camera_window.rs
+++ b/apps/desktop-gpui/src/camera_window.rs
@@ -57,6 +57,7 @@ use gpui::{
};
use serde_json::Value;
+use crate::i18n::tr;
use crate::theme::LocaleFont as _;
use crate::{
camera_loading,
@@ -725,22 +726,51 @@ fn awaiting_camera_access(cx: &gpui::App) -> bool {
fn camera_issue(error: &str) -> (&'static str, &'static str) {
if error.contains("access is unavailable") {
return (
- "Camera access needed",
- "Click to allow Cap to use your camera in System Settings.",
+ tr::camera::issue::access_title(),
+ tr::camera::issue::access_message(),
);
}
let message = if error.contains("DeviceNotFound") {
- "This camera is no longer available. Check that it is connected and allowed by system permissions."
+ tr::camera::issue::not_found()
} else if error.contains("CameraTimeout") {
- "No frames were received from this camera. It may be closed, disconnected, covered, or in use by another app."
+ tr::camera::issue::timeout()
} else if error.contains("StartCapturing") {
- "The system could not start this camera. It may be unavailable or in use by another app."
+ tr::camera::issue::start_failed()
} else if error.contains("InvalidFormat") {
- "This camera did not report a usable capture format."
+ tr::camera::issue::invalid_format()
} else {
- "The selected camera could not be started. Choose another camera or reconnect this one."
+ tr::camera::issue::generic()
};
- ("Camera unavailable", message)
+ (tr::camera::issue::unavailable_title(), message)
+}
+
+/// Which preview effect failed. Kept instead of its text so the overlay reads
+/// the current language when it renders.
+#[cfg_attr(not(target_os = "macos"), allow(dead_code))]
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+enum EffectIssue {
+ Mirror,
+ Blur,
+ Both,
+}
+
+impl EffectIssue {
+ fn text(self) -> (&'static str, &'static str) {
+ match self {
+ Self::Mirror => (
+ tr::camera::effects::mirror_title(),
+ tr::camera::effects::mirror_message(),
+ ),
+ Self::Blur => (
+ tr::camera::effects::blur_title(),
+ tr::camera::effects::blur_message(),
+ ),
+ Self::Both => (
+ tr::camera::effects::both_title(),
+ tr::camera::effects::both_message(),
+ ),
+ }
+ }
}
#[cfg(target_os = "macos")]
@@ -752,15 +782,12 @@ struct PreviewEffectFailures {
#[cfg(target_os = "macos")]
impl PreviewEffectFailures {
- fn issue(self) -> Option<(&'static str, &'static str)> {
+ fn issue(self) -> Option<EffectIssue> {
match (self.mirror, self.blur) {
(false, false) => None,
- (true, false) => Some(("Mirror unavailable", "Your camera preview is not mirrored.")),
- (false, true) => Some(("Background blur unavailable", "Your camera is unblurred.")),
- (true, true) => Some((
- "Camera effects unavailable",
- "Your camera is unblurred and not mirrored.",
- )),
+ (true, false) => Some(EffectIssue::Mirror),
+ (false, true) => Some(EffectIssue::Blur),
+ (true, true) => Some(EffectIssue::Both),
}
}
@@ -788,6 +815,7 @@ mod preview_effect_failure_tests {
}
.issue()
.unwrap()
+ .text()
.1
.contains("not mirrored")
);
@@ -798,6 +826,7 @@ mod preview_effect_failure_tests {
}
.issue()
.unwrap()
+ .text()
.1
.contains("unblurred")
);
@@ -808,6 +837,7 @@ mod preview_effect_failure_tests {
}
.issue()
.unwrap()
+ .text()
.1
.contains("unblurred and not mirrored")
);
@@ -1014,7 +1044,7 @@ struct CameraPreviewView {
/// ~20Hz whenever a microphone is selected, and each of those would
/// repaint the whole preview for a message that did not change.
camera_error: Option<String>,
- effect_issue: Option<(&'static str, &'static str)>,
+ effect_issue: Option<EffectIssue>,
awaiting_access: bool,
_feeds_subscription: Subscription,
_access_subscription: Subscription,
@@ -1344,11 +1374,13 @@ impl Render for CameraPreviewView {
.camera_error
.as_deref()
.map(camera_issue)
- .or(self.effect_issue)
- .or(awaiting_access.then_some((
- "Waiting for camera access",
- "Choose Allow in the macOS prompt.",
- )))
+ .or(self.effect_issue.map(EffectIssue::text))
+ .or(awaiting_access.then(|| {
+ (
+ tr::camera::waiting_title(),
+ tr::common::choose_allow_prompt(),
+ )
+ }))
{
let metrics = overlay_metrics(self.size);
container = container.child(
diff --git a/apps/desktop-gpui/src/controls_window.rs b/apps/desktop-gpui/src/controls_window.rs
index beff0e45e..3bf0f4eb1 100644
--- a/apps/desktop-gpui/src/controls_window.rs
+++ b/apps/desktop-gpui/src/controls_window.rs
@@ -15,6 +15,7 @@ use gpui::{
prelude::FluentBuilder as _, px, svg,
};
+use crate::i18n::tr;
use crate::theme::LocaleFont as _;
use crate::{
feeds::{self, Feeds},
@@ -172,20 +173,20 @@ impl ControlsWindow {
let label: SharedString = if let Some(countdown) = countdown.filter(|value| *value > 0) {
countdown.to_string().into()
} else if starting {
- "Starting".into()
+ tr::controls::stop::starting().into()
} else if stopping {
- "Saving…".into()
+ tr::controls::stop::saving().into()
} else if session.pause_pending() {
if session.is_paused() {
- "Resuming…"
+ tr::controls::stop::resuming()
} else {
- "Pausing…"
+ tr::controls::stop::pausing()
}
.into()
} else if session.is_paused() {
- "Paused".into()
+ tr::controls::stop::paused().into()
} else if session.error.is_some() {
- "Error".into()
+ tr::controls::stop::error().into()
} else {
Self::format_elapsed(session.elapsed()).into()
};
@@ -309,14 +310,14 @@ impl ControlsWindow {
) {
let (title, message, accept) = match action {
DestructiveAction::Restart => (
- "Confirm Restart",
- "Are you sure you want to restart the recording? The current recording will be discarded.",
- "Restart",
+ tr::controls::confirm::restart_title(),
+ tr::controls::confirm::restart_message(),
+ tr::controls::confirm::restart(),
),
DestructiveAction::Delete => (
- "Confirm Delete",
- "Are you sure you want to delete the recording?",
- "Delete",
+ tr::controls::confirm::delete_title(),
+ tr::controls::confirm::delete_message(),
+ tr::controls::confirm::delete(),
),
};
@@ -334,8 +335,14 @@ impl ControlsWindow {
return;
};
self.confirmation_pending = true;
- let response =
- crate::editor_modal::confirm_action(title, message, accept, "Cancel", window, cx);
+ let response = crate::editor_modal::confirm_action(
+ title,
+ message,
+ accept,
+ tr::common::cancel(),
+ window,
+ cx,
+ );
cx.spawn_in(window, async move |this, cx| {
let confirmed = response.await;
let _ = this.update_in(cx, |this, window, cx| {
@@ -362,7 +369,8 @@ impl ControlsWindow {
#[cfg(not(target_os = "linux"))]
cx.spawn_in(window, async move |this, cx| {
- if !crate::platform::confirm_dialog(title, message, accept, "Cancel", true) {
+ if !crate::platform::confirm_dialog(title, message, accept, tr::common::cancel(), true)
+ {
return;
}
@@ -384,17 +392,17 @@ impl ControlsWindow {
let busy = !matches!(session.phase, Phase::Recording { .. }) || session.pause_unavailable();
let pause_pending = session.pause_pending();
let pause_tooltip = if session.pause_uncertain() {
- "Capture state is unconfirmed. Use Stop."
+ tr::controls::pause::unconfirmed()
} else if pause_pending {
if paused {
- "Resuming recording…"
+ tr::controls::pause::resuming()
} else {
- "Pausing recording…"
+ tr::controls::pause::pausing()
}
} else if paused {
- "Resume recording"
+ tr::controls::pause::resume()
} else {
- "Pause recording"
+ tr::controls::pause::pause()
};
div()
@@ -522,7 +530,7 @@ impl Render for ControlsWindow {
let issue = session.error.clone().or_else(|| {
session
.storage_warning
- .then(|| "Low storage. Cap will stop soon to save your recording.".to_owned())
+ .then(|| tr::controls::low_storage().to_owned())
});
div()
@@ -574,14 +582,15 @@ fn recording_issue_text(error: String) -> impl IntoElement + Styled {
.max_h(px(56.))
.overflow_x_scroll()
.overflow_y_scroll()
- .child(if error.contains("Insufficient disk space")
- && error.contains("Your recording is still paused")
- {
- "Not enough disk space to resume. Free up space and try again, or press Stop to save."
- .to_owned()
- } else {
- error
- })
+ .child(
+ if error.contains("Insufficient disk space")
+ && error.contains("Your recording is still paused")
+ {
+ tr::controls::disk_full_resume().to_owned()
+ } else {
+ error
+ },
+ )
}
/// The bar's track is 20pt wide.
diff --git a/apps/desktop-gpui/src/i18n/mod.rs b/apps/desktop-gpui/src/i18n/mod.rs
index c533865da..d1b344a42 100644
--- a/apps/desktop-gpui/src/i18n/mod.rs
+++ b/apps/desktop-gpui/src/i18n/mod.rs
@@ -148,5 +148,7 @@ pub fn apply(preference: Preference, cx: &mut App) {
cx.refresh_windows();
}
+#[cfg(test)]
+mod surface_tests;
#[cfg(test)]
mod tests;
diff --git a/apps/desktop-gpui/src/i18n/surface_tests.rs b/apps/desktop-gpui/src/i18n/surface_tests.rs
new file mode 100644
index 000000000..ee4ac7c2d
--- /dev/null
+++ b/apps/desktop-gpui/src/i18n/surface_tests.rs
@@ -0,0 +1,706 @@
+use super::*;
+
+/// Keys the main window, controls, camera and onboarding conversion added.
+pub(super) const NEW_COMMON: &[&str] = &[
+ "common.back",
+ "common.choose_allow_prompt",
+ "common.close",
+ "common.copied",
+ "common.dismiss",
+ "common.go_back",
+ "common.loading",
+ "common.no",
+ "common.search",
+ "common.yes",
+];
+
+pub(super) fn is_main_surface_key(key: &str) -> bool {
+ ["main.", "controls.", "camera.", "onboarding."]
+ .iter()
+ .any(|prefix| key.starts_with(prefix))
+ || NEW_COMMON.contains(&key)
+}
+
+const FORMATTED: &[&str] = &[
+ "main.device.format.available",
+ "main.device.format.apply_failed",
+ "main.device.format.channels",
+ "main.device.format.current",
+ "main.library.clips",
+ "main.recording.starts_in",
+ "main.recovery.duration_minutes",
+ "main.recovery.duration_minutes_seconds",
+ "main.recovery.duration_seconds",
+ "main.recovery.segments",
+ "main.recovery.segments_with_duration",
+ "main.storage.blocked",
+ "main.storage.can_start",
+ "main.storage.check_failed",
+];
+
+#[test]
+fn main_surfaces_match_the_literals_they_replaced() {
+ let pairs: &[(&str, &str)] = &[
+ (tr::main::device::fallback_camera(), "Camera"),
+ (tr::main::mode::name::instant(), "Instant"),
+ (tr::main::mode::name::studio(), "Studio"),
+ (tr::main::mode::name::screenshot(), "Screenshot"),
+ (
+ tr::main::mode::info::instant(),
+ "Share instantly with a link. Your recording uploads as you record, so you \
+ can share it immediately when you're done.",
+ ),
+ (
+ tr::main::mode::info::studio(),
+ "Record locally in the highest quality for editing later. Perfect for \
+ creating polished content with effects and transitions.",
+ ),
+ (
+ tr::main::mode::info::screenshot(),
+ "Capture and annotate screenshots instantly. Great for quick captures, bug \
+ reports, and visual communication.",
+ ),
+ (
+ tr::main::mode::hover::instant_description(),
+ "No rendering required — uploads on the fly so you can share the link the moment you stop.",
+ ),
+ (
+ tr::main::mode::hover::studio_description(),
+ "Saves to your computer and opens the editor when you stop. Choose recording quality in settings.",
+ ),
+ (
+ tr::main::mode::hover::screenshot_description(),
+ "Capture and annotate stills.",
+ ),
+ (
+ tr::main::mode::hover::quality_settings(),
+ "Quality settings",
+ ),
+ (tr::main::mode::info::title(), "Recording Modes"),
+ (tr::main::mode::info_tooltip(), "Recording mode info"),
+ (tr::main::target::display(), "Display"),
+ (tr::main::target::window(), "Window"),
+ (tr::main::target::area(), "Area"),
+ (tr::main::target::camera_only(), "Camera Only"),
+ (tr::main::target::choose_display(), "Choose a display"),
+ (tr::main::target::choose_window(), "Choose a window"),
+ (tr::main::target::no_displays(), "No displays found"),
+ (
+ tr::main::target::no_matching_displays(),
+ "No matching displays",
+ ),
+ (tr::main::target::no_windows(), "No windows found"),
+ (
+ tr::main::target::no_matching_windows(),
+ "No matching windows",
+ ),
+ (tr::main::target::heading(), "Choose a capture source"),
+ (tr::main::device::camera(), "Camera"),
+ (tr::main::device::microphone(), "Microphone"),
+ (tr::main::device::no_camera(), "No Camera"),
+ (tr::main::device::no_microphone(), "No Microphone"),
+ (tr::main::device::no_cameras(), "No cameras found"),
+ (
+ tr::main::device::no_matching_cameras(),
+ "No matching cameras",
+ ),
+ (tr::main::device::no_microphones(), "No microphones found"),
+ (
+ tr::main::device::no_matching_microphones(),
+ "No matching microphones",
+ ),
+ (
+ tr::main::device::heading(),
+ "Choose your camera and microphone",
+ ),
+ (tr::main::device::system_audio_on(), "Record System Audio"),
+ (tr::main::device::system_audio_off(), "No System Audio"),
+ (tr::main::device::pill::on(), "On"),
+ (tr::main::device::pill::off(), "Off"),
+ (tr::main::device::pill::not_connected(), "Not connected"),
+ (tr::main::device::pill::asking(), "Asking…"),
+ (
+ tr::main::device::pill::allow_in_settings(),
+ "Allow in Settings",
+ ),
+ (tr::main::device::pill::allow(), "Allow"),
+ (
+ tr::common::choose_allow_prompt(),
+ "Choose Allow in the macOS prompt.",
+ ),
+ (
+ tr::main::device::access::open_system_settings(),
+ "Open System Settings",
+ ),
+ (tr::main::device::format::default(), "Default"),
+ (tr::main::device::format::mono(), "Mono"),
+ (tr::main::device::format::stereo(), "Stereo"),
+ (
+ tr::main::device::format::save_failed(),
+ "Could not save the device format preference. Try again.",
+ ),
+ (
+ tr::main::device::format::camera_changed(),
+ "Camera changed or disconnected. Reopen its format settings.",
+ ),
+ (tr::main::device::format::preferred(), "Preferred format"),
+ (tr::main::device::format::loading(), "Loading formats..."),
+ (tr::main::device::format::applying(), "Applying format..."),
+ (tr::main::library::import_recordings(), "Import"),
+ (tr::main::library::import_screenshots(), "Import image"),
+ (tr::main::library::no_recordings(), "No recordings yet"),
+ (tr::main::library::no_screenshots(), "No screenshots yet"),
+ (
+ tr::main::library::view_all_recordings(),
+ "View All Recordings",
+ ),
+ (
+ tr::main::library::view_all_screenshots(),
+ "View All Screenshots",
+ ),
+ (
+ tr::main::library::no_matching_recordings(),
+ "No matching recordings",
+ ),
+ (
+ tr::main::library::no_matching_screenshots(),
+ "No matching screenshots",
+ ),
+ (tr::main::library::importing(), "Importing"),
+ (
+ tr::main::library::recordings_description(),
+ "Your screen recordings will appear here. Start recording to get started!",
+ ),
+ (
+ tr::main::library::screenshots_description(),
+ "Your screenshots will appear here. Take a screenshot to get started!",
+ ),
+ (
+ tr::main::library::copy_screenshot_failed(),
+ "Could not copy screenshot",
+ ),
+ (
+ tr::main::delete_recording_confirm(),
+ "Are you sure you want to delete this recording?",
+ ),
+ (
+ tr::main::delete_screenshot_confirm(),
+ "Are you sure you want to delete this screenshot?",
+ ),
+ (tr::common::yes(), "Yes"),
+ (tr::common::no(), "No"),
+ (tr::main::header::help(), "Help & Tour"),
+ (tr::main::header::settings(), "Settings"),
+ (tr::main::header::screenshots(), "Screenshots"),
+ (tr::main::header::recordings(), "Recordings"),
+ (tr::main::header::teleprompter(), "Teleprompter"),
+ (tr::main::header::changelog(), "Changelog"),
+ (tr::main::plan::personal(), "Personal"),
+ (tr::main::plan::commercial(), "Commercial"),
+ (tr::main::clip::record_new(), "Record a new clip"),
+ (
+ tr::main::clip::add_to_project(),
+ "Add to your current project",
+ ),
+ (tr::main::recording::starting(), "Starting..."),
+ (
+ tr::main::recording::paused_notice(),
+ "Recording paused. Cap will hide before resuming.",
+ ),
+ (tr::main::recording::resume(), "Resume"),
+ (tr::main::recording::cancel(), "Cancel Recording"),
+ (tr::main::recording::stopping(), "Stopping..."),
+ (tr::main::recording::stop(), "Stop Recording"),
+ (tr::common::back(), "Back"),
+ (tr::common::search(), "Search"),
+ (tr::common::loading(), "Loading..."),
+ (tr::common::close(), "Close"),
+ (tr::main::storage::title(), "Low storage"),
+ (tr::main::storage::record_anyway(), "Record anyway"),
+ (tr::common::go_back(), "Go back"),
+ (
+ tr::main::error::camera_only_needs_camera(),
+ "Camera-only recording requires a selected camera.",
+ ),
+ (
+ tr::main::error::devices_not_ready(),
+ "Recording devices are not ready. Open the recorder and try again.",
+ ),
+ (
+ tr::main::sign_in::timed_out(),
+ "Sign in timed out. Try again.",
+ ),
+ (tr::main::mic_warning::title(), "No microphone detected"),
+ (
+ tr::main::mic_warning::body(),
+ "This recording will not include your voice. Select a microphone, or continue without one.",
+ ),
+ (tr::main::mic_warning::dont_show_again(), "Don't show again"),
+ (
+ tr::main::mic_warning::record_without(),
+ "Record without microphone",
+ ),
+ (
+ tr::main::mic_warning::save_failed(),
+ "Could not save your preference. Try again or leave the box unchecked.",
+ ),
+ (
+ tr::main::sign_in::pending_message(),
+ "Finish signing in to Cap in your browser. Cap comes back here and opens the recorder when you're done.",
+ ),
+ (
+ tr::main::sign_in::message(),
+ "Instant Mode uploads while you record, so your shareable link is ready the moment you stop.",
+ ),
+ (
+ tr::main::sign_in::open_browser_again(),
+ "Open browser again",
+ ),
+ (tr::main::sign_in::sign_in(), "Sign In"),
+ (tr::main::sign_in::use_studio(), "Use Studio"),
+ (tr::main::sign_in::not_now(), "Not now"),
+ (tr::main::sign_in::waiting(), "Waiting for your browser"),
+ (tr::main::sign_in::title(), "Sign in to use Instant Mode"),
+ (tr::main::clean_capture::title(), "Keep your capture clean"),
+ (tr::main::recovery::title(), "Incomplete Recording"),
+ (tr::main::recovery::recover(), "Recover"),
+ (tr::main::recovery::discard(), "Discard"),
+ (tr::main::error::copy(), "Copy error"),
+ (tr::common::copied(), "Copied"),
+ (tr::common::dismiss(), "Dismiss"),
+ (tr::main::error::title(), "Something went wrong"),
+ (
+ tr::main::device::access::turn_on_in_settings(),
+ "Turn on in Settings",
+ ),
+ (tr::main::device::access::allow_access(), "Allow access"),
+ (tr::controls::stop::starting(), "Starting"),
+ (tr::controls::stop::saving(), "Saving…"),
+ (tr::controls::stop::resuming(), "Resuming…"),
+ (tr::controls::stop::pausing(), "Pausing…"),
+ (tr::controls::stop::paused(), "Paused"),
+ (tr::controls::stop::error(), "Error"),
+ (tr::controls::confirm::restart_title(), "Confirm Restart"),
+ (
+ tr::controls::confirm::restart_message(),
+ "Are you sure you want to restart the recording? The current recording will be discarded.",
+ ),
+ (tr::controls::confirm::restart(), "Restart"),
+ (tr::controls::confirm::delete_title(), "Confirm Delete"),
+ (
+ tr::controls::confirm::delete_message(),
+ "Are you sure you want to delete the recording?",
+ ),
+ (tr::controls::confirm::delete(), "Delete"),
+ (
+ tr::controls::pause::unconfirmed(),
+ "Capture state is unconfirmed. Use Stop.",
+ ),
+ (tr::controls::pause::resuming(), "Resuming recording…"),
+ (tr::controls::pause::pausing(), "Pausing recording…"),
+ (tr::controls::pause::resume(), "Resume recording"),
+ (tr::controls::pause::pause(), "Pause recording"),
+ (
+ tr::controls::low_storage(),
+ "Low storage. Cap will stop soon to save your recording.",
+ ),
+ (
+ tr::controls::disk_full_resume(),
+ "Not enough disk space to resume. Free up space and try again, or press Stop to save.",
+ ),
+ (tr::camera::issue::access_title(), "Camera access needed"),
+ (
+ tr::camera::issue::access_message(),
+ "Click to allow Cap to use your camera in System Settings.",
+ ),
+ (tr::camera::issue::unavailable_title(), "Camera unavailable"),
+ (
+ tr::camera::issue::not_found(),
+ "This camera is no longer available. Check that it is connected and allowed by system permissions.",
+ ),
+ (
+ tr::camera::issue::timeout(),
+ "No frames were received from this camera. It may be closed, disconnected, covered, or in use by another app.",
+ ),
+ (
+ tr::camera::issue::start_failed(),
+ "The system could not start this camera. It may be unavailable or in use by another app.",
+ ),
+ (
+ tr::camera::issue::invalid_format(),
+ "This camera did not report a usable capture format.",
+ ),
+ (
+ tr::camera::issue::generic(),
+ "The selected camera could not be started. Choose another camera or reconnect this one.",
+ ),
+ (tr::camera::effects::mirror_title(), "Mirror unavailable"),
+ (
+ tr::camera::effects::mirror_message(),
+ "Your camera preview is not mirrored.",
+ ),
+ (
+ tr::camera::effects::blur_title(),
+ "Background blur unavailable",
+ ),
+ (
+ tr::camera::effects::blur_message(),
+ "Your camera is unblurred.",
+ ),
+ (
+ tr::camera::effects::both_title(),
+ "Camera effects unavailable",
+ ),
+ (
+ tr::camera::effects::both_message(),
+ "Your camera is unblurred and not mirrored.",
+ ),
+ (tr::camera::waiting_title(), "Waiting for camera access"),
+ (tr::onboarding::modes::instant::title(), "Instant Mode"),
+ (
+ tr::onboarding::modes::instant::tagline(),
+ "Record & share in seconds",
+ ),
+ (
+ tr::onboarding::modes::instant::description(),
+ "Your recording uploads as you capture. Stop recording and instantly get a shareable link — no waiting.",
+ ),
+ (
+ tr::onboarding::modes::instant::feature_1(),
+ "Instant shareable link",
+ ),
+ (
+ tr::onboarding::modes::instant::feature_2(),
+ "Background uploading",
+ ),
+ (
+ tr::onboarding::modes::instant::feature_3(),
+ "AI transcription & summary",
+ ),
+ (
+ tr::onboarding::modes::instant::feature_4(),
+ "Browser-based playback",
+ ),
+ (tr::onboarding::modes::studio::title(), "Studio Mode"),
+ (
+ tr::onboarding::modes::studio::tagline(),
+ "Professional editing tools",
+ ),
+ (
+ tr::onboarding::modes::studio::description(),
+ "Record in full quality locally, then use the built-in editor to add backgrounds, padding, cursor effects, and more.",
+ ),
+ (
+ tr::onboarding::modes::studio::feature_1(),
+ "Full quality local recording",
+ ),
+ (
+ tr::onboarding::modes::studio::feature_2(),
+ "Built-in editor & effects",
+ ),
+ (
+ tr::onboarding::modes::studio::feature_3(),
+ "Custom backgrounds & padding",
+ ),
+ (
+ tr::onboarding::modes::studio::feature_4(),
+ "Export or share when ready",
+ ),
+ (
+ tr::onboarding::modes::screenshot::title(),
+ "Screenshot Mode",
+ ),
+ (
+ tr::onboarding::modes::screenshot::tagline(),
+ "Capture & beautify instantly",
+ ),
+ (
+ tr::onboarding::modes::screenshot::description(),
+ "Take screenshots with a single hotkey, add annotations and beautiful backgrounds, then share or copy instantly.",
+ ),
+ (
+ tr::onboarding::modes::screenshot::feature_1(),
+ "Instant hotkey capture",
+ ),
+ (
+ tr::onboarding::modes::screenshot::feature_2(),
+ "Annotation & drawing tools",
+ ),
+ (
+ tr::onboarding::modes::screenshot::feature_3(),
+ "Beautiful backgrounds",
+ ),
+ (
+ tr::onboarding::modes::screenshot::feature_4(),
+ "Copy, save, or share",
+ ),
+ (tr::onboarding::faq::free::question(), "Is Cap free to use?"),
+ (
+ tr::onboarding::faq::free::answer(),
+ "Cap is free for personal use. For teams and commercial use, check out our pricing plans.",
+ ),
+ (
+ tr::onboarding::faq::instant_vs_studio::question(),
+ "What's the difference between Instant and Studio?",
+ ),
+ (
+ tr::onboarding::faq::instant_vs_studio::answer(),
+ "Instant mode uploads as you record — stop recording and you'll have a shareable link immediately. Studio mode records locally in full quality, letting you edit with backgrounds, effects, and more before sharing.",
+ ),
+ (
+ tr::onboarding::faq::storage::question(),
+ "Where are my recordings stored?",
+ ),
+ (
+ tr::onboarding::faq::storage::answer(),
+ "All recordings are stored locally on your computer. In Instant mode, they're also uploaded to Cap's cloud for easy sharing. You can manage storage in Settings.",
+ ),
+ (
+ tr::onboarding::faq::shortcuts::question(),
+ "Can I change my shortcuts later?",
+ ),
+ (
+ tr::onboarding::faq::shortcuts::answer(),
+ "Head to Settings → Shortcuts at any time to customize all your keyboard shortcuts.",
+ ),
+ (
+ tr::onboarding::faq::sharing::question(),
+ "How does sharing work?",
+ ),
+ (
+ tr::onboarding::faq::sharing::answer(),
+ "In Instant mode, you get a shareable link automatically when you stop recording. In Studio mode, export your edited video and share via Cap's cloud or save locally.",
+ ),
+ (
+ tr::onboarding::error::save_progress(),
+ "Could not save onboarding progress. Please try again.",
+ ),
+ (
+ tr::onboarding::error::save_sound(),
+ "Could not save the sound preference.",
+ ),
+ (tr::onboarding::welcome::get_started(), "Get Started"),
+ (
+ tr::onboarding::welcome::click_or_press(),
+ "Click here, or press",
+ ),
+ (tr::onboarding::welcome::space_key(), "Space"),
+ (
+ tr::onboarding::welcome::tagline(),
+ "The open source screen sharing app for everyone.",
+ ),
+ (tr::onboarding::overview::title(), "One app, every workflow"),
+ (
+ tr::onboarding::overview::subtitle(),
+ "Whether you need speed, studio quality, or a quick screenshot — Cap has a mode for it.",
+ ),
+ (tr::onboarding::customize::title(), "Make Cap yours"),
+ (
+ tr::onboarding::customize::subtitle(),
+ "Customize everything from keyboard shortcuts to storage. Cap adapts to your workflow.",
+ ),
+ (tr::onboarding::toggle::title(), "Switch modes anytime"),
+ (
+ tr::onboarding::toggle::subtitle(),
+ "Toggle between modes with a single click from the main Cap window.",
+ ),
+ (tr::onboarding::faq::title(), "Frequently Asked Questions"),
+ (
+ tr::onboarding::faq::subtitle(),
+ "Everything you need to know to get started.",
+ ),
+ (
+ tr::onboarding::customize::shortcuts::title(),
+ "Keyboard Shortcuts",
+ ),
+ (
+ tr::onboarding::customize::shortcuts::description(),
+ "Global hotkeys for recording, screenshots, and switching modes",
+ ),
+ (tr::onboarding::customize::s3::title(), "Custom S3 Storage"),
+ (
+ tr::onboarding::customize::s3::description(),
+ "Connect your own S3-compatible bucket for full control over your recordings",
+ ),
+ (tr::onboarding::customize::domain::title(), "Custom Domain"),
+ (
+ tr::onboarding::customize::domain::description(),
+ "Use your own domain for shareable links instead of cap.so",
+ ),
+ (
+ tr::onboarding::customize::preferences::title(),
+ "Recording Preferences",
+ ),
+ (
+ tr::onboarding::customize::preferences::description(),
+ "FPS, quality, countdown timer, cursor effects, and more",
+ ),
+ (
+ tr::onboarding::customize::footer(),
+ "Change any of these at any time in Settings",
+ ),
+ (tr::onboarding::faq::pricing(), "View pricing plans"),
+ (tr::onboarding::faq::pricing_link(), "View pricing plans ↗"),
+ (tr::onboarding::nav::relaunch(), "Relaunch Cap"),
+ (tr::onboarding::nav::continue_to_cap(), "Continue to Cap"),
+ (tr::onboarding::nav::start(), "Start Using Cap"),
+ (tr::onboarding::nav::next(), "Continue"),
+ (tr::onboarding::nav::back(), "← Back"),
+ (
+ tr::onboarding::nav::permissions_needed(),
+ "Allow the required permissions to continue",
+ ),
+ (
+ tr::onboarding::nav::keyboard_hint(),
+ "Press Enter ↵ or use ← → arrow keys",
+ ),
+ (tr::onboarding::nav::skip(), "Skip the tour"),
+ (tr::onboarding::demo::start_recording(), "Start Recording"),
+ (tr::onboarding::demo::stopped(), "Stopped"),
+ (tr::onboarding::demo::link_ready(), "Link ready to share!"),
+ (tr::onboarding::demo::copied(), "Copied!"),
+ (tr::onboarding::demo::copy(), "Copy"),
+ (tr::onboarding::demo::editor(), "Cap Editor"),
+ (tr::onboarding::demo::export(), "Export"),
+ (tr::onboarding::demo::style(), "STYLE"),
+ (tr::onboarding::demo::background(), "BACKGROUND"),
+ (tr::onboarding::demo::export_complete(), "Export complete!"),
+ (tr::onboarding::demo::exporting(), "Exporting..."),
+ (tr::onboarding::demo::save(), "Save"),
+ (
+ tr::onboarding::demo::copied_to_clipboard(),
+ "Copied to clipboard",
+ ),
+ (tr::onboarding::demo::steps::record(), "Record"),
+ (tr::onboarding::demo::steps::stop(), "Stop"),
+ (tr::onboarding::demo::steps::share_link(), "Share link"),
+ (tr::onboarding::demo::steps::edit(), "Edit"),
+ (tr::onboarding::demo::steps::select_area(), "Select area"),
+ (tr::onboarding::demo::steps::beautify(), "Beautify"),
+ ];
+ for (translated, literal) in pairs {
+ assert_eq!(translated, literal);
+ }
+ use crate::main_window::Mode;
+ let assembled: &[(&str, String)] = &[
+ (
+ tr::main::mode::hover::instant(),
+ format!("{} mode", Mode::Instant.panel_title()),
+ ),
+ (
+ tr::main::mode::hover::studio(),
+ format!("{} mode", Mode::Studio.panel_title()),
+ ),
+ (
+ tr::main::mode::hover::screenshot(),
+ format!("{} mode", Mode::Screenshot.panel_title()),
+ ),
+ (
+ tr::main::mode::header::instant(),
+ format!("{} Mode", Mode::Instant.panel_title()),
+ ),
+ (
+ tr::main::mode::header::studio(),
+ format!("{} Mode", Mode::Studio.panel_title()),
+ ),
+ (
+ tr::main::mode::header::screenshot(),
+ format!("{} Mode", Mode::Screenshot.panel_title()),
+ ),
+ ];
+ for (translated, literal) in assembled {
+ assert_eq!(*translated, literal.as_str());
+ }
+ let mut access = Vec::new();
+ for noun in ["camera", "microphone"] {
+ access.push(format!(
+ "Cap can't use your {noun}. Turn it on in System Settings."
+ ));
+ access.push(format!("Cap needs your OK to use your {noun}."));
+ }
+ assert_eq!(
+ [
+ tr::main::device::access::camera_denied(),
+ tr::main::device::access::camera_needed(),
+ tr::main::device::access::microphone_denied(),
+ tr::main::device::access::microphone_needed(),
+ ],
+ [
+ access[0].as_str(),
+ access[1].as_str(),
+ access[2].as_str(),
+ access[3].as_str(),
+ ]
+ );
+ let plain_keys = KEYS.iter().filter(|key| is_main_surface_key(key)).count() - FORMATTED.len();
+ assert_eq!(
+ pairs.len() + assembled.len() + access.len(),
+ plain_keys,
+ "every plain key has a literal above"
+ );
+ for key in FORMATTED {
+ assert!(KEYS.contains(key), "{key}");
+ }
+}
+
+#[test]
+fn main_surface_messages_format_like_the_code_they_replaced() {
+ for count in [0, 3, 4, 8] {
+ assert_eq!(
+ tr::main::device::format::channels(count),
+ format!("{count} channels")
+ );
+ }
+ let format = "1920×1080 @ 30fps".to_string();
+ assert_eq!(
+ tr::main::device::format::available(&format),
+ format!("Available: {}", format)
+ );
+ let description = "48kHz Stereo".to_string();
+ assert_eq!(
+ Some(description.clone()).map(tr::main::device::format::available),
+ Some(description).map(|description| format!("Available: {description}"))
+ );
+ let error = "input disconnected".to_string();
+ assert_eq!(
+ tr::main::device::format::apply_failed(&error),
+ format!("Could not apply device format: {error}")
+ );
+ assert_eq!(
+ tr::main::device::format::current("Default"),
+ format!("Current: {}", "Default")
+ );
+ for clip_count in [2_u32, 3, 12] {
+ assert_eq!(
+ tr::main::library::clips(clip_count as usize),
+ format!("{clip_count} clips")
+ );
+ }
+ for remaining in [1_u32, 3, 10] {
+ assert_eq!(
+ tr::main::recording::starts_in(remaining),
+ format!("Recording starts in {remaining}")
+ );
+ }
+ for bytes in [0_u64, 549_755_813, 3_373_259_571, 1_073_741_824_000] {
+ let available = bytes as f64 / 1_073_741_824.0;
+ let shown = format!("{:.2}", available);
+ assert_eq!(
+ tr::main::storage::can_start(&shown),
+ format!(
+ "Only {available:.2} GB is available on your recording drive. Cap will stop automatically if storage gets too low, preserving your recording."
+ )
+ );
+ assert_eq!(
+ tr::main::storage::blocked(&shown),
+ format!(
+ "Only {available:.2} GB is available on your recording drive. Free up space so at least 512 MB is available before recording."
+ )
+ );
+ }
+ let error = "permission denied".to_string();
+ assert_eq!(
+ tr::main::storage::check_failed(&error),
+ format!("Could not check recording storage: {error}")
+ );
+}
diff --git a/apps/desktop-gpui/src/i18n/tests.rs b/apps/desktop-gpui/src/i18n/tests.rs
index 30f3ba98f..76671e228 100644
--- a/apps/desktop-gpui/src/i18n/tests.rs
+++ b/apps/desktop-gpui/src/i18n/tests.rs
@@ -425,7 +425,10 @@ fn english_matches_the_literals_it_replaced() {
}
let plain_keys = KEYS
.iter()
- .filter(|key| !key.starts_with(NEW_IN_THE_LANGUAGE_PICKER))
+ .filter(|key| {
+ !key.starts_with(NEW_IN_THE_LANGUAGE_PICKER)
+ && !super::surface_tests::is_main_surface_key(key)
+ })
.count()
- 3;
assert_eq!(
@@ -593,8 +596,9 @@ fn missing_glyph_width(cluster: &str, size: f32) -> f32 {
}
/// Every string with a `max_px` budget, in every catalog, measured with the
-/// bundled Geist Medium (the widest weight these labels use). Over 92% of the
-/// budget fails: the system UI font differs from Geist by a few percent.
+/// bundled Geist Medium (the widest weight these labels use). A translation
+/// over 92% of the budget fails (the system UI font differs from Geist by a
+/// few percent), unless English is already wider, which then is the limit.
#[test]
fn translations_fit_their_width_budgets() {
use cosmic_text::{
@@ -611,40 +615,46 @@ fn translations_fit_their_width_budgets() {
.family(Family::Name("Geist"))
.weight(Weight::MEDIUM);
+ let mut measure = |text: &str, size: f32| {
+ let mut buffer = Buffer::new(&mut system, Metrics::new(size, size * 1.25));
+ buffer.set_size(&mut system, None, None);
+ buffer.set_text(&mut system, text, &attrs, Shaping::Advanced);
+ buffer.shape_until_scroll(&mut system, false);
+ buffer
+ .layout_runs()
+ .map(|run| {
+ let mut width = 0.;
+ let mut missing_cluster = None;
+ for glyph in run.glyphs {
+ if glyph.glyph_id != 0 {
+ width += glyph.w;
+ } else if missing_cluster != Some((glyph.start, glyph.end)) {
+ // A shaped syllable can be several .notdef glyphs
+ // that all point at the same cluster.
+ missing_cluster = Some((glyph.start, glyph.end));
+ width += missing_glyph_width(&run.text[glyph.start..glyph.end], size);
+ }
+ }
+ width
+ })
+ .fold(0., f32::max)
+ };
+
let mut measured = 0;
let mut failures = Vec::new();
for fit in &FITS {
- for (locale, text) in Locale::ALL.iter().zip(fit.text) {
+ // English is what ships today; where it already runs past 92% the
+ // translations may not be any wider than it.
+ let limit = (fit.max_px * 0.92).max(measure(fit.text[0], fit.size));
+ for (locale, text) in Locale::ALL.iter().zip(fit.text).skip(1) {
if locale.code() == "pseudo" {
continue;
}
- let mut buffer = Buffer::new(&mut system, Metrics::new(fit.size, fit.size * 1.25));
- buffer.set_size(&mut system, None, None);
- buffer.set_text(&mut system, text, &attrs, Shaping::Advanced);
- buffer.shape_until_scroll(&mut system, false);
- let width = buffer
- .layout_runs()
- .map(|run| {
- let mut width = 0.;
- let mut missing_cluster = None;
- for glyph in run.glyphs {
- if glyph.glyph_id != 0 {
- width += glyph.w;
- } else if missing_cluster != Some((glyph.start, glyph.end)) {
- // A shaped syllable can be several .notdef glyphs
- // that all point at the same cluster.
- missing_cluster = Some((glyph.start, glyph.end));
- width +=
- missing_glyph_width(&run.text[glyph.start..glyph.end], fit.size);
- }
- }
- width
- })
- .fold(0., f32::max);
+ let width = measure(text, fit.size);
measured += 1;
- if width > fit.max_px * 0.92 {
+ if width > limit {
failures.push(format!(
- "{} `{}` {text:?}: {width:.1}px of {}px",
+ "{} `{}` {text:?}: {width:.1}px, limit {limit:.1}px of {}px",
locale.code(),
fit.key,
fit.max_px
diff --git a/apps/desktop-gpui/src/main_window.rs b/apps/desktop-gpui/src/main_window.rs
index 0f896b911..a4ce3ad19 100644
--- a/apps/desktop-gpui/src/main_window.rs
+++ b/apps/desktop-gpui/src/main_window.rs
@@ -14,6 +14,7 @@ use gpui::{
};
use std::{cell::Cell, rc::Rc};
+use crate::i18n::tr;
use crate::theme::LocaleFont as _;
use crate::{
MAIN_WINDOW_WIDTH, app_windows, devices,
@@ -55,7 +56,7 @@ fn remembered_camera(id: &recording::DeviceOrModelID, cameras: &[CameraOption])
recording::DeviceOrModelID::ModelID(model) => Some(model.clone()),
recording::DeviceOrModelID::DeviceID(_) => None,
},
- label: "Camera".to_string(),
+ label: tr::main::device::fallback_camera().to_string(),
best_format: None,
formats: Vec::new(),
})
@@ -156,20 +157,39 @@ impl Mode {
}
}
+ /// [`Self::panel_title`] in the UI language. `panel_title` stays English:
+ /// it names element ids and log fields.
+ fn display_name(self) -> &'static str {
+ match self {
+ Self::Instant => tr::main::mode::name::instant(),
+ Self::Studio => tr::main::mode::name::studio(),
+ Self::Screenshot => tr::main::mode::name::screenshot(),
+ }
+ }
+
+ /// `{name} mode`, the hover card heading, as one message per mode.
+ fn hover_title(self) -> &'static str {
+ match self {
+ Self::Instant => tr::main::mode::hover::instant(),
+ Self::Studio => tr::main::mode::hover::studio(),
+ Self::Screenshot => tr::main::mode::hover::screenshot(),
+ }
+ }
+
+ /// `{name} Mode`, under the mode pill, as one message per mode.
+ fn header_title(self) -> &'static str {
+ match self {
+ Self::Instant => tr::main::mode::header::instant(),
+ Self::Studio => tr::main::mode::header::studio(),
+ Self::Screenshot => tr::main::mode::header::screenshot(),
+ }
+ }
+
fn panel_description(self) -> &'static str {
match self {
- Self::Instant => {
- "Share instantly with a link. Your recording uploads as you record, so you \
- can share it immediately when you're done."
- }
- Self::Studio => {
- "Record locally in the highest quality for editing later. Perfect for \
- creating polished content with effects and transitions."
- }
- Self::Screenshot => {
- "Capture and annotate screenshots instantly. Great for quick captures, bug \
- reports, and visual communication."
- }
+ Self::Instant => tr::main::mode::info::instant(),
+ Self::Studio => tr::main::mode::info::studio(),
+ Self::Screenshot => tr::main::mode::info::screenshot(),
}
}
}
@@ -306,13 +326,9 @@ impl gpui::RenderOnce for ModeHoverCard {
let theme = self.theme;
let mode = self.mode;
let description = match mode {
- Mode::Instant => {
- "No rendering required — uploads on the fly so you can share the link the moment you stop."
- }
- Mode::Studio => {
- "Saves to your computer and opens the editor when you stop. Choose recording quality in settings."
- }
- Mode::Screenshot => "Capture and annotate stills.",
+ Mode::Instant => tr::main::mode::hover::instant_description(),
+ Mode::Studio => tr::main::mode::hover::studio_description(),
+ Mode::Screenshot => tr::main::mode::hover::screenshot_description(),
};
div()
.flex()
@@ -327,11 +343,7 @@ impl gpui::RenderOnce for ModeHoverCard {
.bg(theme.gray_12)
.text_color(theme.gray_1)
.shadow_lg()
- .child(
- div()
- .text_size(px(12.))
- .child(format!("{} mode", mode.panel_title())),
- )
+ .child(div().text_size(px(12.)).child(mode.hover_title()))
.child(
div()
.text_size(px(10.))
@@ -364,7 +376,7 @@ impl gpui::RenderOnce for ModeHoverCard {
style.text_color(theme.gray_1)
}),
)
- .child("Quality settings")
+ .child(tr::main::mode::hover::quality_settings())
.on_click(move |_, _, cx| {
cx.stop_propagation();
cx.defer(move |cx| app_windows::open_quality_settings(mode, cx));
@@ -392,6 +404,17 @@ impl TargetType {
}
}
+ /// [`Self::label`] in the UI language. `label` stays English: it names
+ /// element ids.
+ fn display_label(self) -> &'static str {
+ match self {
+ Self::Display => tr::main::target::display(),
+ Self::Window => tr::main::target::window(),
+ Self::Area => tr::main::target::area(),
+ Self::CameraOnly => tr::main::target::camera_only(),
+ }
+ }
+
fn icon(self) -> &'static str {
match self {
Self::Display => "icons/screen.svg",
@@ -535,19 +558,19 @@ impl DeviceFormat {
(Some(width), Some(height), Some(rate)) => {
format!("{width}×{height} @ {rate:.0}fps")
}
- _ => "Default".into(),
+ _ => tr::main::device::format::default().into(),
}
}
Self::Microphone(settings) => match (settings.sample_rate, settings.channels) {
(Some(rate), Some(channels)) => {
let channels = match channels {
- 1 => "Mono".into(),
- 2 => "Stereo".into(),
- count => format!("{count} channels"),
+ 1 => tr::main::device::format::mono().into(),
+ 2 => tr::main::device::format::stereo().into(),
+ count => tr::main::device::format::channels(usize::from(count)),
};
format!("{}kHz {channels}", rate as f32 / 1000.)
}
- _ => "Default".into(),
+ _ => tr::main::device::format::default().into(),
},
}
}
@@ -574,7 +597,7 @@ fn complete_format_request(
if save(&pending.target, pending.format) {
Ok(pending.format)
} else {
- Err("Could not save the device format preference. Try again.".to_string())
+ Err(tr::main::device::format::save_failed().to_string())
}
}))
}
@@ -603,17 +626,25 @@ impl DeviceMenu {
}
}
- fn title(self) -> &'static str {
+ /// Element ids; [`Self::title`] is the label.
+ fn id_name(self) -> &'static str {
match self {
Self::Camera => "Camera",
Self::Microphone => "Microphone",
}
}
+ fn title(self) -> &'static str {
+ match self {
+ Self::Camera => tr::main::device::camera(),
+ Self::Microphone => tr::main::device::microphone(),
+ }
+ }
+
fn none_label(self) -> &'static str {
match self {
- Self::Camera => "No Camera",
- Self::Microphone => "No Microphone",
+ Self::Camera => tr::main::device::no_camera(),
+ Self::Microphone => tr::main::device::no_microphone(),
}
}
@@ -626,10 +657,10 @@ impl DeviceMenu {
fn empty_message(self, searching: bool) -> &'static str {
match (self, searching) {
- (Self::Camera, false) => "No cameras found",
- (Self::Camera, true) => "No matching cameras",
- (Self::Microphone, false) => "No microphones found",
- (Self::Microphone, true) => "No matching microphones",
+ (Self::Camera, false) => tr::main::device::no_cameras(),
+ (Self::Camera, true) => tr::main::device::no_matching_cameras(),
+ (Self::Microphone, false) => tr::main::device::no_microphones(),
+ (Self::Microphone, true) => tr::main::device::no_matching_microphones(),
}
}
}
@@ -668,26 +699,22 @@ impl LibraryKind {
fn import_label(self) -> &'static str {
match self {
- Self::Recordings => "Import",
- Self::Screenshots => "Import image",
+ Self::Recordings => tr::main::library::import_recordings(),
+ Self::Screenshots => tr::main::library::import_screenshots(),
}
}
fn empty_title(self) -> &'static str {
match self {
- Self::Recordings => "No recordings yet",
- Self::Screenshots => "No screenshots yet",
+ Self::Recordings => tr::main::library::no_recordings(),
+ Self::Screenshots => tr::main::library::no_screenshots(),
}
}
fn empty_description(self) -> &'static str {
match self {
- Self::Recordings => {
- "Your screen recordings will appear here. Start recording to get started!"
- }
- Self::Screenshots => {
- "Your screenshots will appear here. Take a screenshot to get started!"
- }
+ Self::Recordings => tr::main::library::recordings_description(),
+ Self::Screenshots => tr::main::library::screenshots_description(),
}
}
@@ -700,15 +727,15 @@ impl LibraryKind {
fn view_all_label(self) -> &'static str {
match self {
- Self::Recordings => "View All Recordings",
- Self::Screenshots => "View All Screenshots",
+ Self::Recordings => tr::main::library::view_all_recordings(),
+ Self::Screenshots => tr::main::library::view_all_screenshots(),
}
}
fn no_match(self) -> &'static str {
match self {
- Self::Recordings => "No matching recordings",
- Self::Screenshots => "No matching screenshots",
+ Self::Recordings => tr::main::library::no_matching_recordings(),
+ Self::Screenshots => tr::main::library::no_matching_screenshots(),
}
}
}
@@ -922,9 +949,9 @@ impl MainWindow {
main.update(cx, |_, window, cx| {
window.prompt(
gpui::PromptLevel::Warning,
- "Low storage",
+ tr::main::storage::title(),
Some(&notice),
- &[gpui::PromptButton::cancel("OK")],
+ &[gpui::PromptButton::cancel(tr::common::ok())],
cx,
)
})
@@ -1052,7 +1079,7 @@ impl MainWindow {
prompt.error = Some(error.clone());
}
SignInOutcome::TimedOut if matches!(origin, SignInOrigin::Overlay(_)) => {
- prompt.error = Some("Sign in timed out. Try again.".into());
+ prompt.error = Some(tr::main::sign_in::timed_out().into());
}
_ => {}
}
@@ -1670,9 +1697,9 @@ impl MainWindow {
if !recover
&& !crate::platform::confirm_dialog(
"Cap",
- "Are you sure you want to delete this recording?",
- "Yes",
- "No",
+ tr::main::delete_recording_confirm(),
+ tr::common::yes(),
+ tr::common::no(),
false,
)
{
@@ -2198,7 +2225,7 @@ impl MainWindow {
}
if matches!(target, ScreenCaptureTarget::CameraOnly) && self.camera.is_none() {
self.session.update(cx, |session, cx| {
- session.error = Some("Camera-only recording requires a selected camera.".into());
+ session.error = Some(tr::main::error::camera_only_needs_camera().into());
cx.notify();
});
if editor_flow {
@@ -2260,9 +2287,7 @@ impl MainWindow {
|| self.pending_device_restore.microphone_name.is_some()
{
self.session.update(cx, |session, cx| {
- session.error = Some(
- "Recording devices are not ready. Open the recorder and try again.".into(),
- );
+ session.error = Some(tr::main::error::devices_not_ready().into());
cx.notify();
});
return;
@@ -2377,9 +2402,7 @@ impl MainWindow {
serde_json::Value::Bool(false),
)
{
- warning.error = Some(
- "Could not save your preference. Try again or leave the box unchecked.".into(),
- );
+ warning.error = Some(tr::main::mic_warning::save_failed().into());
self.microphone_warning = Some(warning);
cx.notify();
return;
@@ -2412,16 +2435,20 @@ impl MainWindow {
self.checking_storage = true;
let main = cx.global::<app_windows::AppWindows>().main;
cx.spawn(async move |this, cx| {
- let result = cx.background_executor().spawn(async {
- recording::available_recording_storage()
- }).await;
- if !this.update(cx, |this, cx| {
- if !this.recording_start_is_current(&permit, cx) {
- this.finish_recording_start(&permit);
- return false;
- }
- true
- }).unwrap_or(false) {
+ let result = cx
+ .background_executor()
+ .spawn(async { recording::available_recording_storage() })
+ .await;
+ if !this
+ .update(cx, |this, cx| {
+ if !this.recording_start_is_current(&permit, cx) {
+ this.finish_recording_start(&permit);
+ return false;
+ }
+ true
+ })
+ .unwrap_or(false)
+ {
return;
}
let storage = match result {
@@ -2434,59 +2461,76 @@ impl MainWindow {
}
this.finish_recording_start(&permit);
this.session.update(cx, |session, cx| {
- session.error = Some(format!("Could not check recording storage: {error}"));
+ session.error = Some(tr::main::storage::check_failed(&error));
cx.notify();
});
cx.defer(app_windows::show_main_window);
if this.session.read(cx).editor_recording_target().is_some() {
cx.defer(app_windows::abort_editor_recording_flow);
}
- }).ok();
+ })
+ .ok();
return;
}
};
let can_start = storage.status() != cap_utils::disk_space::DiskSpaceStatus::Exhausted;
- if storage.status() == cap_utils::disk_space::DiskSpaceStatus::Ok || acknowledged && can_start {
+ if storage.status() == cap_utils::disk_space::DiskSpaceStatus::Ok
+ || acknowledged && can_start
+ {
this.update(cx, |this, cx| {
if !this.recording_start_is_current(&permit, cx) {
this.finish_recording_start(&permit);
return;
}
cx.defer(move |cx| {
- let allowed = main.update(cx, |this, _, cx| {
- let allowed = this.recording_start_is_current(&permit, cx);
- this.finish_deep_link_start(&permit);
- allowed
- }).unwrap_or(false);
+ let allowed = main
+ .update(cx, |this, _, cx| {
+ let allowed = this.recording_start_is_current(&permit, cx);
+ this.finish_deep_link_start(&permit);
+ allowed
+ })
+ .unwrap_or(false);
if !allowed {
return;
}
app_windows::begin_recording(config, cx);
});
- }).ok();
+ })
+ .ok();
return;
}
- let available = storage.available_bytes as f64 / 1_073_741_824.0;
+ let available = format!("{:.2}", storage.available_bytes as f64 / 1_073_741_824.0);
let detail = if can_start {
- format!("Only {available:.2} GB is available on your recording drive. Cap will stop automatically if storage gets too low, preserving your recording.")
+ tr::main::storage::can_start(&available)
} else {
- format!("Only {available:.2} GB is available on your recording drive. Free up space so at least 512 MB is available before recording.")
+ tr::main::storage::blocked(&available)
};
let buttons = if can_start {
- vec![gpui::PromptButton::ok("Record anyway"), gpui::PromptButton::cancel("Go back")]
+ vec![
+ gpui::PromptButton::ok(tr::main::storage::record_anyway()),
+ gpui::PromptButton::cancel(tr::common::go_back()),
+ ]
} else {
- vec![gpui::PromptButton::cancel("OK")]
+ vec![gpui::PromptButton::cancel(tr::common::ok())]
};
let receiver = cx.update(|cx| {
if RecordingSession::global(cx).read(cx).phase != Phase::Idle
|| !permit.is_current(cx)
{
- return Err(anyhow::anyhow!("Recording preparation is no longer current."));
+ return Err(anyhow::anyhow!(
+ "Recording preparation is no longer current."
+ ));
}
app_windows::show_main_window(cx);
cx.activate(true);
main.update(cx, |_, window, cx| {
- window.prompt(gpui::PromptLevel::Warning, "Low storage", Some(&detail), &buttons, cx)
+ window.prompt(
+ gpui::PromptLevel::Warning,
+ tr::main::storage::title(),
+ Some(&detail),
+ &buttons,
+ cx,
+ )
})
});
let confirmed = match receiver {
@@ -2507,8 +2551,10 @@ impl MainWindow {
}
}
cx.notify();
- }).ok();
- }).detach();
+ })
+ .ok();
+ })
+ .detach();
}
/// `await commands.focusWindow(target.id)` at the end of
@@ -2604,11 +2650,11 @@ impl MainWindow {
return None;
}
Some(PillState::Access(if access.requesting(permission) {
- "Asking…"
+ tr::main::device::pill::asking()
} else if access.status(permission) == crate::permissions::OSPermissionStatus::Denied {
- "Allow in Settings"
+ tr::main::device::pill::allow_in_settings()
} else {
- "Allow"
+ tr::main::device::pill::allow()
}))
}
@@ -2814,13 +2860,18 @@ impl MainWindow {
.flex()
.flex_col()
.gap(px(12.))
- .child(div().text_size(px(15.)).text_color(theme.gray_12).child("No microphone detected"))
+ .child(
+ div()
+ .text_size(px(15.))
+ .text_color(theme.gray_12)
+ .child(tr::main::mic_warning::title()),
+ )
.child(
div()
.text_size(px(12.))
.line_height(px(18.))
.text_color(theme.gray_11)
- .child("This recording will not include your voice. Select a microphone, or continue without one."),
+ .child(tr::main::mic_warning::body()),
)
.child(
div()
@@ -2837,9 +2888,21 @@ impl MainWindow {
.border_1()
.border_color(if checked { theme.blue_9 } else { theme.gray_7 })
.bg(if checked { theme.blue_9 } else { theme.gray_2 })
- .when(checked, |this| this.child(svg().path("icons/check.svg").size(px(14.)).text_color(rgb(0xffffff)))),
+ .when(checked, |this| {
+ this.child(
+ svg()
+ .path("icons/check.svg")
+ .size(px(14.))
+ .text_color(rgb(0xffffff)),
+ )
+ }),
+ )
+ .child(
+ div()
+ .text_size(px(12.))
+ .text_color(theme.gray_11)
+ .child(tr::main::mic_warning::dont_show_again()),
)
- .child(div().text_size(px(12.)).text_color(theme.gray_11).child("Don't show again"))
.on_click(cx.listener(|this, _, _, cx| {
if let Some(warning) = &mut this.microphone_warning {
warning.dont_show_again = !warning.dont_show_again;
@@ -2848,21 +2911,46 @@ impl MainWindow {
cx.notify();
})),
)
- .when_some(error, |this, error| this.child(div().text_size(px(11.)).text_color(theme.red_9).child(error)))
+ .when_some(error, |this, error| {
+ this.child(
+ div()
+ .text_size(px(11.))
+ .text_color(theme.red_9)
+ .child(error),
+ )
+ })
.child(
div()
.flex()
.flex_col()
.gap(px(8.))
.child(
- ui::Button::plain(&theme, "confirm-without-microphone", ui::ButtonVariant::Blue, ui::ButtonSize::Lg)
- .label("Record without microphone")
- .on_click(cx.listener(|this, _, _, cx| this.confirm_microphone_warning(cx))),
+ ui::Button::plain(
+ &theme,
+ "confirm-without-microphone",
+ ui::ButtonVariant::Blue,
+ ui::ButtonSize::Lg,
+ )
+ .label(tr::main::mic_warning::record_without())
+ .on_click(
+ cx.listener(|this, _, _, cx| {
+ this.confirm_microphone_warning(cx)
+ }),
+ ),
)
.child(
- ui::Button::plain(&theme, "cancel-without-microphone", ui::ButtonVariant::Gray, ui::ButtonSize::Lg)
- .label("Go back")
- .on_click(cx.listener(|this, _, _, cx| this.dismiss_microphone_warning(cx))),
+ ui::Button::plain(
+ &theme,
+ "cancel-without-microphone",
+ ui::ButtonVariant::Gray,
+ ui::ButtonSize::Lg,
+ )
+ .label(tr::common::go_back())
+ .on_click(
+ cx.listener(|this, _, _, cx| {
+ this.dismiss_microphone_warning(cx)
+ }),
+ ),
),
),
)
@@ -2982,7 +3070,9 @@ impl MainWindow {
.rounded_full()
.cursor_pointer()
.hover(|style| style.bg(theme.gray_3))
- .tooltip(move |_, cx| ui::Tooltip::new(&theme, "Close").view(cx))
+ .tooltip(move |_, cx| {
+ ui::Tooltip::new(&theme, tr::common::close()).view(cx)
+ })
.child(
svg()
.path("icons/x.svg")
@@ -3007,9 +3097,9 @@ impl MainWindow {
.filter(|_| !pending);
let message = if pending {
- "Finish signing in to Cap in your browser. Cap comes back here and opens the recorder when you're done."
+ tr::main::sign_in::pending_message()
} else {
- "Instant Mode uploads while you record, so your shareable link is ready the moment you stop."
+ tr::main::sign_in::message()
};
let primary = if pending {
ui::Button::plain(
@@ -3018,7 +3108,7 @@ impl MainWindow {
ui::ButtonVariant::Blue,
ui::ButtonSize::Lg,
)
- .label("Open browser again")
+ .label(tr::main::sign_in::open_browser_again())
.full_width()
.on_click(cx.listener(|_, _, _, cx| {
SignIn::global(cx).update(cx, |sign_in, cx| sign_in.reopen(cx));
@@ -3031,7 +3121,7 @@ impl MainWindow {
ui::ButtonSize::Lg,
)
.icon("icons/user-round.svg")
- .label("Sign In")
+ .label(tr::main::sign_in::sign_in())
.full_width()
.on_click(cx.listener(|this, _, _, cx| {
let Some(prompt) = this.sign_in_prompt.as_mut() else {
@@ -3051,7 +3141,7 @@ impl MainWindow {
ui::ButtonVariant::Gray,
ui::ButtonSize::Lg,
)
- .label("Cancel")
+ .label(tr::common::cancel())
.full_width()
.on_click(cx.listener(|_, _, _, cx| {
SignIn::global(cx).update(cx, |sign_in, cx| sign_in.cancel(cx));
@@ -3069,7 +3159,7 @@ impl MainWindow {
ui::ButtonVariant::Gray,
ui::ButtonSize::Lg,
)
- .label("Use Studio")
+ .label(tr::main::sign_in::use_studio())
.full_width()
.on_click(cx.listener(|this, _, _, cx| {
let Some(prompt) = this.sign_in_prompt.take() else {
@@ -3088,7 +3178,7 @@ impl MainWindow {
ui::ButtonVariant::Gray,
ui::ButtonSize::Lg,
)
- .label("Not now")
+ .label(tr::main::sign_in::not_now())
.full_width()
.on_click(cx.listener(|this, _, _, cx| this.dismiss_sign_in_prompt(cx))),
),
@@ -3133,9 +3223,9 @@ impl MainWindow {
"sign-in-prompt",
("icons/instant.svg", theme.blue_3, theme.blue_9),
if pending {
- "Waiting for your browser"
+ tr::main::sign_in::waiting()
} else {
- "Sign in to use Instant Mode"
+ tr::main::sign_in::title()
},
Self::dismiss_sign_in_prompt,
body,
@@ -3154,7 +3244,11 @@ impl MainWindow {
.justify_center()
.gap(px(16.))
.p(px(24.))
- .child(div().text_size(px(18.)).child("Keep your capture clean"))
+ .child(
+ div()
+ .text_size(px(18.))
+ .child(tr::main::clean_capture::title()),
+ )
.child(
div()
.text_size(px(14.))
@@ -3172,7 +3266,7 @@ impl MainWindow {
.p(px(12.))
.bg(theme.gray_3)
.cursor_pointer()
- .child("Cancel")
+ .child(tr::common::cancel())
.on_click(
cx.listener(|_, _, _, cx| cx.defer(app_windows::cancel_clean_capture)),
),
@@ -3187,25 +3281,7 @@ impl MainWindow {
let theme = self.theme;
let pending = self.recovery_pending;
let duration = recording.estimated_duration_secs.round() as u64;
- let duration_label = if duration == 0 {
- String::new()
- } else if duration < 60 {
- format!(" · ~{duration}s")
- } else if duration.is_multiple_of(60) {
- format!(" · ~{}m", duration / 60)
- } else {
- format!(" · ~{}m {}s", duration / 60, duration % 60)
- };
- let segments = format!(
- "{} segment{}{}",
- recording.segment_count,
- if recording.segment_count == 1 {
- ""
- } else {
- "s"
- },
- duration_label
- );
+ let segments = recovery_segments_label(recording.segment_count as usize, duration);
div()
.absolute()
@@ -3235,7 +3311,7 @@ impl MainWindow {
.text_size(px(10.))
.font_weight(FontWeight::MEDIUM)
.text_color(theme.red_11)
- .child("Incomplete Recording"),
+ .child(tr::main::recovery::title()),
)
.child(
div()
@@ -3274,7 +3350,11 @@ impl MainWindow {
ui::ButtonVariant::Primary,
ui::ButtonSize::Xs,
)
- .label(if pending { "..." } else { "Recover" })
+ .label(if pending {
+ "..."
+ } else {
+ tr::main::recovery::recover()
+ })
.disabled(pending)
.on_click(cx.listener(
|this, _, window, cx| {
@@ -3289,7 +3369,7 @@ impl MainWindow {
ui::ButtonVariant::Gray,
ui::ButtonSize::Xs,
)
- .label("Discard")
+ .label(tr::main::recovery::discard())
.disabled(pending)
.on_click(cx.listener(
|this, _, window, cx| {
@@ -3472,12 +3552,12 @@ impl MainWindow {
// going to `text-gray-12` on hover.
let icon_button = |id: &'static str, path: &'static str, size: f32| {
let label = match id {
- "help" => "Help & Tour",
- "settings" => "Settings",
- "screenshots" => "Screenshots",
- "recordings" => "Recordings",
- "teleprompter" => "Teleprompter",
- "changelog" => "Changelog",
+ "help" => tr::main::header::help(),
+ "settings" => tr::main::header::settings(),
+ "screenshots" => tr::main::header::screenshots(),
+ "recordings" => tr::main::header::recordings(),
+ "teleprompter" => tr::main::header::teleprompter(),
+ "changelog" => tr::main::header::changelog(),
_ => unreachable!(),
};
div()
@@ -3650,7 +3730,11 @@ impl MainWindow {
} else {
"icons/copy.svg"
})
- .label(if copied { "Copied" } else { "Copy error" })
+ .label(if copied {
+ tr::common::copied()
+ } else {
+ tr::main::error::copy()
+ })
.full_width()
.on_click(cx.listener(
move |this, _, _, cx| {
@@ -3671,7 +3755,7 @@ impl MainWindow {
ui::ButtonVariant::Blue,
ui::ButtonSize::Lg,
)
- .label("Dismiss")
+ .label(tr::common::dismiss())
.full_width()
.on_click(cx.listener(|this, _, _, cx| this.dismiss_idle_error(cx))),
),
@@ -3682,7 +3766,7 @@ impl MainWindow {
self.render_modal(
"recording-error-panel",
("icons/triangle-alert.svg", theme.red_3, theme.red_9),
- "Something went wrong",
+ tr::main::error::title(),
Self::dismiss_idle_error,
body,
cx,
@@ -3763,9 +3847,9 @@ impl MainWindow {
.when_some(countdown, |this, remaining| {
this.child(div().mb(px(16.)).text_size(px(18.)).text_center().child(
if remaining == 0 {
- "Starting...".to_string()
+ tr::main::recording::starting().to_string()
} else {
- format!("Recording starts in {remaining}")
+ tr::main::recording::starts_in(remaining)
},
))
})
@@ -3788,7 +3872,7 @@ impl MainWindow {
.flex_col()
.gap(px(8.))
.text_size(px(12.))
- .child("Recording paused. Cap will hide before resuming.")
+ .child(tr::main::recording::paused_notice())
.child(
div()
.id("resume-clean-recording")
@@ -3801,7 +3885,7 @@ impl MainWindow {
.border_1()
.border_color(theme.gray_5)
.bg(theme.gray_3)
- .child("Resume")
+ .child(tr::main::recording::resume())
.on_click(cx.listener(|this, _, _, cx| {
#[cfg(target_os = "linux")]
{
@@ -3854,10 +3938,10 @@ impl MainWindow {
.text_color(gpui::white()),
)
.child(match phase {
- Phase::Starting if countdown.is_some() => "Cancel Recording",
- Phase::Starting => "Starting...",
- Phase::Stopping => "Stopping...",
- _ => "Stop Recording",
+ Phase::Starting if countdown.is_some() => tr::main::recording::cancel(),
+ Phase::Starting => tr::main::recording::starting(),
+ Phase::Stopping => tr::main::recording::stopping(),
+ _ => tr::main::recording::stop(),
}),
)
}
@@ -3877,7 +3961,7 @@ impl MainWindow {
.text_size(px(12.))
.font_weight(FontWeight::MEDIUM)
.text_color(theme.gray_11)
- .child("Recording Modes")
+ .child(tr::main::mode::info::title())
.into_any_element(),
Panel::Library(kind) => self.render_library_header(kind, cx).into_any_element(),
Panel::Device(_) if self.device_format_target.is_some() => div()
@@ -3932,7 +4016,7 @@ impl MainWindow {
div()
.font_weight(FontWeight::MEDIUM)
.text_color(theme.gray_12)
- .child("Back"),
+ .child(tr::common::back()),
)
.hover(move |style| style.bg(glass_hover(theme)))
.active(move |style| style.bg(glass_press(theme)))
@@ -4079,7 +4163,7 @@ impl MainWindow {
/// know, which is that Escape clears the filter before it closes the panel.
fn render_search_field(&self, cx: &mut Context<Self>) -> gpui::Div {
self.search_input
- .update(cx, |input, _| input.set_placeholder("Search"));
+ .update(cx, |input, _| input.set_placeholder(tr::common::search()));
div().flex().flex_1().min_w_0().child(ui::TextInput::search(
&self.theme,
@@ -4519,7 +4603,7 @@ impl MainWindow {
.text_size(px(10.))
.font_weight(FontWeight::MEDIUM)
.text_color(gpui::white())
- .child("Importing"),
+ .child(tr::main::library::importing()),
),
)
.child(
@@ -4726,7 +4810,10 @@ impl MainWindow {
if let Err(error) = crate::platform::copy_image_to_clipboard(&png, cx) {
tracing::warn!("copying screenshot failed: {error}");
cx.spawn(async move |_| {
- crate::platform::alert_dialog("Could not copy screenshot", &error);
+ crate::platform::alert_dialog(
+ tr::main::library::copy_screenshot_failed(),
+ &error,
+ );
})
.detach();
}
@@ -4846,7 +4933,7 @@ impl MainWindow {
.text_size(px(10.))
.font_weight(FontWeight::MEDIUM)
.text_color(gpui::white())
- .child(format!("{clip_count} clips")),
+ .child(tr::main::library::clips(clip_count as usize)),
)
}),
)
@@ -4889,9 +4976,9 @@ impl MainWindow {
cx.spawn_in(window, async move |this, cx| {
if !crate::platform::confirm_dialog(
"Cap",
- "Are you sure you want to delete this recording?",
- "Yes",
- "No",
+ tr::main::delete_recording_confirm(),
+ tr::common::yes(),
+ tr::common::no(),
false,
) {
return;
@@ -4923,9 +5010,9 @@ impl MainWindow {
cx.spawn_in(window, async move |this, cx| {
if !crate::platform::confirm_dialog(
"Cap",
- "Are you sure you want to delete this screenshot?",
- "Yes",
- "No",
+ tr::main::delete_screenshot_confirm(),
+ tr::common::yes(),
+ tr::common::no(),
false,
) {
return;
@@ -5025,7 +5112,7 @@ impl MainWindow {
.w_full()
.text_size(px(14.))
.text_color(theme.gray_11)
- .child("Loading..."),
+ .child(tr::common::loading()),
);
}
@@ -5035,7 +5122,7 @@ impl MainWindow {
// how you turn the device off, not a search result.
let mut rows = vec![
self.render_device_list_row(
- SharedString::from(format!("{}-none", menu.title())),
+ SharedString::from(format!("{}-none", menu.id_name())),
"icons/circle-x.svg",
menu.none_label().to_string(),
None,
@@ -5097,7 +5184,7 @@ impl MainWindow {
.map(|settings| DeviceFormat::Camera(settings).label())
} else {
camera.best_format.map(|format| {
- format!("Available: {}", format.describe())
+ tr::main::device::format::available(format.describe())
})
},
selected,
@@ -5156,8 +5243,7 @@ impl MainWindow {
DeviceFormat::Microphone(settings).label()
})
} else {
- mic.describe()
- .map(|description| format!("Available: {description}"))
+ mic.describe().map(tr::main::device::format::available)
},
selected,
selected.then(|| {
@@ -5262,9 +5348,8 @@ impl MainWindow {
&& let Some(DeviceFormatTarget::Camera(camera)) = &this.device_format_target
&& !this.devices.update_camera_formats(camera, formats)
{
- this.device_formats = Some(Err(
- "Camera changed or disconnected. Reopen its format settings.".into(),
- ));
+ this.device_formats =
+ Some(Err(tr::main::device::format::camera_changed().into()));
cx.notify();
return;
}
@@ -5361,7 +5446,7 @@ impl MainWindow {
Err(error) => {
self.device_format_notice = Some(error.clone());
self.session.update(cx, |session, cx| {
- session.error = Some(format!("Could not apply device format: {error}"));
+ session.error = Some(tr::main::device::format::apply_failed(&error));
cx.notify();
});
}
@@ -5379,7 +5464,7 @@ impl MainWindow {
self.device_format_value = Some(format);
self.device_format_notice = None;
} else {
- let error = "Could not save the device format preference. Try again.".to_string();
+ let error = tr::main::device::format::save_failed().to_string();
self.device_format_notice = Some(error.clone());
self.session.update(cx, |session, cx| {
session.error = Some(error);
@@ -5414,7 +5499,7 @@ impl MainWindow {
.text_size(px(12.))
.text_color(theme.gray_11)
.pb(px(8.))
- .child("Preferred format"),
+ .child(tr::main::device::format::preferred()),
)
.when_some(applied, |list, format| {
list.child(
@@ -5422,11 +5507,11 @@ impl MainWindow {
.text_size(px(12.))
.text_color(theme.gray_11)
.pb(px(8.))
- .child(format!("Current: {}", format.label())),
+ .child(tr::main::device::format::current(format.label())),
)
});
let list = match &self.device_formats {
- None => list.child(self.render_empty_state("Loading formats...")),
+ None => list.child(self.render_empty_state(tr::main::device::format::loading())),
Some(Err(error)) => list.child(self.render_empty_state(error.clone())),
Some(Ok(formats)) => {
list.children(formats.iter().enumerate().map(|(index, format)| {
@@ -5444,7 +5529,7 @@ impl MainWindow {
}
};
list.when(self.device_format_pending.is_some(), |list| {
- list.child(self.render_empty_state("Applying format..."))
+ list.child(self.render_empty_state(tr::main::device::format::applying()))
})
.when_some(self.device_format_notice.as_ref(), |list, notice| {
list.child(self.render_empty_state(notice.clone()))
@@ -5517,7 +5602,7 @@ impl MainWindow {
.w_full()
.text_size(px(14.))
.text_color(theme.gray_11)
- .child("Loading..."),
+ .child(tr::common::loading()),
);
}
@@ -5598,10 +5683,10 @@ impl MainWindow {
if cards.is_empty() {
return grid.child(
self.render_empty_state(match (target, self.search.is_empty()) {
- (TargetType::Display, true) => "No displays found",
- (TargetType::Display, false) => "No matching displays",
- (_, true) => "No windows found",
- (_, false) => "No matching windows",
+ (TargetType::Display, true) => tr::main::target::no_displays(),
+ (TargetType::Display, false) => tr::main::target::no_matching_displays(),
+ (_, true) => tr::main::target::no_windows(),
+ (_, false) => tr::main::target::no_matching_windows(),
}),
);
}
@@ -5761,7 +5846,7 @@ impl MainWindow {
} else {
theme.gray_12
})
- .child(mode.panel_title()),
+ .child(mode.display_name()),
)
.child(
div()
@@ -5797,17 +5882,17 @@ impl MainWindow {
DeviceMenu::Camera => "camera",
DeviceMenu::Microphone => "microphone",
};
- let message = if denied {
- format!("Cap can't use your {noun}. Turn it on in System Settings.")
- } else if requesting {
- "Choose Allow in the macOS prompt.".to_string()
- } else {
- format!("Cap needs your OK to use your {noun}.")
+ let message = match (menu, denied, requesting) {
+ (DeviceMenu::Camera, true, _) => tr::main::device::access::camera_denied(),
+ (DeviceMenu::Microphone, true, _) => tr::main::device::access::microphone_denied(),
+ (_, false, true) => tr::common::choose_allow_prompt(),
+ (DeviceMenu::Camera, false, false) => tr::main::device::access::camera_needed(),
+ (DeviceMenu::Microphone, false, false) => tr::main::device::access::microphone_needed(),
};
let label = if denied {
- "Open System Settings"
+ tr::main::device::access::open_system_settings()
} else if requesting {
- "Asking…"
+ tr::main::device::pill::asking()
} else {
crate::media_access::action_label(access.status(permission))
};
@@ -5992,12 +6077,12 @@ impl MainWindow {
.flex()
.flex_col()
.gap(px(4.))
- .child(div().text_size(px(13.)).child("Record a new clip"))
+ .child(div().text_size(px(13.)).child(tr::main::clip::record_new()))
.child(
div()
.text_size(px(10.))
.text_color(self.theme.gray_11)
- .child("Add to your current project"),
+ .child(tr::main::clip::add_to_project()),
),
)
}),
@@ -6014,7 +6099,7 @@ impl MainWindow {
.text_size(px(9.))
.line_height(px(11.))
.text_color(self.theme.gray_11)
- .child(format!("{} Mode", self.effective_mode(cx).panel_title())),
+ .child(self.effective_mode(cx).header_title()),
),
)
}
@@ -6043,7 +6128,7 @@ impl MainWindow {
.border_color(theme.body_border(5))
.bg(theme.body_fill(3))
.text_color(theme.gray_12)
- .child("Personal")
+ .child(tr::main::plan::personal())
.hover(|style| style.bg(theme.body_hover_fill(5)))
.on_click(|_, _, cx| {
cx.open_url(crate::auth::PRICING_URL);
@@ -6052,7 +6137,7 @@ impl MainWindow {
.bg(theme.blue_9)
.text_color(gpui::white())
.child(if self.plan == PlanBadge::Commercial {
- "Commercial"
+ tr::main::plan::commercial()
} else {
"Pro"
}),
@@ -6229,7 +6314,9 @@ impl MainWindow {
div()
.id("mode-info")
.tab_index(0)
- .tooltip(move |_, cx| ui::Tooltip::new(&theme, "Recording mode info").view(cx))
+ .tooltip(move |_, cx| {
+ ui::Tooltip::new(&theme, tr::main::mode::info_tooltip()).view(cx)
+ })
.tooltip_show_delay(ui::TOOLTIP_SHOW_DELAY)
.absolute()
.left(px(-6.))
@@ -6273,7 +6360,7 @@ impl MainWindow {
.text_size(px(10.))
.line_height(px(14.))
.text_color(self.theme.gray_11)
- .child("Choose a capture source"),
+ .child(tr::main::target::heading()),
)
.child(
div()
@@ -6350,8 +6437,8 @@ impl MainWindow {
ui::Tooltip::new(
&theme,
match target {
- TargetType::Display => "Choose a display",
- TargetType::Window => "Choose a window",
+ TargetType::Display => tr::main::target::choose_display(),
+ TargetType::Window => tr::main::target::choose_window(),
_ => unreachable!(),
},
)
@@ -6437,7 +6524,7 @@ impl MainWindow {
.text_size(px(12.))
.line_height(px(16.))
.text_color(label_color)
- .child(target.label()),
+ .child(target.display_label()),
)
}
@@ -6454,7 +6541,7 @@ impl MainWindow {
.text_size(px(10.))
.line_height(px(14.))
.text_color(self.theme.gray_11)
- .child("Choose your camera and microphone"),
+ .child(tr::main::device::heading()),
)
.child(
div().flex().flex_col().child(
@@ -6464,7 +6551,7 @@ impl MainWindow {
self.camera
.as_ref()
.map(|camera| camera.label.clone())
- .unwrap_or_else(|| "No Camera".into()),
+ .unwrap_or_else(|| tr::main::device::no_camera().into()),
if self.camera.is_some()
&& let Some(pill) = self.access_pill(OSPermission::Camera, cx)
{
@@ -6503,7 +6590,7 @@ impl MainWindow {
self.microphone
.as_ref()
.map(|mic| mic.name.clone())
- .unwrap_or_else(|| "No Microphone".into()),
+ .unwrap_or_else(|| tr::main::device::no_microphone().into()),
if self.microphone.is_some()
&& let Some(pill) = self.access_pill(OSPermission::Microphone, cx)
{
@@ -6540,9 +6627,9 @@ impl MainWindow {
"system-audio-row",
"icons/screen.svg",
if self.system_audio {
- "Record System Audio".into()
+ tr::main::device::system_audio_on().into()
} else {
- "No System Audio".into()
+ tr::main::device::system_audio_off().into()
},
if self.system_audio {
PillState::On
@@ -6721,12 +6808,20 @@ enum PillState {
impl PillState {
fn render(self, theme: Theme) -> impl IntoElement {
let (bg, fg, text) = match self {
- Self::On => (Hsla::from(theme.blue_9), gpui::white(), "On"),
- Self::Off => (theme.body_fill(5), Hsla::from(theme.gray_11), "Off"),
+ Self::On => (
+ Hsla::from(theme.blue_9),
+ gpui::white(),
+ tr::main::device::pill::on(),
+ ),
+ Self::Off => (
+ theme.body_fill(5),
+ Hsla::from(theme.gray_11),
+ tr::main::device::pill::off(),
+ ),
Self::Disconnected => (
theme.body_fill(5),
Hsla::from(theme.gray_11),
- "Not connected",
+ tr::main::device::pill::not_connected(),
),
Self::Access(label) => (Hsla::from(theme.amber_3), Hsla::from(theme.amber_11), label),
};
@@ -6748,6 +6843,21 @@ impl PillState {
}
}
+/// The recovery toast's `3 segments · ~2m 5s` line, one message per shape so
+/// each language can order and pluralize it.
+fn recovery_segments_label(count: usize, duration: u64) -> String {
+ let duration = if duration == 0 {
+ return tr::main::recovery::segments(count);
+ } else if duration < 60 {
+ tr::main::recovery::duration_seconds(duration)
+ } else if duration.is_multiple_of(60) {
+ tr::main::recovery::duration_minutes(duration / 60)
+ } else {
+ tr::main::recovery::duration_minutes_seconds(duration / 60, duration % 60)
+ };
+ tr::main::recovery::segments_with_duration(count, duration)
+}
+
const ERROR_TEXT_MAX_HEIGHT: f32 = 132.;
fn recording_error_text(error: String) -> impl IntoElement + Styled {
@@ -7196,3 +7306,39 @@ mod recording_error_panel_tests {
}
}
}
+
+#[cfg(test)]
+mod recovery_label_tests {
+ use super::recovery_segments_label;
+
+ fn replaced(segment_count: usize, duration: u64) -> String {
+ let duration_label = if duration == 0 {
+ String::new()
+ } else if duration < 60 {
+ format!(" · ~{duration}s")
+ } else if duration.is_multiple_of(60) {
+ format!(" · ~{}m", duration / 60)
+ } else {
+ format!(" · ~{}m {}s", duration / 60, duration % 60)
+ };
+ format!(
+ "{} segment{}{}",
+ segment_count,
+ if segment_count == 1 { "" } else { "s" },
+ duration_label
+ )
+ }
+
+ #[test]
+ fn english_matches_the_assembled_label() {
+ for count in [0, 1, 2, 7] {
+ for duration in [0, 1, 45, 59, 60, 61, 125, 180, 3_599, 3_600] {
+ assert_eq!(
+ recovery_segments_label(count, duration),
+ replaced(count, duration),
+ "{count} segments, {duration}s"
+ );
+ }
+ }
+ }
+}
diff --git a/apps/desktop-gpui/src/media_access.rs b/apps/desktop-gpui/src/media_access.rs
index 7d337e5c1..947ee02bd 100644
--- a/apps/desktop-gpui/src/media_access.rs
+++ b/apps/desktop-gpui/src/media_access.rs
@@ -164,7 +164,7 @@ impl MediaAccess {
pub fn action_label(status: OSPermissionStatus) -> &'static str {
match status {
- OSPermissionStatus::Denied => "Turn on in Settings",
- _ => "Allow access",
+ OSPermissionStatus::Denied => crate::i18n::tr::main::device::access::turn_on_in_settings(),
+ _ => crate::i18n::tr::main::device::access::allow_access(),
}
}
diff --git a/apps/desktop-gpui/src/onboarding_window.rs b/apps/desktop-gpui/src/onboarding_window.rs
index f3ee4e889..0268f6d00 100644
--- a/apps/desktop-gpui/src/onboarding_window.rs
+++ b/apps/desktop-gpui/src/onboarding_window.rs
@@ -7,6 +7,7 @@ use gpui::{
linear_gradient, prelude::FluentBuilder, px, relative, rgb, rgba, svg,
};
+use crate::i18n::tr;
use crate::theme::LocaleFont as _;
use crate::{
main_window::Mode,
@@ -176,75 +177,75 @@ impl Step {
struct ModeDetail {
mode: Mode,
- title: &'static str,
- tagline: &'static str,
- description: &'static str,
+ title: fn() -> &'static str,
+ tagline: fn() -> &'static str,
+ description: fn() -> &'static str,
icon: &'static str,
- features: [&'static str; 4],
+ features: [fn() -> &'static str; 4],
}
const MODES: [ModeDetail; 3] = [
ModeDetail {
mode: Mode::Instant,
- title: "Instant Mode",
- tagline: "Record & share in seconds",
- description: "Your recording uploads as you capture. Stop recording and instantly get a shareable link — no waiting.",
+ title: tr::onboarding::modes::instant::title,
+ tagline: tr::onboarding::modes::instant::tagline,
+ description: tr::onboarding::modes::instant::description,
icon: "icons/instant.svg",
features: [
- "Instant shareable link",
- "Background uploading",
- "AI transcription & summary",
- "Browser-based playback",
+ tr::onboarding::modes::instant::feature_1,
+ tr::onboarding::modes::instant::feature_2,
+ tr::onboarding::modes::instant::feature_3,
+ tr::onboarding::modes::instant::feature_4,
],
},
ModeDetail {
mode: Mode::Studio,
- title: "Studio Mode",
- tagline: "Professional editing tools",
- description: "Record in full quality locally, then use the built-in editor to add backgrounds, padding, cursor effects, and more.",
+ title: tr::onboarding::modes::studio::title,
+ tagline: tr::onboarding::modes::studio::tagline,
+ description: tr::onboarding::modes::studio::description,
icon: "icons/film-cut.svg",
features: [
- "Full quality local recording",
- "Built-in editor & effects",
- "Custom backgrounds & padding",
- "Export or share when ready",
+ tr::onboarding::modes::studio::feature_1,
+ tr::onboarding::modes::studio::feature_2,
+ tr::onboarding::modes::studio::feature_3,
+ tr::onboarding::modes::studio::feature_4,
],
},
ModeDetail {
mode: Mode::Screenshot,
- title: "Screenshot Mode",
- tagline: "Capture & beautify instantly",
- description: "Take screenshots with a single hotkey, add annotations and beautiful backgrounds, then share or copy instantly.",
+ title: tr::onboarding::modes::screenshot::title,
+ tagline: tr::onboarding::modes::screenshot::tagline,
+ description: tr::onboarding::modes::screenshot::description,
icon: "icons/screenshot.svg",
features: [
- "Instant hotkey capture",
- "Annotation & drawing tools",
- "Beautiful backgrounds",
- "Copy, save, or share",
+ tr::onboarding::modes::screenshot::feature_1,
+ tr::onboarding::modes::screenshot::feature_2,
+ tr::onboarding::modes::screenshot::feature_3,
+ tr::onboarding::modes::screenshot::feature_4,
],
},
];
-const FAQ: [(&str, &str); 5] = [
+const FAQ: [(fn() -> &'static str, fn() -> &'static str); 5] = [
(
- "Is Cap free to use?",
- "Cap is free for personal use. For teams and commercial use, check out our pricing plans.",
+ tr::onboarding::faq::free::question,
+ tr::onboarding::faq::free::answer,
),
(
- "What's the difference between Instant and Studio?",
- "Instant mode uploads as you record — stop recording and you'll have a shareable link immediately. Studio mode records locally in full quality, letting you edit with backgrounds, effects, and more before sharing.",
+ tr::onboarding::faq::instant_vs_studio::question,
+ tr::onboarding::faq::instant_vs_studio::answer,
),
(
- "Where are my recordings stored?",
- "All recordings are stored locally on your computer. In Instant mode, they're also uploaded to Cap's cloud for easy sharing. You can manage storage in Settings.",
+ tr::onboarding::faq::storage::question,
+ tr::onboarding::faq::storage::answer,
),
(
- "Can I change my shortcuts later?",
- "Head to Settings → Shortcuts at any time to customize all your keyboard shortcuts.",
+ tr::onboarding::faq::shortcuts::question,
+ tr::onboarding::faq::shortcuts::answer,
),
(
- "How does sharing work?",
- "In Instant mode, you get a shareable link automatically when you stop recording. In Studio mode, export your edited video and share via Cap's cloud or save locally.",
+ tr::onboarding::faq::sharing::question,
+ tr::onboarding::faq::sharing::answer,
),
];
@@ -478,7 +479,7 @@ impl OnboardingWindow {
return;
}
if !store::set_has_completed_onboarding(true) || !store::set_has_completed_startup(true) {
- self.error = Some("Could not save onboarding progress. Please try again.".into());
+ self.error = Some(tr::onboarding::error::save_progress().into());
cx.notify();
return;
}
@@ -501,7 +502,7 @@ impl OnboardingWindow {
return;
}
if !store::set_has_completed_startup(true) {
- self.error = Some("Could not save onboarding progress. Please try again.".into());
+ self.error = Some(tr::onboarding::error::save_progress().into());
cx.notify();
return;
}
@@ -681,7 +682,7 @@ impl OnboardingWindow {
"isMuted",
serde_json::Value::Bool(self.muted),
) {
- self.error = Some("Could not save the sound preference.".into());
+ self.error = Some(tr::onboarding::error::save_sound().into());
}
cx.notify();
}
@@ -1234,7 +1235,7 @@ impl OnboardingWindow {
)),
)
.child(
- copy("Get Started", 16., ink)
+ copy(tr::onboarding::welcome::get_started(), 16., ink)
.line_height(px(20.))
.font_weight(FontWeight::MEDIUM),
)
@@ -1245,12 +1246,12 @@ impl OnboardingWindow {
.justify_center()
.gap(px(4.))
.child(
- copy("Click here, or press", 11., ink.opacity(0.55))
+ copy(tr::onboarding::welcome::click_or_press(), 11., ink.opacity(0.55))
.font_weight(FontWeight::NORMAL)
.line_height(px(14.)),
)
.child(
- copy("Space", 10., ink.opacity(0.7))
+ copy(tr::onboarding::welcome::space_key(), 10., ink.opacity(0.7))
.font_weight(FontWeight::MEDIUM)
.line_height(px(14.))
.px(px(4.))
@@ -1290,7 +1291,7 @@ impl OnboardingWindow {
)
.child(
copy(
- "The open source screen sharing app for everyone.",
+ tr::onboarding::welcome::tagline(),
22.,
ink.opacity(0.75),
)
@@ -1342,13 +1343,13 @@ impl OnboardingWindow {
fn render_overview(&self) -> AnyElement {
let theme = self.theme;
div().flex().flex_col().items_center().justify_center().min_h_full().px(px(40.)).gap(px(32.))
- .child(self.heading("One app, every workflow", "Whether you need speed, studio quality, or a quick screenshot — Cap has a mode for it."))
+ .child(self.heading(tr::onboarding::overview::title(), tr::onboarding::overview::subtitle()))
.child(div().flex().gap(px(16.)).w_full().max_w(px(540.)).children(MODES.iter().enumerate().map(|(index, mode)| {
let paper = stage::Paper::new(&theme);
let card = self.paper_card().flex_1().min_w_0().flex().flex_col().items_center().gap(px(10.)).px(px(20.)).pt(px(22.)).pb(px(24.))
.child(crate::doodle::doodle(mode_doodle(mode.mode), paper.palette(), self.step_at + Duration::from_millis(index as u64 * 180), !self.animated, 96., 84.))
- .child(copy(mode.title, 15., paper.ink).font_weight(FontWeight::MEDIUM).text_center().mt(px(4.)))
- .child(copy(mode.tagline, 12., paper.soft).font_weight(FontWeight::NORMAL).line_height(px(16.)).text_center());
+ .child(copy((mode.title)(), 15., paper.ink).font_weight(FontWeight::MEDIUM).text_center().mt(px(4.)))
+ .child(copy((mode.tagline)(), 12., paper.soft).font_weight(FontWeight::NORMAL).line_height(px(16.)).text_center());
if !self.animated { return card.into_any_element(); }
card.with_animation(("overview-card", index), Animation::new(Duration::from_millis(700 + index as u64 * 100)),
|el, t| el.relative().top(px(16. * (1. - ease(t)))).opacity(ease(t))).into_any_element()
@@ -1391,17 +1392,17 @@ impl OnboardingWindow {
.flex_col()
.gap(px(3.))
.child(
- copy(mode.title, 20., paper.ink)
+ copy((mode.title)(), 20., paper.ink)
.font_weight(FontWeight::MEDIUM),
)
.child(
- copy(mode.tagline, 12., paper.soft)
+ copy((mode.tagline)(), 12., paper.soft)
.font_weight(FontWeight::NORMAL),
),
),
)
.child(
- copy(mode.description, 13., paper.soft)
+ copy((mode.description)(), 13., paper.soft)
.font_weight(FontWeight::NORMAL)
.line_height(px(20.)),
)
@@ -1460,8 +1461,8 @@ impl OnboardingWindow {
.px(px(48.))
.gap(px(32.))
.child(self.heading(
- "Switch modes anytime",
- "Toggle between modes with a single click from the main Cap window.",
+ tr::onboarding::toggle::title(),
+ tr::onboarding::toggle::subtitle(),
))
.child(
div()
@@ -1515,7 +1516,7 @@ impl OnboardingWindow {
.child(div().flex().gap(px(24.)).px(px(16.)).children(
MODES.iter().enumerate().map(|(index, mode)| {
copy(
- mode.title,
+ (mode.title)(),
14.,
if active == index {
theme.gray_12
@@ -1540,18 +1541,18 @@ impl OnboardingWindow {
fn render_shortcuts(&self) -> AnyElement {
let theme = self.theme;
div().flex().flex_col().items_center().justify_center().min_h_full().px(px(48.)).gap(px(24.))
- .child(self.heading("Make Cap yours", "Customize everything from keyboard shortcuts to storage. Cap adapts to your workflow."))
+ .child(self.heading(tr::onboarding::customize::title(), tr::onboarding::customize::subtitle()))
.child(div().flex().flex_col().w_full().max_w(px(420.)).gap(px(8.)).children([
- ("Keyboard Shortcuts", "Global hotkeys for recording, screenshots, and switching modes"),
- ("Custom S3 Storage", "Connect your own S3-compatible bucket for full control over your recordings"),
- ("Custom Domain", "Use your own domain for shareable links instead of cap.so"),
- ("Recording Preferences", "FPS, quality, countdown timer, cursor effects, and more"),
+ (tr::onboarding::customize::shortcuts::title(), tr::onboarding::customize::shortcuts::description()),
+ (tr::onboarding::customize::s3::title(), tr::onboarding::customize::s3::description()),
+ (tr::onboarding::customize::domain::title(), tr::onboarding::customize::domain::description()),
+ (tr::onboarding::customize::preferences::title(), tr::onboarding::customize::preferences::description()),
].into_iter().map(|(title, description)| {
self.paper_card().rounded(px(16.)).px(px(18.)).py(px(13.)).flex().flex_col().gap(px(4.))
.child(copy(title, 13., theme.gray_12).font_weight(FontWeight::MEDIUM))
.child(copy(description, 11., theme.gray_10).line_height(px(15.)))
})))
- .child(copy("Change any of these at any time in Settings", 12., theme.gray_9))
+ .child(copy(tr::onboarding::customize::footer(), 12., theme.gray_9))
.into_any_element()
}
@@ -1567,8 +1568,8 @@ impl OnboardingWindow {
.py(px(24.))
.gap(px(24.))
.child(self.heading(
- "Frequently Asked Questions",
- "Everything you need to know to get started.",
+ tr::onboarding::faq::title(),
+ tr::onboarding::faq::subtitle(),
))
.child(
self.paper_card()
@@ -1597,7 +1598,7 @@ impl OnboardingWindow {
cx.notify();
}))
.child(
- copy(*question, 13., theme.gray_12)
+ copy(question(), 13., theme.gray_12)
.font_weight(FontWeight::MEDIUM),
)
.child(glyph(
@@ -1616,11 +1617,11 @@ impl OnboardingWindow {
.px(px(20.))
.pb(px(16.))
.child(
- copy(*answer, 13., theme.gray_10).line_height(px(20.)),
+ copy(answer(), 13., theme.gray_10).line_height(px(20.)),
)
.when(index == 0, |el| {
el.child(
- copy("View pricing plans", 13., theme.blue_10)
+ copy(tr::onboarding::faq::pricing(), 13., theme.blue_10)
.id("onboarding-faq-pricing")
.cursor_pointer()
.mt(px(8.))
@@ -1634,7 +1635,7 @@ impl OnboardingWindow {
})),
)
.child(
- copy("View pricing plans ↗", 13., theme.blue_10)
+ copy(tr::onboarding::faq::pricing_link(), 13., theme.blue_10)
.id("onboarding-pricing")
.cursor_pointer()
.on_click(|_, _, cx| cx.open_url(crate::auth::PRICING_URL)),
@@ -1655,13 +1656,13 @@ impl OnboardingWindow {
let last = self.permissions_only || self.step == Step::Faq;
let relaunch = self.step == Step::Permissions && !disabled && self.needs_relaunch();
let label = if relaunch {
- "Relaunch Cap"
+ tr::onboarding::nav::relaunch()
} else if self.permissions_only {
- "Continue to Cap"
+ tr::onboarding::nav::continue_to_cap()
} else if last {
- "Start Using Cap"
+ tr::onboarding::nav::start()
} else {
- "Continue"
+ tr::onboarding::nav::next()
};
div()
.flex()
@@ -1680,7 +1681,7 @@ impl OnboardingWindow {
.w_full()
.child(div().flex_1().when(current > 0, |el| {
el.child(
- copy("← Back", 13., paper.soft)
+ copy(tr::onboarding::nav::back(), 13., paper.soft)
.id("onboarding-back")
.cursor_pointer()
.hover(move |el| el.text_color(paper.ink))
@@ -1764,9 +1765,9 @@ impl OnboardingWindow {
.gap(px(14.))
.child(copy(
if disabled {
- "Allow the required permissions to continue"
+ tr::onboarding::nav::permissions_needed()
} else {
- "Press Enter ↵ or use ← → arrow keys"
+ tr::onboarding::nav::keyboard_hint()
},
11.,
paper.soft,
@@ -1775,7 +1776,7 @@ impl OnboardingWindow {
self.state.necessary_granted() && !self.permissions_only && !last,
|el| {
el.child(
- copy("Skip the tour", 11., paper.soft)
+ copy(tr::onboarding::nav::skip(), 11., paper.soft)
.id("onboarding-skip")
.cursor_pointer()
.hover(move |el| el.text_color(paper.ink))
@@ -1911,12 +1912,12 @@ impl OnboardingWindow {
.flex()
.flex_col()
.child(
- copy("Start Recording", 15., gpui::white())
+ copy(tr::onboarding::demo::start_recording(), 15., gpui::white())
.font_weight(FontWeight::MEDIUM)
.whitespace_nowrap(),
)
.child(
- copy(MODES[index].title, 11., gpui::white()).opacity(0.9),
+ copy((MODES[index].title)(), 11., gpui::white()).opacity(0.9),
),
),
)
@@ -1974,7 +1975,11 @@ impl OnboardingWindow {
el.child(glyph("icons/stop-circle.svg", 20., rgb(0xf87171)))
})
.child(copy(
- if stopped { "Stopped".into() } else { time },
+ if stopped {
+ tr::onboarding::demo::stopped().into()
+ } else {
+ time
+ },
14.,
if stopped {
Hsla::from(theme.gray_10)
@@ -2073,7 +2078,7 @@ impl OnboardingWindow {
.justify_center()
.child(glyph("icons/check.svg", 12., self.success_palette().2)),
)
- .child(copy("Link ready to share!", 12., theme.gray_12)),
+ .child(copy(tr::onboarding::demo::link_ready(), 12., theme.gray_12)),
)
.child(
div()
@@ -2117,7 +2122,11 @@ impl OnboardingWindow {
},
))
.child(copy(
- if copied { "Copied!" } else { "Copy" },
+ if copied {
+ tr::onboarding::demo::copied()
+ } else {
+ tr::onboarding::demo::copy()
+ },
11.,
if copied {
self.success_palette().2
@@ -2206,10 +2215,10 @@ impl OnboardingWindow {
.items_center()
.gap(px(8.))
.child(self.demo_window_dots())
- .child(copy("Cap Editor", 10., theme.gray_11)),
+ .child(copy(tr::onboarding::demo::editor(), 10., theme.gray_11)),
)
.child(
- copy("Export", 9., gpui::white())
+ copy(tr::onboarding::demo::export(), 9., gpui::white())
.px(px(10.))
.py(px(4.))
.rounded(px(6.))
@@ -2247,7 +2256,7 @@ impl OnboardingWindow {
.flex()
.flex_col()
.gap(px(6.))
- .child(copy("STYLE", 8., theme.gray_9))
+ .child(copy(tr::onboarding::demo::style(), 8., theme.gray_9))
.child(
div()
.h(px(20.))
@@ -2256,7 +2265,7 @@ impl OnboardingWindow {
.border_color(theme.gray_3)
.bg(theme.body_fill(2)),
)
- .child(copy("BACKGROUND", 8., theme.gray_9).mt(px(4.)))
+ .child(copy(tr::onboarding::demo::background(), 8., theme.gray_9).mt(px(4.)))
.child(div().flex().gap(px(4.)).children(
[0x667eea, 0xf78c88, 0xcccccc].map(|color| {
div()
@@ -2300,9 +2309,9 @@ impl OnboardingWindow {
})
.child(copy(
if phase >= 11 {
- "Export complete!"
+ tr::onboarding::demo::export_complete()
} else {
- "Exporting..."
+ tr::onboarding::demo::exporting()
},
14.,
theme.gray_12,
@@ -2489,14 +2498,14 @@ impl OnboardingWindow {
.flex()
.gap(px(4.))
.child(
- copy("Copy", 9., theme.gray_12)
+ copy(tr::onboarding::demo::copy(), 9., theme.gray_12)
.px(px(6.))
.py(px(4.))
.rounded(px(4.))
.bg(theme.body_fill(3)),
)
.child(
- copy("Save", 9., gpui::white())
+ copy(tr::onboarding::demo::save(), 9., gpui::white())
.px(px(6.))
.py(px(4.))
.rounded(px(4.))
@@ -2548,7 +2557,7 @@ impl OnboardingWindow {
12.,
self.success_palette().2,
))
- .child(copy("Copied to clipboard", 11., theme.gray_12)),
+ .child(copy(tr::onboarding::demo::copied_to_clipboard(), 11., theme.gray_12)),
),
)
}),
@@ -2561,7 +2570,11 @@ impl OnboardingWindow {
let phase = self.demo_phase;
let (labels, active) = match index {
0 => (
- ["Record", "Stop", "Share link"],
+ [
+ tr::onboarding::demo::steps::record(),
+ tr::onboarding::demo::steps::stop(),
+ tr::onboarding::demo::steps::share_link(),
+ ],
if phase <= 5 {
0
} else if phase == 6 {
@@ -2571,7 +2584,11 @@ impl OnboardingWindow {
},
),
1 => (
- ["Record", "Edit", "Export"],
+ [
+ tr::onboarding::demo::steps::record(),
+ tr::onboarding::demo::steps::edit(),
+ tr::onboarding::demo::export(),
+ ],
if phase < 7 {
0
} else if phase < 9 {
@@ -2581,7 +2598,11 @@ impl OnboardingWindow {
},
),
_ => (
- ["Select area", "Beautify", "Copy"],
+ [
+ tr::onboarding::demo::steps::select_area(),
+ tr::onboarding::demo::steps::beautify(),
+ tr::onboarding::demo::copy(),
+ ],
if phase <= 5 {
0
} else if phase <= 8 {