Skip to content

A lightweight, macOS-style dock for Windows 11, with glass visuals, smooth magnification, and Genie effect.

feat: add French to the dock, Settings and the installer

AzureAD\davidlamae2bfd4d5d2f0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6005287..3aaedaa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,10 @@ copia la sección de la versión que se publica a la release de GitHub.
its apps out above it (a grid when there are many); drag one out of the
fan to take it out of the group, into the dock where it is dropped.
Right-click a group to ungroup it.
+- French: the dock, Settings and the installer are now also in French. Choose
+ it in Settings → System, or leave Automatic to follow Windows. A language
+ Muelle does not know in the settings file now reads as Automatic instead of
+ making the file invalid.
### Español
@@ -27,6 +31,10 @@ copia la sección de la versión que se publica a la release de GitHub.
puntero. Al hacer clic se despliegan en abanico encima (en cuadrícula si son
muchas); arrastra una fuera del abanico para sacarla del grupo, al lugar del
dock donde la sueltes. Clic derecho en un grupo para desagruparlo.
+- Francés: el dock, Ajustes y el instalador también están en francés.
+ Elígelo en Ajustes → Sistema, o deja Automático para seguir a Windows. Un
+ idioma que Muelle no conoce en el archivo de ajustes ahora se lee como
+ Automático en lugar de invalidar el archivo.
## [0.1.12]
diff --git a/README.md b/README.md
index ec9a84f..213d851 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ Smooth magnification, live window previews, and an optional Genie-style minimize
- A curved island in the menu bar for usage limits from Claude Code, Codex,
OpenCode Go, Gemini CLI, and Antigravity. Gemini Pro
and Flash quotas appear separately when available.
-- Separate Settings app with live changes, Spanish and English, and a
+- Separate Settings app with live changes, Spanish, English and French, and a
configurable Genie-style minimize animation.
- A watchdog restores the Windows taskbar if the dock exits unexpectedly.
diff --git a/apps/dock/src/strings.rs b/apps/dock/src/strings.rs
index 62a9712..db51be9 100644
--- a/apps/dock/src/strings.rs
+++ b/apps/dock/src/strings.rs
@@ -1,11 +1,11 @@
-//! User-facing dock text in Spanish and English. The language follows the
-//! Windows display language; Settings will be able to override it (phase 7).
+//! User-facing dock text in Spanish, English and French. The language follows
+//! the Windows display language unless Settings chooses one.
//! `&` marks the menu access key.
use std::sync::atomic::{AtomicU8, Ordering};
use muelle_config::Language;
-use muelle_shell::system::ui_language_is_spanish;
+use muelle_shell::system::{UiLanguage, ui_language};
pub struct Strings {
pub open: &'static str,
@@ -106,16 +106,55 @@ const EN: Strings = Strings {
media_title: "Now playing",
};
-/// 0 = not chosen yet (follow Windows), 1 = Spanish, 2 = English.
+const FR: Strings = Strings {
+ shell_operation_failed: "L'opération n'a pas pu démarrer. Réessayez dans un instant.",
+ open: "&Ouvrir",
+ new_window: "&Nouvelle fenêtre",
+ keep_in_dock: "&Garder dans le Dock",
+ show_in_explorer: "Afficher dans l'&Explorateur",
+ quit_app: "&Quitter",
+ empty_bin: "&Vider la Corbeille",
+ turn_hiding_on: "Activer le &masquage automatique",
+ turn_hiding_off: "Désactiver le &masquage automatique",
+ quit_dock: "&Quitter Muelle",
+ start: "Démarrer",
+ remove: "Retirer",
+ close_window: "&Fermer",
+ ungroup: "&Dégrouper",
+ settings: "&Réglages de Muelle…",
+ run_as_admin: "Exécuter en tant qu'&administrateur",
+ show_desktop: "Afficher le &Bureau",
+ task_manager: "&Gestionnaire des tâches",
+ taskbar_settings: "Paramètres de la barre des &tâches",
+ usage_title: "Utilisation de l'IA",
+ usage_refresh: "Actualiser",
+ usage_refreshing: "Actualisation…",
+ usage_sign_in: "Se connecter",
+ usage_unavailable: "Indisponible",
+ usage_loading: "Chargement…",
+ usage_stale: "Non actualisé",
+ usage_resets: "Remise à zéro le",
+ usage_updated: "Actualisé il y a",
+ usage_used: "utilisé",
+ media_title: "En cours de lecture",
+};
+
+/// 0 = not chosen yet (follow Windows), 1 = Spanish, 2 = English, 3 = French.
static LANGUAGE: AtomicU8 = AtomicU8::new(0);
pub fn set_language(language: Language) {
- let spanish = match language {
- Language::Auto => ui_language_is_spanish(),
- Language::Es => true,
- Language::En => false,
+ let chosen = match language {
+ Language::Auto => ui_language(),
+ Language::Es => UiLanguage::Spanish,
+ Language::En => UiLanguage::English,
+ Language::Fr => UiLanguage::French,
+ };
+ let stored = match chosen {
+ UiLanguage::Spanish => 1,
+ UiLanguage::English => 2,
+ UiLanguage::French => 3,
};
- LANGUAGE.store(if spanish { 1 } else { 2 }, Ordering::Relaxed);
+ LANGUAGE.store(stored, Ordering::Relaxed);
}
pub fn text() -> &'static Strings {
@@ -125,6 +164,7 @@ pub fn text() -> &'static Strings {
text()
}
1 => &ES,
+ 3 => &FR,
_ => &EN,
}
}
diff --git a/apps/settings/src-tauri/tauri.bundle.conf.json b/apps/settings/src-tauri/tauri.bundle.conf.json
index f5860cb..f6b892f 100644
--- a/apps/settings/src-tauri/tauri.bundle.conf.json
+++ b/apps/settings/src-tauri/tauri.bundle.conf.json
@@ -19,7 +19,8 @@
"installMode": "currentUser",
"languages": [
"English",
- "Spanish"
+ "Spanish",
+ "French"
],
"displayLanguageSelector": false,
"installerIcon": "icons/icon.ico"
diff --git a/apps/settings/src/App.tsx b/apps/settings/src/App.tsx
index 8d586b3..5b82c1b 100644
--- a/apps/settings/src/App.tsx
+++ b/apps/settings/src/App.tsx
@@ -24,6 +24,7 @@ import { type SectionId, SectionIcon } from "./icons";
import { UpdateBanner } from "./UpdateBanner";
import en from "./i18n/en.json";
import es from "./i18n/es.json";
+import fr from "./i18n/fr.json";
type UpdateState =
| { kind: "off" }
@@ -54,10 +55,15 @@ const SAVE_DELAY_MS = 60;
/** How long the reset button stays armed after the first click. */
const RESET_CONFIRM_MS = 4000;
+const TEXTS: Record<Exclude<Language, "auto">, Texts> = { es, en, fr };
+
function textsFor(language: Language): Texts {
- const spanish =
- language === "es" || (language === "auto" && navigator.language.toLowerCase().startsWith("es"));
- return spanish ? es : en;
+ if (language !== "auto") {
+ return TEXTS[language];
+ }
+ // Follow the Windows display language, English when there is no text in it.
+ const windows = navigator.language.toLowerCase().slice(0, 2);
+ return windows === "es" || windows === "fr" ? TEXTS[windows] : en;
}
export function App() {
@@ -376,6 +382,7 @@ export function App() {
{ value: "auto", label: t.languageAuto },
{ value: "es", label: "Español" },
{ value: "en", label: "English" },
+ { value: "fr", label: "Français" },
]}
onChange={(language) => update({ language })}
/>
diff --git a/apps/settings/src/config.ts b/apps/settings/src/config.ts
index a8efe77..ded35c6 100644
--- a/apps/settings/src/config.ts
+++ b/apps/settings/src/config.ts
@@ -1,6 +1,6 @@
import { invoke } from "@tauri-apps/api/core";
-export type Language = "auto" | "es" | "en";
+export type Language = "auto" | "es" | "en" | "fr";
/** Mirrors `muelle_config::Config`. */
export interface Config {
diff --git a/apps/settings/src/i18n/fr.json b/apps/settings/src/i18n/fr.json
new file mode 100644
index 0000000..957e972
--- /dev/null
+++ b/apps/settings/src/i18n/fr.json
@@ -0,0 +1,71 @@
+{
+ "dock": "Dock",
+ "system": "Système",
+ "size": "Taille",
+ "small": "Petite",
+ "large": "Grande",
+ "magnification": "Agrandissement",
+ "magnificationHint": "Les icônes grossissent au passage du pointeur.",
+ "magnifiedSize": "Taille agrandie",
+ "autoHide": "Masquer et afficher automatiquement le Dock",
+ "autoHideHint": "Il réapparaît quand le pointeur touche le bord inférieur de l'écran.",
+ "genie": "Effet génie",
+ "genieHint": "Tant qu'il est activé, les fenêtres n'utilisent pas les animations de Windows pour l'agrandissement et la fermeture.",
+ "genieOff": "Les animations de Windows sont désactivées",
+ "genieOffHint": "L'effet génie suit le réglage « Effets d'animation » de Windows, comme toute app devrait le faire : il ne se joue donc pas. L'option « Ajuster afin d'obtenir les meilleures performances » le désactive aussi.",
+ "genieOffAction": "Ouvrir les paramètres de Windows",
+ "showMinimized": "Afficher les fenêtres réduites",
+ "showMinimizedHint": "Sous forme de miniatures à droite du Dock, plutôt que dans l'icône de leur app.",
+ "menuBar": "Barre de menus",
+ "menuBarHint": "Heure, batterie et accès aux paramètres rapides et aux notifications de Windows.",
+ "menuBarAutoHide": "Masquer et afficher automatiquement la barre de menus",
+ "menuBarAutoHideHint": "Elle apparaît quand le pointeur s'arrête sur le bord supérieur de l'écran, jamais par-dessus les boutons de fermeture d'une fenêtre.",
+ "aiUsage": "Afficher l'utilisation des fournisseurs d'IA",
+ "aiUsageHint": "Lit le quota des sessions que vous avez déjà ouvertes. Interroge directement chaque fournisseur toutes les cinq minutes et n'enregistre aucun identifiant.",
+ "autostart": "Ouvrir Muelle à l'ouverture de session",
+ "language": "Langue",
+ "languageAuto": "Automatique",
+ "close": "Fermer",
+ "minimize": "Réduire",
+ "saveError": "Impossible d'enregistrer les réglages.",
+ "checkUpdates": "Rechercher automatiquement les mises à jour",
+ "checkUpdatesHint": "À son ouverture, Réglages demande à GitHub si une nouvelle version existe.",
+ "autoUpdate": "Installer automatiquement les mises à jour",
+ "autoUpdateHint": "Une fois par jour, quelques minutes après l'allumage de l'ordinateur (ou toutes les 24 heures s'il reste allumé), Muelle installe lui-même les nouvelles versions.",
+ "updatesOff": "La recherche automatique est désactivée.",
+ "updates": "Mises à jour",
+ "updatesChecking": "Recherche de mises à jour…",
+ "updatesCurrent": "Muelle {version} est à jour.",
+ "updatesAvailable": "Muelle {version} est disponible.",
+ "updatesInstalling": "Téléchargement et installation…",
+ "updatesError": "Vérification impossible. Vérifiez votre connexion.",
+ "updatesCheck": "Rechercher",
+ "updatesInstall": "Mettre à jour",
+ "showIndicators": "Afficher un indicateur sous les apps ouvertes",
+ "showRecents": "Afficher les apps récentes",
+ "showRecentsHint": "Les trois dernières que vous avez ouvertes sans les avoir épinglées.",
+ "bounceOnOpen": "Animer l'ouverture des apps",
+ "mascot": "Crabe lors des moments spéciaux",
+ "mascotHint": "Un crabe en pixels apparaît quand un forfait d'IA se réinitialise ou s'épuise, quand vous branchez le chargeur ou quand l'économiseur d'énergie s'active. Passez le pointeur dessus.",
+ "reset": "Rétablir les valeurs par défaut",
+ "resetHint": "Retour à l'apparence et au comportement d'origine. Vos apps épinglées sont conservées.",
+ "resetConfirmHint": "Cliquez à nouveau pour confirmer.",
+ "resetButton": "Rétablir",
+ "resetConfirm": "Confirmer",
+ "updateBannerTitle": "Muelle {version} est disponible",
+ "updateBannerBody": "Cette version apporte des améliorations et des corrections. Elle s'installe en quelques secondes et le Dock revient tout seul.",
+ "updateNow": "Mettre à jour maintenant",
+ "updateLater": "Plus tard",
+ "updateRetry": "Réessayer",
+ "updateWhatsNew": "Nouveautés",
+ "updateDownloading": "Téléchargement… {percent} %",
+ "updateDownloadingUnknown": "Téléchargement…",
+ "updateInstallError": "Impossible d'installer la mise à jour. Vérifiez votre connexion et réessayez.",
+ "updateBadge": "Mise à jour disponible",
+ "windows": "Fenêtres",
+ "menuBarShow": "Afficher la barre de menus",
+ "groupBehavior": "Comportement",
+ "groupMinimize": "Réduction",
+ "zoom": "Agrandir",
+ "updatesNow": "Cette version"
+}
diff --git a/crates/muelle-config/src/lib.rs b/crates/muelle-config/src/lib.rs
index 0cc7e42..0607829 100644
--- a/crates/muelle-config/src/lib.rs
+++ b/crates/muelle-config/src/lib.rs
@@ -95,11 +95,15 @@ pub struct DockGroup {
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum Language {
- /// Follow the Windows display language.
- #[default]
- Auto,
Es,
En,
+ Fr,
+ /// Follow the Windows display language. Also what a language added by a
+ /// newer version reads as, so the file stays valid for older versions
+ /// (serde requires this fallback to be the last variant).
+ #[default]
+ #[serde(other)]
+ Auto,
}
pub const ICON_SIZE_RANGE: (u32, u32) = (32, 96);
@@ -305,6 +309,27 @@ mod tests {
assert!(!config.show_recents && !config.bounce_on_open);
}
+ #[test]
+ fn load_should_read_french() {
+ let path = scratch("french");
+ save(&path, &Config::default()).ok();
+ fs::write(&path, r#"{"language":"fr"}"#).ok();
+ let config = load(&path).ok().flatten().unwrap_or_default();
+ assert_eq!(config.language, Language::Fr);
+ }
+
+ #[test]
+ fn load_should_read_an_unknown_language_as_auto() {
+ let path = scratch("unknown-language");
+ save(&path, &Config::default()).ok();
+ fs::write(&path, r#"{"language":"de","iconSize":56}"#).ok();
+ let config = load(&path).ok().flatten();
+ assert_eq!(
+ config.map(|config| (config.language, config.icon_size)),
+ Some((Language::Auto, 56))
+ );
+ }
+
#[test]
fn load_should_fail_on_invalid_json() {
let path = scratch("invalid");
diff --git a/crates/muelle-shell/src/system.rs b/crates/muelle-shell/src/system.rs
index 984993c..d2548f8 100644
--- a/crates/muelle-shell/src/system.rs
+++ b/crates/muelle-shell/src/system.rs
@@ -214,12 +214,26 @@ pub fn downloads_folder() -> Option<String> {
}
}
+/// The languages Muelle's text comes in.
+#[derive(Clone, Copy, Debug, PartialEq, Eq)]
+pub enum UiLanguage {
+ Spanish,
+ English,
+ French,
+}
+
+/// The Windows display language, or English when Muelle has no text in it.
#[must_use]
-pub fn ui_language_is_spanish() -> bool {
+pub fn ui_language() -> UiLanguage {
const LANG_SPANISH: u16 = 0x0A;
+ const LANG_FRENCH: u16 = 0x0C;
// SAFETY: Read-only query.
let language = unsafe { windows::Win32::Globalization::GetUserDefaultUILanguage() };
- language & 0x3FF == LANG_SPANISH
+ match language & 0x3FF {
+ LANG_SPANISH => UiLanguage::Spanish,
+ LANG_FRENCH => UiLanguage::French,
+ _ => UiLanguage::English,
+ }
}
/// `false` if the user turned off "Animation effects" in Windows settings.