diff --git a/core/locales/sw.yml b/core/locales/sw.yml index 970bb84..69a8a0a 100644 --- a/core/locales/sw.yml +++ b/core/locales/sw.yml @@ -1,6 +1,6 @@ types: number: nambari - bool: bool + bool: bulin string: mlolongo object: kifaa function: kazi diff --git a/core/src/eval.rs b/core/src/eval.rs index eca86e4..4e00552 100644 --- a/core/src/eval.rs +++ b/core/src/eval.rs @@ -162,7 +162,10 @@ pub mod value { pub fn string(&self) -> String { match self { Value::Number(value) => value.to_string(), - Value::Bool(value) => value.to_string(), + Value::Bool(value) => match value { + true => t!("literals.true"), + false => t!("literals.false"), + }, Value::String(value) => value.to_string(), Value::Object { name, body } => { format!("{} ({name}): {:?}", t!("types.object"), body)