Skip to content

Commit

Permalink
fix(formatjs): Fix missing quotes of plural keys (#378)
Browse files Browse the repository at this point in the history
 - Closes #377
  • Loading branch information
cuyl authored Dec 24, 2024
1 parent c05429b commit 7a3b1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/formatjs/transform/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ fn json_value_to_expr(json_value: &serde_json::Value) -> Box<Expr> {
.iter()
.map(|(key, value)| {
PropOrSpread::Prop(Box::new(Prop::KeyValue(KeyValueProp {
key: PropName::Ident(IdentName::new(key.to_string().into(), DUMMY_SP)),
key: PropName::Str(Str::from(key.clone())),
value: json_value_to_expr(value),
})))
})
Expand Down

0 comments on commit 7a3b1ba

Please sign in to comment.