optimize output
parent
6222cff418
commit
c8c5144346
|
@ -78,7 +78,10 @@ pub mod deepl_helper {
|
|||
pub fn get_text(&self, target_language: &str) -> String {
|
||||
let mut trans: String = String::new();
|
||||
for translation in self.translations.iter() {
|
||||
trans.push_str(&format!("--- Detected Source language {} -------------------------\n", translation.detected_source_language));
|
||||
trans.push_str(&format!(
|
||||
"--- Detected Source language {} -------------------------\n",
|
||||
translation.detected_source_language)
|
||||
);
|
||||
trans.push_str(&format!("{}: {}", target_language, translation.text));
|
||||
trans.push_str("\n");
|
||||
trans.push_str("---------------------------------------------------------\n");
|
||||
|
|
Loading…
Reference in New Issue