Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/locales/sw.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
types:
number: nambari
bool: bool
bool: bulin
string: mlolongo
object: kifaa
function: kazi
Expand Down
5 changes: 4 additions & 1 deletion core/src/eval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down