Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

fix(i18n): translate Keep in Local / Add to Local

Andrew Frahnc56fa85a982f
diff --git a/crates/ui-egui/src/panels/left.rs b/crates/ui-egui/src/panels/left.rs
index a14332c82..1b6db24fb 100644
--- a/crates/ui-egui/src/panels/left.rs
+++ b/crates/ui-egui/src/panels/left.rs
@@ -1026,7 +1026,7 @@ fn folder_tree(
resp.context_menu(|ui| {
if (transient || indent > 0.0)
&& ui
- .button(if transient { "Keep in Local" } else { "Add to Local" })
+ .button(crate::i18n::tr(if transient { "Keep in Local" } else { "Add to Local" }))
.on_hover_text(crate::i18n::tr("List this folder in Local from now on"))
.clicked()
{