add more cli features and styling
refactoring
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user