Skip to content

Commit d2739d4

Browse files
committed
Update translator.rs
added linux/path for locales/translation files!
1 parent 605a73c commit d2739d4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ets2-tool/src-tauri/src/features/language/translator.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ fn get_locales_dir() -> PathBuf {
138138
return resources_path;
139139
}
140140

141+
// Check for Linux/AppImage structure (../lib/ets2-tool/locales)
142+
if let Some(parent) = exe_dir.parent() {
143+
let linux_path = parent.join("lib/ets2-tool/locales");
144+
if linux_path.exists() {
145+
return linux_path;
146+
}
147+
}
148+
141149
// Default fallback
142150
prod_path
143151
}

0 commit comments

Comments
 (0)