Fixing translations

This commit is contained in:
Marco De Araujo 2025-12-22 14:41:08 -04:00
parent dbe196f388
commit 0dc51af51c
9 changed files with 41 additions and 136 deletions

View file

@ -3,6 +3,7 @@ use crate::i18n::t;
use anyhow::{Context, Ok, Result};
pub fn parse_response(json_text: &str) -> Result<StatusPageResponse> {
let mut response: StatusPageResponse = serde_json::from_str(json_text)?; //.with_context(|| t("invalid-json-status-page"))?;
let mut response: StatusPageResponse =
serde_json::from_str(json_text).with_context(|| t("invalid-json-status-page"))?;
Ok(response)
}