feat(core): wire up new localized dates. #156

This commit is contained in:
Federico Terzi 2022-02-15 21:58:00 +01:00
parent 36a507488b
commit 56b200609a

View File

@ -186,7 +186,8 @@ pub fn initialize_and_spawn(
let clipboard_adapter = ClipboardAdapter::new(&*clipboard, &config_manager); let clipboard_adapter = ClipboardAdapter::new(&*clipboard, &config_manager);
let clipboard_extension = let clipboard_extension =
espanso_render::extension::clipboard::ClipboardExtension::new(&clipboard_adapter); 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(); let echo_extension = espanso_render::extension::echo::EchoExtension::new();
// For backwards compatiblity purposes, the echo extension can also be called with "dummy" type // 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"); let dummy_extension = espanso_render::extension::echo::EchoExtension::new_with_alias("dummy");