Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: localize mode names and update states
Ilya37a19f41c7f2
diff --git a/apps/desktop-gpui/locales/de.toml b/apps/desktop-gpui/locales/de.tomlindex 8d876f730..ed9a75dac 100644--- a/apps/desktop-gpui/locales/de.toml+++ b/apps/desktop-gpui/locales/de.toml@@ -85,7 +85,7 @@ view_all_recordings = "Alle Aufnahmen anzeigen"view_all_screenshots = "Alle Bildschirmfotos anzeigen"[tray.mode]-instant = "Instant"+instant = "Sofort"screenshot = "Bildschirmfoto"studio = "Studio"@@ -600,6 +600,7 @@ tagline = "Die Open-Source-App zum Teilen des Bildschirms für alle."badge_progress = "v{version} · {percent} %"badge_version = "v{version}"check = "Nach Updates suchen"+download = "Update herunterladen…"checking = "Suche nach Updates…"downloading = "Update wird geladen…"restart = "Zum Aktualisieren neu starten…"diff --git a/apps/desktop-gpui/locales/en.toml b/apps/desktop-gpui/locales/en.tomlindex f30db62ce..ef413074e 100644--- a/apps/desktop-gpui/locales/en.toml+++ b/apps/desktop-gpui/locales/en.toml@@ -602,6 +602,7 @@ tagline = "The open source screen sharing app for everyone."badge_progress = "v{version} · {percent}%"badge_version = "v{version}"check = "Check for Update"+download = "Download update…"checking = "Checking for Update…"downloading = "Downloading update…"restart = "Restart to update…"diff --git a/apps/desktop-gpui/locales/es.toml b/apps/desktop-gpui/locales/es.tomlindex 053885092..12e29b8f4 100644--- a/apps/desktop-gpui/locales/es.toml+++ b/apps/desktop-gpui/locales/es.toml@@ -85,9 +85,9 @@ view_all_recordings = "Ver todas las grabaciones"view_all_screenshots = "Ver todas las capturas de pantalla"[tray.mode]-instant = "Instant"+instant = "Instantáneo"screenshot = "Captura de pantalla"-studio = "Studio"+studio = "Estudio"[settings.nav]automations = "Automatizaciones"@@ -600,6 +600,7 @@ tagline = "La app de código abierto para compartir pantalla, para todo el mundobadge_progress = "v{version} · {percent} %"badge_version = "v{version}"check = "Buscar actualizaciones"+download = "Descargar actualización…"checking = "Buscando actualizaciones…"downloading = "Descargando actualización…"restart = "Reiniciar para actualizar…"diff --git a/apps/desktop-gpui/locales/fr.toml b/apps/desktop-gpui/locales/fr.tomlindex e529ef487..4311e915e 100644--- a/apps/desktop-gpui/locales/fr.toml+++ b/apps/desktop-gpui/locales/fr.toml@@ -85,7 +85,7 @@ view_all_recordings = "Voir tous les enregistrements"view_all_screenshots = "Voir toutes les captures d'écran"[tray.mode]-instant = "Instant"+instant = "Instantané"screenshot = "Capture d'écran"studio = "Studio"@@ -600,6 +600,7 @@ tagline = "L'app open source de partage d'écran pour tout le monde."badge_progress = "v{version} · {percent} %"badge_version = "v{version}"check = "Rechercher des mises à jour"+download = "Télécharger la mise à jour…"checking = "Recherche de mises à jour…"downloading = "Téléchargement de la mise à jour…"restart = "Redémarrer pour mettre à jour…"diff --git a/apps/desktop-gpui/locales/hi.toml b/apps/desktop-gpui/locales/hi.tomlindex 991c3e01e..f2f742ccd 100644--- a/apps/desktop-gpui/locales/hi.toml+++ b/apps/desktop-gpui/locales/hi.toml@@ -85,9 +85,9 @@ view_all_recordings = "सभी रिकॉर्डिंग देखें"view_all_screenshots = "सभी स्क्रीनशॉट देखें"[tray.mode]-instant = "Instant"+instant = "तुरंत"screenshot = "स्क्रीनशॉट"-studio = "Studio"+studio = "स्टूडियो"[settings.nav]automations = "ऑटोमेशन"@@ -600,6 +600,7 @@ tagline = "सबके लिए ओपन सोर्स स्क्रीbadge_progress = "v{version} · {percent}%"badge_version = "v{version}"check = "अपडेट जाँचें"+download = "अपडेट डाउनलोड करें…"checking = "अपडेट जाँच रहे हैं…"downloading = "अपडेट डाउनलोड हो रहा है…"restart = "अपडेट करने के लिए फिर से शुरू करें…"diff --git a/apps/desktop-gpui/locales/ja.toml b/apps/desktop-gpui/locales/ja.tomlindex eefbf107b..85ba67764 100644--- a/apps/desktop-gpui/locales/ja.toml+++ b/apps/desktop-gpui/locales/ja.toml@@ -85,9 +85,9 @@ view_all_recordings = "すべての録画を表示"view_all_screenshots = "すべてのスクリーンショットを表示"[tray.mode]-instant = "Instant"+instant = "インスタント"screenshot = "スクリーンショット"-studio = "Studio"+studio = "スタジオ"[settings.nav]automations = "オートメーション"@@ -600,6 +600,7 @@ tagline = "誰もが使えるオープンソースの画面共有アプリ。"badge_progress = "v{version} · {percent}%"badge_version = "v{version}"check = "アップデートを確認"+download = "アップデートをダウンロード…"checking = "アップデートを確認中…"downloading = "アップデートをダウンロード中…"restart = "アップデートのために再起動…"diff --git a/apps/desktop-gpui/locales/zh-CN.toml b/apps/desktop-gpui/locales/zh-CN.tomlindex a4f2ca6a4..cdf5844f0 100644--- a/apps/desktop-gpui/locales/zh-CN.toml+++ b/apps/desktop-gpui/locales/zh-CN.toml@@ -85,9 +85,9 @@ view_all_recordings = "查看所有录制"view_all_screenshots = "查看所有截图"[tray.mode]-instant = "Instant"+instant = "即时"screenshot = "截图"-studio = "Studio"+studio = "工作室"[settings.nav]automations = "自动化"@@ -600,6 +600,7 @@ tagline = "人人可用的开源屏幕分享应用。"badge_progress = "v{version} · {percent}%"badge_version = "v{version}"check = "检查更新"+download = "下载更新…"checking = "正在检查更新…"downloading = "正在下载更新…"restart = "重新启动以更新…"diff --git a/apps/desktop-gpui/src/i18n/tests.rs b/apps/desktop-gpui/src/i18n/tests.rsindex e20501068..29ce251da 100644--- a/apps/desktop-gpui/src/i18n/tests.rs+++ b/apps/desktop-gpui/src/i18n/tests.rs@@ -54,6 +54,7 @@ fn english_matches_the_literals_it_replaced() {(tr::menu::help::system_status(), "System Status".into()),(tr::menu::help::discord(), "Join Discord Community".into()),(tr::menu::update::check(), "Check for Update".into()),+ (tr::menu::update::download(), "Download update…".into()),(tr::menu::update::checking(), "Checking for Update…".into()),(tr::menu::update::downloading(),diff --git a/apps/desktop-gpui/src/menus.rs b/apps/desktop-gpui/src/menus.rsindex 531cfeba9..eaab9b33b 100644--- a/apps/desktop-gpui/src/menus.rs+++ b/apps/desktop-gpui/src/menus.rs@@ -73,6 +73,7 @@ impl UpdateRow {let title = match status {UpdateStatus::Idle => tr::menu::update::check(),UpdateStatus::Checking => tr::menu::update::checking(),+ UpdateStatus::Downloading { fraction: None, .. } => tr::menu::update::download(),UpdateStatus::Downloading { .. } | UpdateStatus::Installing { .. } => {tr::menu::update::downloading()}@@ -85,7 +86,10 @@ impl UpdateRow {enabled: !matches!(status,UpdateStatus::Checking- | UpdateStatus::Downloading { .. }+ | UpdateStatus::Downloading {+ fraction: Some(_),+ ..+ }| UpdateStatus::Installing { .. }),badge: update_menu_badge(status),@@ -1330,10 +1334,10 @@ mod tests {let cold = UpdateRow::of(&downloading(None));let warm = UpdateRow::of(&downloading(Some(0.42)));- assert_eq!(cold.title, "Downloading update…");- assert!(!cold.enabled);+ assert_eq!(cold.title, "Download update…");+ assert!(cold.enabled);+ assert_eq!(warm.title, "Downloading update…");assert!(!warm.enabled);- assert_eq!(warm.title, cold.title);let ready = UpdateRow::of(&UpdateStatus::Ready {version: version.clone(),@@ -1349,7 +1353,7 @@ mod tests {let installing = UpdateRow::of(&UpdateStatus::Installing {version: version.clone(),});- assert_eq!(installing.title, cold.title);+ assert_eq!(installing.title, "Downloading update…");assert!(!installing.enabled);}