Skip to content

armgit / Handy

Public Imported from GitHub
0

A free, open source, and extensible speech-to-text application that works completely offline.

feat(tray): add language switching submenu (#1319)

eti3d940311bde0
diff --git a/src-tauri/src/languages.rs b/src-tauri/src/languages.rs
new file mode 100644
index 00000000..c24228ba
--- /dev/null
+++ b/src-tauri/src/languages.rs
@@ -0,0 +1,48 @@
+//! English display names for transcription language codes, for the tray menu.
+//!
+//! The settings window names languages with `Intl.DisplayNames` in the UI
+//! language; the tray has no `Intl`, so it uses ISO 639 English names.
+
+use isolang::Language;
+
+/// Names people use that differ from ISO 639's ("Modern Greek", "Pushto").
+const OVERRIDES: &[(&str, &str)] = &[
+ ("el", "Greek"),
+ ("ht", "Haitian Creole"),
+ ("nb", "Norwegian"),
+ ("pa", "Punjabi"),
+ ("ps", "Pashto"),
+ ("yue", "Cantonese"),
+];
+
+/// A language's English name, from any code a model or setting uses
+/// (`en-US`, `jw`). Falls back to the code itself.
+pub fn language_name(code: &str) -> String {
+ let identity = crate::catalog::language_identity(code);
+ if let Some((_, name)) = OVERRIDES.iter().find(|(c, _)| *c == identity) {
+ return (*name).to_string();
+ }
+ let language = match identity.len() {
+ 2 => Language::from_639_1(&identity),
+ 3 => Language::from_639_3(&identity),
+ _ => None,
+ };
+ language
+ .map(|l| l.to_name().to_string())
+ .unwrap_or(identity)
+}
+
+#[cfg(test)]
+mod tests {
+ use super::language_name;
+
+ #[test]
+ fn names_codes_however_spelled() {
+ assert_eq!(language_name("en-US"), "English");
+ assert_eq!(language_name("zh"), "Chinese");
+ assert_eq!(language_name("no"), "Norwegian");
+ assert_eq!(language_name("yue"), "Cantonese");
+ assert_eq!(language_name("jw"), "Javanese");
+ assert_eq!(language_name("xx"), "xx");
+ }
+}
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index b0362ed3..a18c6844 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -13,6 +13,7 @@ pub mod engine_supervisor;
mod helpers;
mod input;
mod language_detection;
+mod languages;
mod llm_client;
mod managers;
mod memory;
@@ -347,6 +348,17 @@ fn initialize_core_logic(app_handle: &AppHandle) {
tray::update_tray_menu(&app_clone);
});
}
+ id if id.starts_with("language_select:") => {
+ let language = id.strip_prefix("language_select:").unwrap().to_string();
+ if let Err(e) =
+ shortcut::change_selected_language_setting(app.clone(), language.clone())
+ {
+ log::error!("Failed to switch language via tray: {}", e);
+ return;
+ }
+ log::info!("Language switched to {} via tray.", language);
+ tray::rebuild_tray_menu(app);
+ }
_ => {}
})
.build(app_handle)
@@ -367,6 +379,14 @@ fn initialize_core_logic(app_handle: &AppHandle) {
app_handle.listen("model-state-changed", move |_| {
tray::update_tray_menu(&app_handle_for_listener);
});
+ // A download or delete can change what the language submenu offers (the
+ // language detector arriving makes Auto usable).
+ for event in ["model-download-complete", "model-deleted"] {
+ let app_handle_for_listener = app_handle.clone();
+ app_handle.listen(event, move |_| {
+ tray::update_tray_menu(&app_handle_for_listener);
+ });
+ }
// Apply the autostart preference (SMAppService login item on macOS 13+,
// tauri-plugin-autostart elsewhere)
diff --git a/src-tauri/src/shortcut/mod.rs b/src-tauri/src/shortcut/mod.rs
index a398815e..c49eca1b 100644
--- a/src-tauri/src/shortcut/mod.rs
+++ b/src-tauri/src/shortcut/mod.rs
@@ -701,8 +701,18 @@ pub fn change_translate_to_english_setting(app: AppHandle, enabled: bool) -> Res
#[specta::specta]
pub fn change_selected_language_setting(app: AppHandle, language: String) -> Result<(), String> {
let mut settings = settings::get_settings(&app);
- settings.selected_language = language;
+ settings.selected_language = language.clone();
settings::write_settings(&app, settings);
+ tray::update_tray_menu(&app);
+
+ // The tray can change it too; keep the settings window in sync.
+ let _ = app.emit(
+ "settings-changed",
+ serde_json::json!({
+ "setting": "selected_language",
+ "value": language
+ }),
+ );
Ok(())
}
@@ -715,6 +725,7 @@ pub fn change_spoken_languages_setting(
let mut settings = settings::get_settings(&app);
settings.spoken_languages = languages;
settings::write_settings(&app, settings);
+ tray::update_tray_menu(&app);
Ok(())
}
@@ -930,6 +941,7 @@ pub fn change_language_detection_setting(
let mut settings = settings::get_settings(&app);
settings.language_detection = mode;
settings::write_settings(&app, settings);
+ tray::update_tray_menu(&app);
Ok(())
}
diff --git a/src-tauri/src/tray.rs b/src-tauri/src/tray.rs
index 27ee618c..3beb961f 100644
--- a/src-tauri/src/tray.rs
+++ b/src-tauri/src/tray.rs
@@ -21,7 +21,7 @@
//! icon/menu/tooltip, so those must only ever be set through the applier.
use crate::managers::history::{HistoryEntry, HistoryManager};
-use crate::managers::model::ModelManager;
+use crate::managers::model::{ModelInfo, ModelManager};
use crate::managers::transcription::TranscriptionManager;
use crate::notices::{self, NoticeCode};
use crate::settings;
@@ -70,6 +70,24 @@ struct MenuInputs {
downloaded_models: Vec<(String, String)>,
locale: String,
update_checks_enabled: bool,
+ /// The language submenu, when the selected model has languages to pick.
+ language: Option<LanguageMenu>,
+}
+
+/// What the language submenu shows: `(code, name)` entries, with codes as
+/// language identities, the spelling `selected_language` is saved in.
+#[derive(Clone, Debug, PartialEq, Eq)]
+struct LanguageMenu {
+ /// The checked entry: `auto` or a code.
+ active: String,
+ /// Auto works for this model and these languages. When it doesn't, or
+ /// needs the detector download, it's shown greyed out, as in settings.
+ auto_enabled: bool,
+ /// The person's spoken languages the model hears, in their order, plus
+ /// the active language when it isn't one of them.
+ main: Vec<(String, String)>,
+ /// The model's other languages, by name, in an "Other Languages" submenu.
+ others: Vec<(String, String)>,
}
/// Complete description of what the tray should look like.
@@ -244,6 +262,12 @@ pub fn update_tray_menu(app: &AppHandle) {
sync_tray(app);
}
+/// Rebuild the menu even if nothing it shows changed: clicking a check item
+/// toggles it natively, so re-picking the active one would leave it unchecked.
+pub fn rebuild_tray_menu(app: &AppHandle) {
+ sync_tray_with(app, |inner| inner.applied_menu = None);
+}
+
/// Records the current desired tray state and schedules one apply on the main
/// thread (or lets an already-pending apply pick it up). Never blocks on the
/// main thread.
@@ -340,6 +364,22 @@ fn compute_desired(app: &AppHandle, icon_state: TrayIconState) -> TrayDesired {
.map(|m| (m.id, m.name))
.collect();
downloaded_models.sort_by(|a, b| a.1.cmp(&b.1));
+ // The busy menu has no language submenu, so skip the detector lookup (a
+ // disk probe) on the dictation path. Going idle rebuilds it fresh.
+ let model_manager = app.state::<Arc<ModelManager>>();
+ let language = if icon_state.is_busy() {
+ None
+ } else {
+ model_manager
+ .get_model_info(&settings.selected_model)
+ .and_then(|model| {
+ language_menu(
+ &settings,
+ &model,
+ model_manager.language_detector_path().is_some(),
+ )
+ })
+ };
TrayDesired {
icon_path: get_icon_path(theme, icon_state, badge),
@@ -353,10 +393,122 @@ fn compute_desired(app: &AppHandle, icon_state: TrayIconState) -> TrayDesired {
downloaded_models,
locale: settings.app_language,
update_checks_enabled: settings.update_checks_enabled,
+ language,
},
}
}
+/// The language submenu for `model`, mirroring the settings window's picker:
+/// what's checked is what transcription will use. `None` when there's
+/// nothing to choose between.
+fn language_menu(
+ settings: &settings::AppSettings,
+ model: &ModelInfo,
+ detector_ready: bool,
+) -> Option<LanguageMenu> {
+ use crate::catalog::language_identity;
+ use crate::language_detection::LanguageStatus;
+
+ if !model.supports_language_selection {
+ return None;
+ }
+
+ let (active, auto_enabled) =
+ match crate::language_detection::status_for(settings, Some(model), detector_ready) {
+ LanguageStatus::Auto => ("auto".to_string(), true),
+ LanguageStatus::Selected { language } => (language_identity(&language), true),
+ LanguageStatus::DetectorMissing { fallback: language }
+ | LanguageStatus::AutoUnavailable { language, .. } => {
+ (language_identity(&language), false)
+ }
+ };
+
+ let mut codes: Vec<String> = Vec::new();
+ for code in model
+ .supported_languages
+ .iter()
+ .map(|c| language_identity(c))
+ {
+ if !codes.contains(&code) {
+ codes.push(code);
+ }
+ }
+
+ let mut main: Vec<String> = Vec::new();
+ let spoken = settings
+ .spoken_languages
+ .iter()
+ .map(|c| language_identity(c));
+ for code in spoken.chain((active != "auto").then(|| active.clone())) {
+ if codes.contains(&code) && !main.contains(&code) {
+ main.push(code);
+ }
+ }
+
+ let named = |code: &String| (code.clone(), crate::languages::language_name(code));
+ let mut others: Vec<(String, String)> = codes
+ .iter()
+ .filter(|code| !main.contains(code))
+ .map(named)
+ .collect();
+ others.sort_by(|a, b| a.1.cmp(&b.1));
+
+ if usize::from(auto_enabled) + main.len() + others.len() < 2 {
+ return None;
+ }
+ Some(LanguageMenu {
+ active,
+ auto_enabled,
+ main: main.iter().map(named).collect(),
+ others,
+ })
+}
+
+fn language_submenu(
+ app: &AppHandle,
+ strings: &crate::tray_i18n::TrayStrings,
+ menu: &LanguageMenu,
+) -> tauri::Result<Submenu<tauri::Wry>> {
+ let active_label = if menu.active == "auto" {
+ strings.auto_language.clone()
+ } else {
+ crate::languages::language_name(&menu.active)
+ };
+ let submenu = Submenu::with_id(
+ app,
+ "language_submenu",
+ format!("{} ({})", strings.language, active_label),
+ true,
+ )?;
+ let item = |code: &str, label: &str, enabled: bool| {
+ CheckMenuItem::with_id(
+ app,
+ format!("language_select:{code}"),
+ label,
+ enabled,
+ menu.active == code,
+ None::<&str>,
+ )
+ };
+
+ submenu.append(&item("auto", &strings.auto_language, menu.auto_enabled)?)?;
+ if !menu.main.is_empty() {
+ submenu.append(&PredefinedMenuItem::separator(app)?)?;
+ for (code, name) in &menu.main {
+ submenu.append(&item(code, name, true)?)?;
+ }
+ }
+ if !menu.others.is_empty() {
+ submenu.append(&PredefinedMenuItem::separator(app)?)?;
+ let others = Submenu::with_id(app, "language_others", &strings.other_languages, true)?;
+ for (code, name) in &menu.others {
+ others.append(&item(code, name, true)?)?;
+ }
+ submenu.append(&others)?;
+ }
+ Ok(submenu)
+}
+
fn post_apply(app: &AppHandle) {
let handle = app.clone();
if let Err(err) = app.run_on_main_thread(move || apply_on_main(&handle)) {
@@ -583,7 +735,7 @@ fn build_menu(app: &AppHandle, inputs: &MenuInputs) -> tauri::Result<(Menu<tauri
None::<&str>,
)?;
- Menu::with_items(
+ let menu = Menu::with_items(
app,
&[
&version_i,
@@ -598,7 +750,12 @@ fn build_menu(app: &AppHandle, inputs: &MenuInputs) -> tauri::Result<(Menu<tauri
&separator()?,
&quit_i,
],
- )?
+ )?;
+ // Right below the model submenu: version, separator, copy, separator, model.
+ if let Some(language) = &inputs.language {
+ menu.insert(&language_submenu(app, &strings, language)?, 5)?;
+ }
+ menu
};
// When update checks are forced off (e.g. HANDY_DISABLE_UPDATER, set by
@@ -706,10 +863,102 @@ pub fn copy_last_transcript(app: &AppHandle) {
#[cfg(test)]
mod tests {
use super::{
- get_icon_path, last_transcript_text, load_tray_icon, AppTheme, MenuInputs, TrayDesired,
- TrayIconState,
+ get_icon_path, language_menu, last_transcript_text, load_tray_icon, AppTheme, MenuInputs,
+ TrayDesired, TrayIconState,
};
use crate::managers::history::HistoryEntry;
+ use crate::managers::model::{ModelInfo, ModelSource};
+ use crate::settings::{get_default_settings, AppSettings};
+
+ fn codes(list: &str) -> Vec<String> {
+ list.split_whitespace().map(String::from).collect()
+ }
+
+ fn model(languages: &str, detects: bool) -> ModelInfo {
+ let supported_languages = codes(languages);
+ ModelInfo {
+ id: "test".to_string(),
+ name: "Test".to_string(),
+ description: String::new(),
+ filename: String::new(),
+ source: ModelSource::Url {
+ url: String::new(),
+ sha256: None,
+ },
+ size_mb: 0,
+ is_downloaded: true,
+ is_downloading: false,
+ partial_size: 0,
+ accuracy_score: 0.0,
+ speed_score: 0.0,
+ supports_translation: false,
+ is_recommended: false,
+ supports_language_selection: supported_languages.len() > 1,
+ supported_languages,
+ is_custom: false,
+ supports_streaming: false,
+ supports_language_detection: detects,
+ }
+ }
+
+ fn settings(intent: &str, spoken: &str) -> AppSettings {
+ let mut settings = get_default_settings();
+ settings.selected_language = intent.to_string();
+ settings.spoken_languages = codes(spoken);
+ settings
+ }
+
+ fn entries(list: &[(String, String)]) -> Vec<&str> {
+ list.iter().map(|(code, _)| code.as_str()).collect()
+ }
+
+ #[test]
+ fn language_menu_leads_with_spoken_languages() {
+ let menu = language_menu(
+ &settings("auto", "fr en"),
+ &model("en de fr ja", true),
+ true,
+ )
+ .expect("menu");
+ assert_eq!(menu.active, "auto");
+ assert!(menu.auto_enabled);
+ assert_eq!(entries(&menu.main), ["fr", "en"]);
+ // Others by English name: German, Japanese.
+ assert_eq!(entries(&menu.others), ["de", "ja"]);
+ }
+
+ #[test]
+ fn language_menu_shows_the_active_language_outside_spoken_ones() {
+ let menu =
+ language_menu(&settings("ja", "en"), &model("en de ja", true), true).expect("menu");
+ assert_eq!(menu.active, "ja");
+ assert_eq!(entries(&menu.main), ["en", "ja"]);
+ assert_eq!(entries(&menu.others), ["de"]);
+ }
+
+ #[test]
+ fn language_menu_collapses_spellings() {
+ let menu = language_menu(&settings("auto", "no"), &model("en-US nb no", true), true)
+ .expect("menu");
+ assert_eq!(entries(&menu.main), ["nb"]);
+ assert_eq!(entries(&menu.others), ["en"]);
+ }
+
+ #[test]
+ fn language_menu_checks_the_fallback_without_the_detector() {
+ let menu = language_menu(&settings("auto", "en fr"), &model("en fr de", false), false)
+ .expect("menu");
+ assert_eq!(menu.active, "en");
+ assert!(!menu.auto_enabled);
+ }
+
+ #[test]
+ fn language_menu_hidden_without_a_choice() {
+ assert_eq!(
+ language_menu(&settings("auto", "en"), &model("en", false), true),
+ None
+ );
+ }
fn build_entry(transcription: &str, post_processed: Option<&str>) -> HistoryEntry {
HistoryEntry {
@@ -739,6 +988,7 @@ mod tests {
downloaded_models: vec![("small".to_string(), "Small".to_string())],
locale: "en".to_string(),
update_checks_enabled: true,
+ language: None,
}
}
diff --git a/src/bindings.ts b/src/bindings.ts
index cc784f14..b576dc61 100644
--- a/src/bindings.ts
+++ b/src/bindings.ts
@@ -1236,7 +1236,12 @@ export type KeyboardDiagnosticReport = { secure_input_enabled: boolean; culprit_
* Counts only — key identity is deliberately never captured.
*/
key_down: number; key_up: number; flags_changed: number; mouse: number; duration_ms: number }
-export type KeyboardImplementation = "tauri" | "handy_keys" | "none"
+export type KeyboardImplementation = "tauri" | "handy_keys" |
+/**
+ * No built-in global shortcuts; trigger Handy via CLI flags or signals
+ * (e.g. from a Wayland compositor keybinding).
+ */
+"none"
export type LLMPrompt = { id: string; name: string; prompt: string }
/**
* When Handy's spoken-language detector picks the language for Auto.
diff --git a/src/i18n/locales/ar/translation.json b/src/i18n/locales/ar/translation.json
index 2e4e71aa..3079df22 100644
--- a/src/i18n/locales/ar/translation.json
+++ b/src/i18n/locales/ar/translation.json
@@ -7,7 +7,10 @@
"model": "النموذج",
"quit": "إنهاء",
"cancel": "إلغاء",
- "secureInputWarning": "⚠ الاختصارات محجوبة بواسطة Secure Input"
+ "secureInputWarning": "⚠ الاختصارات محجوبة بواسطة Secure Input",
+ "language": "اللغة",
+ "autoLanguage": "تلقائي",
+ "otherLanguages": "لغات أخرى"
},
"sidebar": {
"general": "عام",
diff --git a/src/i18n/locales/bg/translation.json b/src/i18n/locales/bg/translation.json
index 1b09d404..fc59cfff 100644
--- a/src/i18n/locales/bg/translation.json
+++ b/src/i18n/locales/bg/translation.json
@@ -7,7 +7,10 @@
"model": "Модел",
"quit": "Изход",
"cancel": "Отказ",
- "secureInputWarning": "⚠ Бързите клавиши са блокирани от Secure Input"
+ "secureInputWarning": "⚠ Бързите клавиши са блокирани от Secure Input",
+ "language": "Език",
+ "autoLanguage": "Автоматично",
+ "otherLanguages": "Други езици"
},
"sidebar": {
"general": "Общи",
diff --git a/src/i18n/locales/ca/translation.json b/src/i18n/locales/ca/translation.json
index 28bfdc8b..9a6cce59 100644
--- a/src/i18n/locales/ca/translation.json
+++ b/src/i18n/locales/ca/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Surt",
"cancel": "Cancel·la",
- "secureInputWarning": "⚠ Dreceres blocades per l'entrada segura"
+ "secureInputWarning": "⚠ Dreceres blocades per l'entrada segura",
+ "language": "Llengua",
+ "autoLanguage": "Automàtica",
+ "otherLanguages": "Altres llengües"
},
"sidebar": {
"general": "General",
diff --git a/src/i18n/locales/cs/translation.json b/src/i18n/locales/cs/translation.json
index 48b6e118..6d8f8c27 100644
--- a/src/i18n/locales/cs/translation.json
+++ b/src/i18n/locales/cs/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Ukončit",
"cancel": "Zrušit",
- "secureInputWarning": "⚠ Zkratky blokuje Secure Input"
+ "secureInputWarning": "⚠ Zkratky blokuje Secure Input",
+ "language": "Jazyk",
+ "autoLanguage": "Automaticky",
+ "otherLanguages": "Další jazyky"
},
"sidebar": {
"general": "Obecné",
diff --git a/src/i18n/locales/da/translation.json b/src/i18n/locales/da/translation.json
index c79466a0..60d53198 100644
--- a/src/i18n/locales/da/translation.json
+++ b/src/i18n/locales/da/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Afslut",
"cancel": "Annuller",
- "secureInputWarning": "⚠ Genveje blokeret af Secure Input"
+ "secureInputWarning": "⚠ Genveje blokeret af Secure Input",
+ "language": "Sprog",
+ "autoLanguage": "Automatisk",
+ "otherLanguages": "Andre sprog"
},
"sidebar": {
"general": "Generelt",
diff --git a/src/i18n/locales/de/translation.json b/src/i18n/locales/de/translation.json
index 80854c43..f840c517 100644
--- a/src/i18n/locales/de/translation.json
+++ b/src/i18n/locales/de/translation.json
@@ -7,7 +7,10 @@
"model": "Modell",
"quit": "Beenden",
"cancel": "Abbrechen",
- "secureInputWarning": "⚠ Tastenkürzel durch Secure Input blockiert"
+ "secureInputWarning": "⚠ Tastenkürzel durch Secure Input blockiert",
+ "language": "Sprache",
+ "autoLanguage": "Automatisch",
+ "otherLanguages": "Weitere Sprachen"
},
"sidebar": {
"general": "Allgemein",
diff --git a/src/i18n/locales/en/translation.json b/src/i18n/locales/en/translation.json
index accadf2e..3da3090d 100644
--- a/src/i18n/locales/en/translation.json
+++ b/src/i18n/locales/en/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Quit",
"cancel": "Cancel",
- "secureInputWarning": "⚠ Shortcuts blocked by Secure Input"
+ "secureInputWarning": "⚠ Shortcuts blocked by Secure Input",
+ "language": "Language",
+ "autoLanguage": "Auto",
+ "otherLanguages": "Other Languages"
},
"sidebar": {
"general": "General",
diff --git a/src/i18n/locales/es/translation.json b/src/i18n/locales/es/translation.json
index 016dd7c1..ee566975 100644
--- a/src/i18n/locales/es/translation.json
+++ b/src/i18n/locales/es/translation.json
@@ -7,7 +7,10 @@
"model": "Modelo",
"quit": "Salir",
"cancel": "Cancelar",
- "secureInputWarning": "⚠ Atajos bloqueados por Secure Input"
+ "secureInputWarning": "⚠ Atajos bloqueados por Secure Input",
+ "language": "Idioma",
+ "autoLanguage": "Automático",
+ "otherLanguages": "Otros idiomas"
},
"sidebar": {
"general": "General",
diff --git a/src/i18n/locales/fr/translation.json b/src/i18n/locales/fr/translation.json
index 4ba9e5ab..2af124ac 100644
--- a/src/i18n/locales/fr/translation.json
+++ b/src/i18n/locales/fr/translation.json
@@ -7,7 +7,10 @@
"model": "Modèle",
"quit": "Quitter",
"cancel": "Annuler",
- "secureInputWarning": "⚠ Raccourcis bloqués par Secure Input"
+ "secureInputWarning": "⚠ Raccourcis bloqués par Secure Input",
+ "language": "Langue",
+ "autoLanguage": "Automatique",
+ "otherLanguages": "Autres langues"
},
"sidebar": {
"general": "Général",
diff --git a/src/i18n/locales/he/translation.json b/src/i18n/locales/he/translation.json
index 4201f233..17e887bd 100644
--- a/src/i18n/locales/he/translation.json
+++ b/src/i18n/locales/he/translation.json
@@ -7,7 +7,10 @@
"model": "מודל",
"quit": "יציאה",
"cancel": "ביטול",
- "secureInputWarning": "⚠ קיצורי המקשים חסומים על ידי Secure Input"
+ "secureInputWarning": "⚠ קיצורי המקשים חסומים על ידי Secure Input",
+ "language": "שפה",
+ "autoLanguage": "אוטומטי",
+ "otherLanguages": "שפות אחרות"
},
"sidebar": {
"general": "כללי",
diff --git a/src/i18n/locales/hi/translation.json b/src/i18n/locales/hi/translation.json
index 961dfd85..13519f08 100644
--- a/src/i18n/locales/hi/translation.json
+++ b/src/i18n/locales/hi/translation.json
@@ -7,7 +7,10 @@
"model": "मॉडल",
"quit": "बाहर निकलें",
"cancel": "रद्द करें",
- "secureInputWarning": "⚠ Secure Input ने शॉर्टकट ब्लॉक किए हैं"
+ "secureInputWarning": "⚠ Secure Input ने शॉर्टकट ब्लॉक किए हैं",
+ "language": "भाषा",
+ "autoLanguage": "ऑटो",
+ "otherLanguages": "अन्य भाषाएँ"
},
"sidebar": {
"general": "सामान्य",
diff --git a/src/i18n/locales/id/translation.json b/src/i18n/locales/id/translation.json
index 644723ca..fa60c41b 100644
--- a/src/i18n/locales/id/translation.json
+++ b/src/i18n/locales/id/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Keluar",
"cancel": "Batal",
- "secureInputWarning": "⚠ Pintasan diblokir oleh Secure Input"
+ "secureInputWarning": "⚠ Pintasan diblokir oleh Secure Input",
+ "language": "Bahasa",
+ "autoLanguage": "Otomatis",
+ "otherLanguages": "Bahasa Lain"
},
"sidebar": {
"general": "Umum",
diff --git a/src/i18n/locales/it/translation.json b/src/i18n/locales/it/translation.json
index b79f43eb..d3f2392d 100644
--- a/src/i18n/locales/it/translation.json
+++ b/src/i18n/locales/it/translation.json
@@ -7,7 +7,10 @@
"model": "Modello",
"quit": "Esci",
"cancel": "Annulla",
- "secureInputWarning": "⚠ Scorciatoie bloccate da Secure Input"
+ "secureInputWarning": "⚠ Scorciatoie bloccate da Secure Input",
+ "language": "Lingua",
+ "autoLanguage": "Automatico",
+ "otherLanguages": "Altre lingue"
},
"sidebar": {
"general": "Generale",
diff --git a/src/i18n/locales/ja/translation.json b/src/i18n/locales/ja/translation.json
index 55ac4d0d..85edd499 100644
--- a/src/i18n/locales/ja/translation.json
+++ b/src/i18n/locales/ja/translation.json
@@ -7,7 +7,10 @@
"model": "モデル",
"quit": "終了",
"cancel": "キャンセル",
- "secureInputWarning": "⚠ Secure Input でショートカットがブロック中"
+ "secureInputWarning": "⚠ Secure Input でショートカットがブロック中",
+ "language": "言語",
+ "autoLanguage": "自動",
+ "otherLanguages": "その他の言語"
},
"sidebar": {
"general": "一般",
diff --git a/src/i18n/locales/ko/translation.json b/src/i18n/locales/ko/translation.json
index f74eb3be..91bb02b6 100644
--- a/src/i18n/locales/ko/translation.json
+++ b/src/i18n/locales/ko/translation.json
@@ -7,7 +7,10 @@
"model": "모델",
"quit": "종료",
"cancel": "취소",
- "secureInputWarning": "⚠ Secure Input으로 단축키가 차단됨"
+ "secureInputWarning": "⚠ Secure Input으로 단축키가 차단됨",
+ "language": "언어",
+ "autoLanguage": "자동",
+ "otherLanguages": "기타 언어"
},
"sidebar": {
"general": "일반",
diff --git a/src/i18n/locales/ne/translation.json b/src/i18n/locales/ne/translation.json
index f02cce52..2cfe12a5 100644
--- a/src/i18n/locales/ne/translation.json
+++ b/src/i18n/locales/ne/translation.json
@@ -7,7 +7,10 @@
"model": "मोडेल",
"quit": "बाहिर निस्कनुहोस्",
"cancel": "रद्द गर्नुहोस्",
- "secureInputWarning": "⚠ Secure Input ले सर्टकटहरू रोकेको छ"
+ "secureInputWarning": "⚠ Secure Input ले सर्टकटहरू रोकेको छ",
+ "language": "भाषा",
+ "autoLanguage": "स्वतः",
+ "otherLanguages": "अन्य भाषाहरू"
},
"sidebar": {
"general": "सामान्य",
diff --git a/src/i18n/locales/nl/translation.json b/src/i18n/locales/nl/translation.json
index 00803305..5b8a704b 100644
--- a/src/i18n/locales/nl/translation.json
+++ b/src/i18n/locales/nl/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Afsluiten",
"cancel": "Annuleren",
- "secureInputWarning": "⚠ Sneltoetsen geblokkeerd door Secure Input"
+ "secureInputWarning": "⚠ Sneltoetsen geblokkeerd door Secure Input",
+ "language": "Taal",
+ "autoLanguage": "Automatisch",
+ "otherLanguages": "Andere talen"
},
"sidebar": {
"general": "Algemeen",
diff --git a/src/i18n/locales/pl/translation.json b/src/i18n/locales/pl/translation.json
index aa8fada0..7bf04e4f 100644
--- a/src/i18n/locales/pl/translation.json
+++ b/src/i18n/locales/pl/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Zamknij",
"cancel": "Anuluj",
- "secureInputWarning": "⚠ Skróty zablokowane przez Secure Input"
+ "secureInputWarning": "⚠ Skróty zablokowane przez Secure Input",
+ "language": "Język",
+ "autoLanguage": "Automatycznie",
+ "otherLanguages": "Inne języki"
},
"sidebar": {
"general": "Ogólne",
diff --git a/src/i18n/locales/pt/translation.json b/src/i18n/locales/pt/translation.json
index 235495bf..475a65e8 100644
--- a/src/i18n/locales/pt/translation.json
+++ b/src/i18n/locales/pt/translation.json
@@ -7,7 +7,10 @@
"model": "Modelo",
"quit": "Sair",
"cancel": "Cancelar",
- "secureInputWarning": "⚠ Atalhos bloqueados pelo Secure Input"
+ "secureInputWarning": "⚠ Atalhos bloqueados pelo Secure Input",
+ "language": "Idioma",
+ "autoLanguage": "Automático",
+ "otherLanguages": "Outros idiomas"
},
"sidebar": {
"general": "Geral",
diff --git a/src/i18n/locales/ru/translation.json b/src/i18n/locales/ru/translation.json
index 47d0ca0c..14562b53 100644
--- a/src/i18n/locales/ru/translation.json
+++ b/src/i18n/locales/ru/translation.json
@@ -7,7 +7,10 @@
"model": "Модель",
"quit": "Выход",
"cancel": "Отмена",
- "secureInputWarning": "⚠ Сочетания клавиш заблокированы Secure Input"
+ "secureInputWarning": "⚠ Сочетания клавиш заблокированы Secure Input",
+ "language": "Язык",
+ "autoLanguage": "Авто",
+ "otherLanguages": "Другие языки"
},
"sidebar": {
"general": "Общие",
diff --git a/src/i18n/locales/sv/translation.json b/src/i18n/locales/sv/translation.json
index ae6cf3e0..9890749a 100644
--- a/src/i18n/locales/sv/translation.json
+++ b/src/i18n/locales/sv/translation.json
@@ -7,7 +7,10 @@
"model": "Modell",
"quit": "Avsluta",
"cancel": "Avbryt",
- "secureInputWarning": "⚠ Kortkommandon blockeras av Secure Input"
+ "secureInputWarning": "⚠ Kortkommandon blockeras av Secure Input",
+ "language": "Språk",
+ "autoLanguage": "Automatiskt",
+ "otherLanguages": "Andra språk"
},
"sidebar": {
"general": "Allmänt",
diff --git a/src/i18n/locales/tr/translation.json b/src/i18n/locales/tr/translation.json
index d60bfdb3..04b08f09 100644
--- a/src/i18n/locales/tr/translation.json
+++ b/src/i18n/locales/tr/translation.json
@@ -7,7 +7,10 @@
"model": "Model",
"quit": "Çıkış",
"cancel": "İptal",
- "secureInputWarning": "⚠ Kısayollar Secure Input tarafından engelleniyor"
+ "secureInputWarning": "⚠ Kısayollar Secure Input tarafından engelleniyor",
+ "language": "Dil",
+ "autoLanguage": "Otomatik",
+ "otherLanguages": "Diğer Diller"
},
"sidebar": {
"general": "Genel",
diff --git a/src/i18n/locales/uk/translation.json b/src/i18n/locales/uk/translation.json
index 00e42a1f..398f9303 100644
--- a/src/i18n/locales/uk/translation.json
+++ b/src/i18n/locales/uk/translation.json
@@ -7,7 +7,10 @@
"model": "Модель",
"quit": "Вийти",
"cancel": "Скасувати",
- "secureInputWarning": "⚠ Комбінації клавіш заблоковано Secure Input"
+ "secureInputWarning": "⚠ Комбінації клавіш заблоковано Secure Input",
+ "language": "Мова",
+ "autoLanguage": "Авто",
+ "otherLanguages": "Інші мови"
},
"sidebar": {
"general": "Загальні",
diff --git a/src/i18n/locales/vi/translation.json b/src/i18n/locales/vi/translation.json
index 5b8a741b..cce752b5 100644
--- a/src/i18n/locales/vi/translation.json
+++ b/src/i18n/locales/vi/translation.json
@@ -7,7 +7,10 @@
"model": "Mô hình",
"quit": "Thoát",
"cancel": "Hủy",
- "secureInputWarning": "⚠ Phím tắt bị Secure Input chặn"
+ "secureInputWarning": "⚠ Phím tắt bị Secure Input chặn",
+ "language": "Ngôn ngữ",
+ "autoLanguage": "Tự động",
+ "otherLanguages": "Ngôn ngữ khác"
},
"sidebar": {
"general": "Chung",
diff --git a/src/i18n/locales/zh-TW/translation.json b/src/i18n/locales/zh-TW/translation.json
index 012c0ca0..2d8b8eec 100644
--- a/src/i18n/locales/zh-TW/translation.json
+++ b/src/i18n/locales/zh-TW/translation.json
@@ -7,7 +7,10 @@
"model": "模型",
"quit": "結束",
"cancel": "取消",
- "secureInputWarning": "⚠ 快捷鍵被 Secure Input 阻擋"
+ "secureInputWarning": "⚠ 快捷鍵被 Secure Input 阻擋",
+ "language": "語言",
+ "autoLanguage": "自動",
+ "otherLanguages": "其他語言"
},
"sidebar": {
"general": "一般",
diff --git a/src/i18n/locales/zh/translation.json b/src/i18n/locales/zh/translation.json
index e7890b1c..c8daa6e5 100644
--- a/src/i18n/locales/zh/translation.json
+++ b/src/i18n/locales/zh/translation.json
@@ -7,7 +7,10 @@
"model": "模型",
"quit": "退出",
"cancel": "取消",
- "secureInputWarning": "⚠ 快捷键被 Secure Input 阻止"
+ "secureInputWarning": "⚠ 快捷键被 Secure Input 阻止",
+ "language": "语言",
+ "autoLanguage": "自动",
+ "otherLanguages": "其他语言"
},
"sidebar": {
"general": "通用",