Translate UI to Swedish

This commit is contained in:
2026-03-23 10:46:39 +01:00
parent 1929b3ed49
commit bc586e21e7
3 changed files with 29 additions and 29 deletions

View File

@@ -105,14 +105,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let args: Vec<String> = env::args().collect();
if args.len() != 2 {
eprintln!("Usage: {} <csv-file>", args[0]);
eprintln!("Användning: {} <csv-fil>", args[0]);
std::process::exit(1);
}
let input_path = Path::new(&args[1]);
if !input_path.exists() {
eprintln!("Error: File not found: {:?}", input_path);
eprintln!("Fel: Filen hittades inte: {:?}", input_path);
std::process::exit(1);
}
@@ -124,7 +124,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let batch = read_csv_file(input_path)?;
println!(
"Loaded {} transactions from {}",
"Laddade {} transaktioner från {}",
batch.transactions.len(),
batch.filename
);
@@ -159,11 +159,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
.unwrap();
let filename = format!("customer_{}.html", customer_num);
fs::write(output_dir.join(&filename), customer_html)?;
println!("Generated {}", filename);
println!("Genererade {}", filename);
}
println!(
"\nGenerated {} customer invoices in {:?}",
"\nGenererade {} kundfakturor i {:?}",
customer_count, output_dir
);