Skip to content

Commit

Permalink
fix: undefined interpolation on t macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Moreno committed Apr 7, 2021
1 parent 76553af commit 885f97c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ export function interpolate(
}

const result = formatMessage(translation)
return result.trim()
return result?.trim()
}
}

0 comments on commit 885f97c

Please sign in to comment.