add more cli features and styling

refactoring
This commit is contained in:
milan
2026-04-12 21:51:10 +02:00
parent 01e7da136c
commit 87e1a93a3e
7 changed files with 204 additions and 41 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ fn format_dynamically(mut template: String, arguments: Vec<impl Into<String>>) -
}
pub fn translate(template_name: String, arguments: Vec<impl Into<String>>) -> String {
let locale: Locale = LOCALE_SELECTION.read().unwrap().clone();
let locale: Locale = *LOCALE_SELECTION.read().unwrap();
let languages = load_languages();
let translation = languages
.get(&locale)