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 0661ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ export function interpolate(
}

const result = formatMessage(translation)
return result.trim()
if (typeof result === "string") return result.trim()
return result
}
}

0 comments on commit 0661ba7

Please sign in to comment.