From 56b200609afe3914a3feceb073cf48653d1c4655 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Tue, 15 Feb 2022 21:58:00 +0100 Subject: [PATCH] feat(core): wire up new localized dates. #156 --- espanso/src/cli/worker/engine/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/espanso/src/cli/worker/engine/mod.rs b/espanso/src/cli/worker/engine/mod.rs index 8581a62..6e4ad71 100644 --- a/espanso/src/cli/worker/engine/mod.rs +++ b/espanso/src/cli/worker/engine/mod.rs @@ -186,7 +186,8 @@ pub fn initialize_and_spawn( let clipboard_adapter = ClipboardAdapter::new(&*clipboard, &config_manager); let clipboard_extension = espanso_render::extension::clipboard::ClipboardExtension::new(&clipboard_adapter); - let date_extension = espanso_render::extension::date::DateExtension::new(); + let locale_provider = espanso_render::extension::date::DefaultLocaleProvider::new(); + let date_extension = espanso_render::extension::date::DateExtension::new(&locale_provider); let echo_extension = espanso_render::extension::echo::EchoExtension::new(); // For backwards compatiblity purposes, the echo extension can also be called with "dummy" type let dummy_extension = espanso_render::extension::echo::EchoExtension::new_with_alias("dummy");