2
0

refact rust

This commit is contained in:
2026-03-25 06:34:44 +09:00
parent 3103090c33
commit 1d8224c4bf
5 changed files with 30 additions and 29 deletions

View File

@@ -202,7 +202,7 @@ async fn translate_folder(dir: &Path, from: &str, to: &str) -> Result<()> {
match translate_file(path, from, to).await {
Ok(_) => {
// Check if it was actually translated or skipped
let content = fs::read_to_string(&path)?;
let content = fs::read_to_string(path)?;
let record: serde_json::Value = serde_json::from_str(&content)?;
let value = record.get("value").unwrap_or(&record);
if value