diff --git a/src/nodes-to-string.js b/src/nodes-to-string.js
index c9de2ac..d563f0d 100644
--- a/src/nodes-to-string.js
+++ b/src/nodes-to-string.js
@@ -1,5 +1,7 @@
import { ensureArray, ensureBoolean, ensureString } from 'ensure-type';
import _get from 'lodash/get';
+import _find from 'lodash/find';
+import _compact from 'lodash/compact';
const isJSXText = (node) => {
if (!node) {
@@ -66,7 +68,11 @@ const nodesToString = (nodes, options) => {
} if (isStringLiteral(expression)) {
memo += expression.value;
} else if (isObjectExpression(expression) && (_get(expression, 'properties[0].type') === 'Property')) {
- memo += `{{${expression.properties[0].key.name}}}`;
+ const properties = _compact([
+ _get(expression, 'properties[0].key.name'),
+ _get(_find(expression.properties, ['key.name', 'format']), 'value.value')
+ ]);
+ memo += `{{${properties.join(', ')}}}`;
} else {
console.error(`Unsupported JSX expression. Only static values or {{interpolation}} blocks are supported. Got ${expression.type}:`);
console.error(ensureString(options?.code).slice(node.start, node.end));
diff --git a/test/fixtures/trans.jsx b/test/fixtures/trans.jsx
index a5ebe43..43f6aa2 100644
--- a/test/fixtures/trans.jsx
+++ b/test/fixtures/trans.jsx
@@ -29,6 +29,7 @@ const Component = () => (
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum is simply dummy text of the printing and typesetting industry.Lorem Ipsum has been the industry's standard dummy text ever since the 1500s
",