init
This commit is contained in:
10
src/commands/lang.rs
Normal file
10
src/commands/lang.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use anyhow::Result;
|
||||
use std::path::Path;
|
||||
|
||||
use crate::lms;
|
||||
|
||||
/// Translate content files from one language to another
|
||||
pub async fn translate(input: &str, from: &str, to: &str) -> Result<()> {
|
||||
let path = Path::new(input);
|
||||
lms::translate::run(path, from, to).await
|
||||
}
|
||||
Reference in New Issue
Block a user